Versions in this module Expand all Collapse all v0 v0.1.1 Jul 1, 2019 v0.1.0 Jan 17, 2019 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