Versions in this module Expand all Collapse all v0 v0.2.1 Mar 22, 2026 v0.2.0 Mar 20, 2026 Changes in this version + const DefaultAlgorithm + func MarshalPublicKey(pub crypto.PublicKey) ([]byte, error) + func Register(alg Algorithm, ops AlgorithmOps) + func UnmarshalPublicKey(alg Algorithm, data []byte) (crypto.PublicKey, error) + func Verify(pub crypto.PublicKey, message, signature []byte) (bool, error) + func ZeroizePrivateKey(key crypto.PrivateKey) + type Algorithm string + const Ed25519 + const MLDSA44 + func (a Algorithm) String() string + func (a Algorithm) Valid() bool + type AlgorithmOps interface + GenerateKey func() (crypto.PublicKey, crypto.Signer, error) + GenerateKeyFromSeed func(seed []byte) (crypto.PublicKey, crypto.Signer, error) + MarshalPublicKey func(pub crypto.PublicKey) ([]byte, error) + MatchesPrivateKey func(key crypto.PrivateKey) bool + MatchesPublicKey func(pub crypto.PublicKey) bool + SeedSize func() int + UnmarshalPublicKey func(data []byte) (crypto.PublicKey, error) + Verify func(pub crypto.PublicKey, message, signature []byte) (bool, error) + ZeroizePrivateKey func(key crypto.PrivateKey) + func Get(alg Algorithm) (AlgorithmOps, error) + func MustGet(alg Algorithm) AlgorithmOps