Versions in this module Expand all Collapse all v0 v0.1.0 Nov 14, 2023 Changes in this version + const KeyType + const PrivKeyName + const PrivateKeySize + const PubKeyName + const PubKeySize + const SeedSize + const SignatureSize + var ErrInvalidSignature = errors.New("ed25519: invalid signature") + var ErrNotEd25519Key = errors.New("ed25519: pubkey is not Ed25519") + func NewBatchVerifier() crypto.BatchVerifier + type BatchVerifier struct + func (b *BatchVerifier) Add(key crypto.PubKey, msg, signature []byte) error + func (b *BatchVerifier) Verify() (bool, []bool) + type ErrInvalidKeyLen struct + Got int + Want int + func (e ErrInvalidKeyLen) Error() string + type PrivKey []byte + func GenPrivKey() PrivKey + func GenPrivKeyFromSecret(secret []byte) PrivKey + func (privKey PrivKey) Bytes() []byte + func (privKey PrivKey) Equals(other crypto.PrivKey) bool + func (privKey PrivKey) PubKey() crypto.PubKey + func (privKey PrivKey) Sign(msg []byte) ([]byte, error) + func (privKey PrivKey) Type() string + type PubKey []byte + func (pubKey PubKey) Address() crypto.Address + func (pubKey PubKey) Bytes() []byte + func (pubKey PubKey) Equals(other crypto.PubKey) bool + func (pubKey PubKey) String() string + func (pubKey PubKey) Type() string + func (pubKey PubKey) VerifySignature(msg []byte, sig []byte) bool