hanzo-pqc
Post-quantum cryptography for the Hanzo ecosystem. ML-KEM, ML-DSA, SLH-DSA, hybrid modes, privacy tiers, attestation, AI mining rewards.
The single canonical implementation. Used by the SDK and by every chain crate
(hanzo-vm, hanzo-consensus, hanzo-l2).
Install
[]
= "1.1.22"
Algorithms
| Algorithm | NIST FIPS | Module | Feature flag (default) |
|---|---|---|---|
| ML-KEM | 203 | hanzo_pqc::kem |
ml-kem ✓ |
| ML-DSA | 204 | hanzo_pqc::signature |
ml-dsa ✓ |
| SLH-DSA | 205 | hanzo_pqc::signature |
slh-dsa |
| Hybrid | — | hanzo_pqc::hybrid |
hybrid ✓ (pulls x25519-dalek) |
Extra modules (always compiled):
attestation— TEE attestation + key releaseprivacy_tiers— per-tier privacy enforcement (Open / Enhanced / Confidential / TEE-I/O)cc_tier— confidential-compute tier integrationai_rewards— PQ-signed AI mining rewardswire_protocol— wire-format encoding for over-the-network PQ messageskdf— HKDF helpers
Optional features
fips-mode— strict NIST FIPS compliance gatinggpu-cc— GPU confidential-compute integrationstee-io— TEE-I/O (Blackwell-class) integrationscpu-tee— CPU TEE integrations
Example
use ;
let = generate_keypair?;
let = encapsulate?;
let shared_b = decapsulate?;
assert_eq!;
License
MIT