Skip to main content

Module crypto

Module crypto 

Source
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§

Ed25519Signer
ED25519 signing key.
X25519KeyPair

Enums§

AeadError
CryptoError

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