Cryptographic primitives required to participate in the Cardano protocol: Blake2b hashing, Ed25519 signing (regular and BIP32-extended), VRF, KES forward-secure signatures, and nonce evolution.
use pallas_crypto::hash::Hasher;
let mut h = Hasher::<256>::new();
h.input(b"hello");
let digest = h.finalize();
println!("blake2b-256 = {}", digest);hash—Hash<N>andHasher<N>over Blake2b. The const generic is in bits, soHasher::<224>andHasher::<256>cover the common Cardano digest sizes.key::ed25519— regular and extended Ed25519 key pairs, signing and verification.kes— KES (Key Evolving Signature) primitives used by block producers.nonce— epoch / chain-nonce evolution helpers.memsec— secure-memory utilities used to wipe key material.
- Blake2b 256
- Blake2b 224
- Ed25519 asymmetric key pair and EdDSA
- Ed25519 Extended asymmetric key pair
- BIP32-Ed25519 key derivation
- BIP39 mnemonics
- VRF
- KES
- SECP256k1
- Nonce calculations
src/kes/README.md— KES design notes and interoperability considerations.