What Are the Three Finalized NIST Post-Quantum Cryptography Standards?
In August 2024, NIST finalized its first three post-quantum cryptography standards after an eight-year evaluation process. These standards replace classical public-key cryptography in applications where long-term security against quantum adversaries is required:
- FIPS 203 (ML-KEM): Module-Lattice Key Encapsulation Mechanism, based on CRYSTALS-Kyber. Used for key exchange and key encapsulation.
- FIPS 204 (ML-DSA): Module-Lattice Digital Signature Algorithm, based on CRYSTALS-Dilithium. The primary post-quantum replacement for ECDSA.
- FIPS 205 (SLH-DSA): Stateless Hash-Based Digital Signature Algorithm, based on SPHINCS+. A conservative backup based on hash function security rather than lattice assumptions.
A fourth standard, FIPS 206 (FN-DSA, based on FALCON), was finalized in August 2024 as well. This guide focuses on the three listed above as the most practically relevant for blockchain implementation.
How Does FIPS 203 ML-KEM Work for Blockchain Key Exchange?
ML-KEM replaces Diffie-Hellman key exchange and RSA key encapsulation. In a blockchain context, it is used when two parties need to establish a shared secret for encrypted communication — relevant for validator communication, private transaction channels, and off-chain messaging.
Parameters
| Security Level | Parameter Set | Public Key Size | Ciphertext Size | Equivalent Classical Security |
|---|---|---|---|---|
| Level 1 | ML-KEM-512 | 800 bytes | 768 bytes | AES-128 |
| Level 3 | ML-KEM-768 | 1,184 bytes | 1,088 bytes | AES-192 |
| Level 5 | ML-KEM-1024 | 1,568 bytes | 1,568 bytes | AES-256 |
For most blockchain applications, ML-KEM-768 provides an appropriate security margin. The key and ciphertext sizes are larger than classical DH but well within acceptable bounds for authenticated encrypted channels.
FIPS 204: ML-DSA for Transaction Signing
ML-DSA is the primary post-quantum replacement for ECDSA. It uses Module Learning With Errors (MLWE) hardness, a lattice problem that is not known to be solvable efficiently by quantum computers.
Parameters
| Security Level | Parameter Set | Public Key | Private Key | Signature Size | Equivalent Classical Security |
|---|---|---|---|---|---|
| Level 2 | ML-DSA-44 | 1,312 bytes | 2,528 bytes | 2,420 bytes | ~AES-128 |
| Level 3 | ML-DSA-65 | 1,952 bytes | 4,000 bytes | 3,309 bytes | ~AES-192 |
| Level 5 | ML-DSA-87 | 2,592 bytes | 4,864 bytes | 4,595 bytes | ~AES-256 |
The signature size increase relative to ECDSA (64 bytes) is the primary engineering challenge for blockchain adoption. An ML-DSA-44 signature is 38 times larger than an ECDSA signature. This has direct implications for block size, transaction throughput, and storage requirements.
Implementation Pattern for Transaction Signing
Replacing ECDSA with ML-DSA in a blockchain transaction involves three changes:
- Key generation: Replace secp256k1 keypair generation with ML-DSA key generation from a seed. The seed can be derived from a BIP32-compatible HD wallet derivation path if the derivation function is updated to output ML-DSA seeds.
- Signing: Replace ECDSA sign with ML-DSA sign. The signing function takes the private key and message hash as input, returns a 2,420-4,595 byte signature depending on the parameter set chosen.
- Verification: Replace ECDSA verify with ML-DSA verify. The verification function takes the public key, message hash, and signature. Verification is faster than signing, which is favorable for blockchain validation nodes that verify many more signatures than they produce.
Pseudocode for the signing migration:
// Classical ECDSA
const keypair = secp256k1.generateKeypair(seed)
const sig = secp256k1.sign(txHash, keypair.privateKey)
const valid = secp256k1.verify(txHash, sig, keypair.publicKey)
// Post-quantum ML-DSA
const keypair = mlDSA44.generateKeypair(seed)
const sig = mlDSA44.sign(txHash, keypair.privateKey) // returns 2,420 bytes
const valid = mlDSA44.verify(txHash, sig, keypair.publicKey)
FIPS 205: SLH-DSA as a Conservative Backup
SLH-DSA (SPHINCS+) is a hash-based signature scheme. Its security relies entirely on the collision resistance of a hash function — a much older and more studied assumption than lattice hardness. This makes SLH-DSA more conservative: even if lattice-based cryptography were somehow broken, SLH-DSA would remain secure as long as the underlying hash function (SHA-256 or SHAKE) is secure.
Parameters
| Variant | Parameter Set | Public Key | Signature Size | Notes |
|---|---|---|---|---|
| Fast (f) | SLH-DSA-SHAKE-128f | 32 bytes | 17,088 bytes | Faster signing, larger sig |
| Small (s) | SLH-DSA-SHAKE-128s | 32 bytes | 7,856 bytes | Smaller sig, slower signing |
| Fast (f) | SLH-DSA-SHAKE-256f | 64 bytes | 49,856 bytes | Highest security, largest sig |
SLH-DSA's signature sizes are significantly larger than ML-DSA, making it impractical as a primary blockchain signature scheme. Its role is as a fallback or backup signature that provides a second layer of security independent of lattice assumptions. High-security contexts such as root certificate authorities or governance keys that are used infrequently may choose SLH-DSA for its conservative security properties.
Hybrid Signatures During Transition
A common implementation pattern during migration is to use hybrid signatures: a transaction carries both an ECDSA signature (for backward compatibility with existing validators) and an ML-DSA signature (for forward quantum resistance). Both are required to be valid.
This approach provides immediate quantum resistance while maintaining compatibility with validators that have not yet upgraded. The cost is doubled signature size, which compounds the throughput challenge. Hybrid signatures should be treated as a transitional mechanism rather than a long-term architecture.
Block Size and Throughput Implications
A blockchain that replaces ECDSA with ML-DSA-44 will see transaction sizes increase by approximately 2,356 bytes per signature (2,420 - 64 = 2,356, plus public key size difference). For a chain processing 1,000 transactions per second, this is an additional 2.35 GB of signature data per 1,000 seconds.
Managing this overhead requires one or more of:
- Increased block sizes to maintain transaction throughput
- Signature aggregation schemes that batch multiple signatures into a smaller combined proof
- Multi-channel architectures that separate high-volume payments (needing only lightweight signatures) from complex contracts requiring full verification
- Data compression applied to signature data across a block
QuanChain's three-channel architecture and 70% data compression were designed specifically to absorb this overhead while maintaining competitive throughput.
Implementation Patterns and Integration Examples
Implementing NIST's post-quantum standards in a blockchain codebase requires adapting several foundational components. The following patterns address the most common integration challenges.
Key Generation: ML-DSA-65 in Practice
ML-DSA-65 key pairs consist of a 1,952-byte public key and a 4,032-byte private key, compared to secp256k1's 33-byte compressed public key and 32-byte private key. This size difference has implications for key storage, in-memory representation, and transmission. In a blockchain context, public keys may appear in transaction outputs (if the scheme exposes them directly) or in validator registration messages — budget for this size increase in your data structures.
Avoid deriving ML-DSA keys directly from an ECDSA seed phrase or private key. ML-DSA and secp256k1 operate over different mathematical structures; the properties of one key type do not transfer to the other. Generate ML-DSA keys from a 32-byte random seed using the ML-DSA keygen function defined in FIPS 204, and derive that seed from your BIP-39 entropy using HKDF or a domain-separated SHAKE-256 derivation.
Signature Verification in a Smart Contract Context
ML-DSA-65 signatures are 3,309 bytes. In an EVM context, passing a 3,309-byte signature as calldata costs approximately 53,000 gas at current pricing — roughly 50× the cost of an ECDSA ecrecover call. For high-throughput applications, batch verification using ML-DSA's aggregate verification mode can amortise this cost across multiple signatures per transaction. Alternatively, use a commitment scheme: record the hash of the ML-DSA public key on-chain during account creation, and only transmit the full public key and signature at spend time.
Key Encapsulation with ML-KEM
ML-KEM (FIPS 203) is used for establishing shared secrets — analogous to Diffie-Hellman in classical protocols. In a blockchain context, ML-KEM is relevant for encrypted peer-to-peer messaging, secure RPC channels between validators, and threshold cryptography schemes that require encrypted key shares. ML-KEM-768 produces an 1,088-byte ciphertext and a 32-byte shared secret, with an encapsulation key size of 1,184 bytes. For a validator-to-validator encrypted channel, this represents a one-time setup cost of roughly 2–3 KB per connection — negligible at typical message frequencies.
Hash-Based Signatures with SLH-DSA
SLH-DSA (FIPS 205) is appropriate for use cases where the absence of algebraic structure is essential — for example, signing validator software binaries where even a theoretical vulnerability in ML-DSA's lattice assumptions is unacceptable. The trade-off is signature size: SLH-DSA-SHA2-128s produces 7,856-byte signatures, while SLH-DSA-SHA2-128f produces 17,088-byte signatures (the fast variant). For most blockchain transaction signing purposes, ML-DSA provides better throughput; SLH-DSA is best reserved for long-lived signing keys like root certificate authorities or software release signing keys.
Migration Strategy: Hybrid Signatures During Transition
For blockchain networks migrating from ECDSA to post-quantum signatures, a hybrid signature approach minimises migration risk. During the transition period, require each transaction to include both an ECDSA signature and an ML-DSA signature. Validators verify both; if either fails, the transaction is rejected. This approach ensures that a vulnerability discovered in ML-DSA during the transition does not expose the network, while also ensuring that classical signature forging does not remain a viable attack once the transition deadline passes. Set a governance-approved sunset block at which ECDSA verification is disabled and only ML-DSA signatures are required. This is the approach QuanChain used during its genesis migration planning and provides a model for existing ECDSA chains evaluating post-quantum transition paths. The full PQC migration guide covers the governance and testing requirements for each transition phase.
Keeping Up With NIST Updates
NIST's post-quantum standardisation process continues beyond the August 2024 publication of FIPS 203, 204, and 205. The fourth-round candidates — including BIKE, Classic McEliece, and HQC — may produce additional standards for key encapsulation in the 2026–2028 timeframe. For blockchain implementations, this means the ML-KEM choice for key encapsulation is well-founded today but should be monitored: a future NIST standard based on code-based cryptography (like Classic McEliece) might provide stronger security guarantees for certain use cases. Additionally, FIPS 206 — the standard for FALCON/FN-DSA — is expected to publish in 2026 and will provide a compact-signature alternative to ML-DSA for blockchains where signature size is a critical constraint. Building your implementation with algorithm agility — the ability to swap signature schemes with a governance-approved upgrade — is prudent given this evolving landscape. QuanChain's modular cryptographic layer is designed exactly for this purpose: when NIST publishes new standards, the protocol can adopt them through a governance vote rather than a contentious hard fork.


