Versions in this module Expand all Collapse all v1 v1.0.1 Sep 18, 2022 v1.0.0 Sep 18, 2022 Changes in this version + const PrivateKeySize + const PublicKeySize + const SignatureSize + func Sign(keyPair KeyPair, message []byte) []byte + func Verify(p PublicKey, message []byte, sig []byte) bool + type KeyPair interface + PrivateKey func() PrivateKey + PublicKey func() PublicKey + Verify func(message []byte, sig []byte) bool + func FromCryptoPrivateKey(key ed25519.PrivateKey) KeyPair + func GenerateKey(rnd io.Reader) (KeyPair, error) + type PrivateKey []byte + func (p PrivateKey) KeyPair() KeyPair + func (p PrivateKey) PrivateKey() PrivateKey + func (p PrivateKey) Public() crypto.PublicKey + func (p PrivateKey) PublicKey() PublicKey + func (p PrivateKey) Sign(rand io.Reader, message []byte, opts crypto.SignerOpts) ([]byte, error) + func (p PrivateKey) Verify(message []byte, sig []byte) bool + type PublicKey []byte + func FromCryptoPublicKey(key ed25519.PublicKey) PublicKey + func (p PublicKey) Verify(message []byte, sig []byte) bool