package keys
import "github.com/insomnius/whatsmeow/util/keys"
Package keys contains a utility struct for elliptic curve keypairs.
Index ¶
- type KeyPair
- func NewKeyPair() *KeyPair
- func NewKeyPairFromPrivateKey(priv [32]byte) *KeyPair
- func (kp *KeyPair) CreateSignedPreKey(keyID uint32) *PreKey
- func (kp *KeyPair) Sign(keyToSign *KeyPair) *[64]byte
- type PreKey
Types ¶
type KeyPair ¶
func NewKeyPair ¶
func NewKeyPair() *KeyPair
func NewKeyPairFromPrivateKey ¶
func (*KeyPair) CreateSignedPreKey ¶
func (*KeyPair) Sign ¶
type PreKey ¶
func NewPreKey ¶
Source Files ¶
- Version
- v0.0.0-20221222071518-e03eb42e21a9 (latest)
- Published
- Dec 22, 2022
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 1 month ago –
Tools for package owners.