Versions in this module Expand all Collapse all v1 v1.0.3 Feb 15, 2024 v1.0.2 Feb 15, 2024 Changes in this version + const DjbType + const KeySize + var ErrBadKeyType = errors.New("bad key type") + func CalculateSignature(signingKey ECPrivateKeyable, message []byte) [64]byte + func VerifySignature(signingKey ECPublicKeyable, message []byte, signature [64]byte) bool + type DjbECPrivateKey struct + func NewDjbECPrivateKey(key [32]byte) *DjbECPrivateKey + func (d *DjbECPrivateKey) PrivateKey() [32]byte + func (d *DjbECPrivateKey) Serialize() [32]byte + func (d *DjbECPrivateKey) Type() int + type DjbECPublicKey struct + func NewDjbECPublicKey(publicKey [32]byte) *DjbECPublicKey + func (d *DjbECPublicKey) PublicKey() [32]byte + func (d *DjbECPublicKey) Serialize() []byte + func (d *DjbECPublicKey) Type() int + type ECKeyPair struct + func CreateKeyPair(privateKey []byte) *ECKeyPair + func GenerateKeyPair() (*ECKeyPair, error) + func NewECKeyPair(publicKey ECPublicKeyable, privateKey ECPrivateKeyable) *ECKeyPair + func (e *ECKeyPair) PrivateKey() ECPrivateKeyable + func (e *ECKeyPair) PublicKey() ECPublicKeyable + type ECPrivateKeyable interface + Serialize func() [32]byte + Type func() int + type ECPublicKeyable interface + PublicKey func() [32]byte + Serialize func() []byte + Type func() int + func DecodePoint(bytes []byte, offset int) (ECPublicKeyable, error)