ML-DSA and FIPS 204, explained without the math
ML-DSA is the signature algorithm NIST chose to replace RSA and ECDSA in a world with quantum computers. Here is what it is, how big its keys are and what it costs you in practice.
What ML-DSA is, in one paragraph
A digital signature algorithm does two things: the holder of a private key can produce a signature over some data, and anyone with the matching public key can check that signature. If the data changes by one bit, or the signature was made with another key, the check fails. RSA and ECDSA do this today. ML-DSA does the same job with different math, chosen because quantum computers are not known to solve it efficiently.
ML-DSA comes from CRYSTALS-Dilithium, one of the algorithms submitted to the public competition NIST started in 2016. After three rounds of analysis by cryptographers worldwide, NIST standardized it with small changes as FIPS 204. A FIPS is a Federal Information Processing Standard: binding for US federal systems and widely adopted by everyone else.
Lattices without the math
Picture a grid of points that extends in hundreds of dimensions instead of two. Given a point near the grid, finding the closest grid point is easy if you have a "good" description of the grid and extremely hard if you only have a "bad" one. Lattice cryptography builds keys around this asymmetry: the private key is the good description, the public key is the bad one.
ML-DSA relies on two problems over structured ("module") lattices: Module Learning With Errors and a variant of Module Short Integer Solution. The best known attacks on them, classical or quantum, take exponential time at the sizes FIPS 204 uses. RSA and ECDSA, by contrast, rely on factoring and discrete logarithms, which Shor's quantum algorithm solves in polynomial time.
The three parameter sets
FIPS 204 defines three sizes. The number in each name refers to the dimensions of the internal matrix (4x4, 6x5, 8x7), not to a security level. NIST IR 8547 maps them to NIST's five post-quantum security categories, where category 1 is as hard to break as AES-128 key search and category 5 as hard as AES-256 key search.
| Parameter set | Security category (NIST IR 8547) |
|---|---|
| ML-DSA-44 | Category 2 (128-bit classical strength) |
| ML-DSA-65 | Category 3 (192-bit classical strength) |
| ML-DSA-87 | Category 5 (256-bit classical strength) |
Key and signature sizes (FIPS 204, Table 2)
This is the main practical cost of ML-DSA. Sizes are in bytes, straight from Table 2 of FIPS 204:
- FIPS 204 notes the private key can be stored as just its 32-byte seed and regenerated when needed.
- For a PDF or a certificate, a few extra kilobytes do not matter. For protocols that send many signatures per connection, like TLS certificate chains, they do, and that is where most engineering work goes.
| Parameter set | Private key / public key / signature (bytes) |
|---|---|
| ML-DSA-44 | 2,560 / 1,312 / 2,420 |
| ML-DSA-65 | 4,032 / 1,952 / 3,309 |
| ML-DSA-87 | 4,896 / 2,592 / 4,627 |
How ML-DSA compares to RSA and ECDSA
Speed is not the problem people expect. ML-DSA signing and verification are fast on ordinary hardware, in the same range as elliptic-curve signatures and faster than RSA signing. The trade-off is size, not time.
Compared with SLH-DSA (FIPS 205), the hash-based alternative, ML-DSA has much smaller signatures and faster signing. SLH-DSA relies only on the security of hash functions, which some prefer as a conservative backup. Both are post-quantum.
NIST IR 8547 lists ML-DSA, SLH-DSA, LMS and XMSS as the approved post-quantum signature families, and plans to deprecate RSA, ECDSA and EdDSA after 2030 and disallow them after 2035.
| Algorithm | Public key / signature size, quantum status |
|---|---|
| RSA-3072 | About 384 / 384 bytes; broken by Shor's algorithm |
| ECDSA P-256 | About 64 / 64 bytes; broken by Shor's algorithm |
| Ed25519 | 32 / 64 bytes; broken by Shor's algorithm |
| ML-DSA-65 | 1,952 / 3,309 bytes; no known efficient quantum attack |
| ML-DSA-87 | 2,592 / 4,627 bytes; no known efficient quantum attack |
Details that matter when you implement it
- Pure or pre-hash: FIPS 204 defines "pure" ML-DSA, which signs the message itself, and HashML-DSA, which signs a hash of it. RFC 9881, the IETF profile for ML-DSA in X.509 certificates, allows only pure ML-DSA there.
- Context string: FIPS 204 lets you bind a signature to an application with a context string of up to 255 bytes. An empty context is the common default.
- Hedged by default: signing mixes in fresh randomness, which helps against side-channel attacks. A deterministic variant is allowed for devices without a good random source.
- Key storage: keep the private key in a hardware security module or a cloud key service that supports ML-DSA, so it is never exported.
Common misconceptions about ML-DSA
- "Post-quantum means it needs a quantum computer." No. ML-DSA runs on ordinary computers, phones and cloud key services. It is designed to resist attackers who have a quantum computer.
- "The number in the name is the security in bits." No. 44, 65 and 87 describe the size of the internal matrix. The security levels are categories 2, 3 and 5.
- "Lattice cryptography is untested." Lattice-based cryptography has been studied since the 1990s, and Dilithium went through public analysis in the NIST process from its submission in 2017 until FIPS 204 was published in 2024.
- "ML-DSA replaces hash functions." No. It uses SHAKE hash functions internally, and a signature system still needs a strong hash to fingerprint documents. Pair it with SHA-384 or SHA-512 for long-lived records.
- "You must combine it with RSA or ECDSA." Some protocols use hybrid or composite signatures as a safety net during the transition. FIPS 204 defines ML-DSA on its own, and NSA CNSA 2.0 lists ML-DSA-87 alone for signatures.
Why we chose ML-DSA-87 for signdocumentsonchain.com
A contract certificate is signed once and checked rarely, sometimes decades later. Size and speed are almost irrelevant at that scale, so we took the strongest parameter set: ML-DSA-87, category 5, which is also the signature algorithm in the NSA CNSA 2.0 suite.
Every certificate is signed in FIPS 204 pure mode with an empty context when it is issued, and every Merkle root we anchor on the Base blockchain every 10 minutes is signed too. The private key lives in AWS KMS. Our 2,592-byte public key is published at /api/v1/pq-key, and you can check any signature with any FIPS 204 implementation or our open-source verifier. See /post-quantum/verify-post-quantum-signature.
Frequently asked questions
Is ML-DSA the same as Dilithium?
ML-DSA is the standardized version of CRYSTALS-Dilithium. FIPS 204 made some changes from the round 3 submission (listed in its Appendix D), so implementations of the old Dilithium are not automatically compatible with ML-DSA.
Which ML-DSA parameter set should I use?
ML-DSA-65 is a common general-purpose choice. ML-DSA-87 is the highest security level and the only one in NSA CNSA 2.0. ML-DSA-44 is the smallest. For long-lived signatures where size is not a constraint, ML-DSA-87 is the conservative pick.
How big is an ML-DSA-87 signature?
4,627 bytes, with a 2,592-byte public key and a 4,896-byte private key, according to FIPS 204 Table 2.
Is ML-DSA slower than RSA?
No. ML-DSA signing is generally faster than RSA signing, and verification is fast for both. ML-DSA's cost is in size: keys and signatures are several kilobytes.
When was FIPS 204 published?
NIST published FIPS 204 on August 13, 2024, together with FIPS 203 (ML-KEM) and FIPS 205 (SLH-DSA).
Sources
- NIST FIPS 204: Module-Lattice-Based Digital Signature Standard https://csrc.nist.gov/pubs/fips/204/final
- NIST FIPS 205: Stateless Hash-Based Digital Signature Standard https://csrc.nist.gov/pubs/fips/205/final
- NIST IR 8547: Transition to Post-Quantum Cryptography Standards https://csrc.nist.gov/pubs/ir/8547/final
- NIST FIPS 186-5: Digital Signature Standard (RSA, ECDSA, EdDSA) https://csrc.nist.gov/pubs/fips/186-5/final
- IETF RFC 9881: Algorithm Identifiers for ML-DSA in X.509 https://www.rfc-editor.org/rfc/rfc9881
- NIST: first 3 finalized post-quantum encryption standards (August 2024) https://www.nist.gov/news-events/news/2024/08/nist-releases-first-3-finalized-post-quantum-encryption-standards
Keep reading
Most signed contracts today are protected by RSA or elliptic-curve cryptography, which a large quantum computer could break. A quantum-safe signature uses algorithms built to survive that day.
The NIST post-quantum standards, and the dates that retire RSA and ECCNIST has published three post-quantum standards, has two more in progress, and in October 2026 finalized the plan that phases out RSA, ECDSA and elliptic-curve key exchange. Here is what each one does and what the timeline means for signed documents.
CNSA 2.0: the NSA's post-quantum algorithms and deadlines, and why they matter outside governmentCNSA 2.0 is the list of algorithms the NSA requires for US national security systems, with a migration calendar that ends in 2035. Even if you never sell to the government, it is the clearest public benchmark for "quantum-safe enough".
SHA-512 vs SHA-256 in a quantum world: is SHA-256 still enough?Quantum computers break RSA and ECDSA outright, but they only dent hash functions. The dent is why the NSA asks for SHA-384 or SHA-512 and why we fingerprint every document with SHA-512.
How to verify a post-quantum signed document yourself, step by stepA proof is only worth something if you can check it without asking the company that made it. Here is how to check one of our certificates in your browser, on the command line, offline, or against your own blockchain node.