Expand description
Crypto primitives — thin wrappers over reviewed crates.
Supported:
- ed25519 signing / verifying (via
ed25519-dalek). - SHA-256 and BLAKE3 hashing.
Post-quantum ML-DSA is a Phase 3+ addition and is reserved in the
SignatureEnvelope schema today. No custom crypto is introduced in
this module — everything is a thin adapter.
Structs§
- Ed25519
Signer - ED25519 signing key.
- X25519
KeyPair
Enums§
Functions§
- b64decode
- b64encode
- Base64 encode / decode helpers for signature payloads.
- blake3_
hashref - BLAKE3 of the input, returned as
"blake3:<hex>". - chacha20poly1305_
decrypt - chacha20poly1305_
encrypt - ed25519_
verify - Verify an ed25519 signature.
- hex
- hkdf_
sha256 - parse_
hashref - Parse
sha256:<hex>back into raw bytes. - sha256_
hashref - SHA-256 of the input, returned as
"sha256:<hex>". - x25519_
diffie_ hellman - x25519_
from_ bytes - x25519_
generate