Versions in this module Expand all Collapse all v1 v1.2.0 Jan 24, 2019 Changes in this version + const PrivateKeySize + const PublicKeySize + const SignatureSize + func GenerateKey(rand io.Reader) (publicKey PublicKey, privateKey PrivateKey, err error) + func RandomKeyPair() *crypto.KeyPair + func Sign(privateKey PrivateKey, message []byte) []byte + func Verify(publicKey PublicKey, message, sig []byte) bool + type Ed25519 struct + func New() *Ed25519 + func (p *Ed25519) GenerateKeys() ([]byte, []byte, error) + func (p *Ed25519) PrivateKeySize() int + func (p *Ed25519) PrivateToPublic(privateKey []byte) ([]byte, error) + func (p *Ed25519) PublicKeySize() int + func (p *Ed25519) RandomKeyPair() *crypto.KeyPair + func (p *Ed25519) Sign(privateKey []byte, message []byte) []byte + func (p *Ed25519) Verify(publicKey []byte, message []byte, signature []byte) bool + type PrivateKey []byte + func (priv PrivateKey) Public() crypto.PublicKey + func (priv PrivateKey) Sign(rand io.Reader, message []byte, opts crypto.SignerOpts) (signature []byte, err error) + type PublicKey []byte