package keys
import "github.com/testovoleg/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-20230731113359-3e87cabb9327 (latest)
- Published
- Jul 31, 2023
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 1 month ago –
Tools for package owners.