Versions in this module Expand all Collapse all v0 v0.11.0 Aug 18, 2026 Changes in this version + const SeedSize + var ErrCorrupt = errors.New("store-signing key or pin is corrupt") + func Decode(s string) ([]byte, error) + func DecodePub(s string) (ed25519.PublicKey, error) + func Encode(b []byte) string + func EncodePub(pub ed25519.PublicKey) string + func LoadPin(path string) (ed25519.PublicKey, error) + func Save(path string, k *Key) error + func SavePin(path string, pub ed25519.PublicKey) error + func Sign(priv ed25519.PrivateKey, payload []byte) []byte + func Verify(pub ed25519.PublicKey, payload, sig []byte) bool + type Key struct + Priv ed25519.PrivateKey + Pub ed25519.PublicKey + Seed []byte + func Generate() (*Key, error) + func Load(path string) (*Key, error)