Versions in this module Expand all Collapse all v1 v1.0.0 May 30, 2021 Changes in this version + const ContextMaxSize + const PrivateKeySize + const PublicKeySize + const SeedSize + const SignatureSize + func GenerateKey(rand io.Reader) (PublicKey, PrivateKey, error) + func Scheme() sign.Scheme + func Sign(privateKey PrivateKey, message []byte) []byte + func SignPh(privateKey PrivateKey, message []byte, ctx string) []byte + func SignWithCtx(privateKey PrivateKey, message []byte, ctx string) []byte + func Verify(public PublicKey, message, signature []byte) bool + func VerifyAny(public PublicKey, message, signature []byte, opts crypto.SignerOpts) bool + func VerifyPh(public PublicKey, message, signature []byte, ctx string) bool + func VerifyWithCtx(public PublicKey, message, signature []byte, ctx string) bool + type PrivateKey []byte + func NewKeyFromSeed(seed []byte) PrivateKey + func (priv PrivateKey) Equal(x crypto.PrivateKey) bool + func (priv PrivateKey) MarshalBinary() (data []byte, err error) + func (priv PrivateKey) Public() crypto.PublicKey + func (priv PrivateKey) Scheme() sign.Scheme + func (priv PrivateKey) Seed() []byte + func (priv PrivateKey) Sign(rand io.Reader, message []byte, opts crypto.SignerOpts) (signature []byte, err error) + type PublicKey cryptoEd25519.PublicKey + func (pub PublicKey) Equal(x crypto.PublicKey) bool + func (pub PublicKey) MarshalBinary() (data []byte, err error) + func (pub PublicKey) Scheme() sign.Scheme + type SchemeID uint + const ED25519 + const ED25519Ctx + const ED25519Ph + type SignerOptions struct + Context string + Scheme SchemeID