package keys
import "github.com/UristLikot/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
- v1.0.3 (latest)
- Published
- Feb 15, 2024
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 1 week ago –
Tools for package owners.