Expand description
§Ed25519 signing and verification helpers
Thin wrappers over ed25519-dalek that accept and return hashiverse’s newtype-wrapped
Signature, SignatureKey and VerificationKey instead of raw byte arrays.
Three functions cover the common cases:
sign— sign a single slice directly.sign_multiple— Blake3-hash a list of slices then sign the 32-byte digest. Used anywhere the “message” is a tuple of fields (post headers, bucket commitments, peer announcements) — cheaper and produces a deterministic canonical form regardless of field sizes.verify— verify an Ed25519 signature against its signed data.
Post-quantum fallbacks (Falcon, Dilithium) live in crate::tools::keys_post_quantum
and are invoked only once the network signals a transition away from Ed25519.