ML-DSA-65 vs 87: byte sizes, protocol tradeoffs and a Rust verification exercise
Compare NIST parameter sizes and 14 actual offline checks with fips204 0.4.6, then examine PQChain’s current ML-DSA-87 integration and its limits.

Fixed byte parameters, downloadable authored source, 14 actual local checks and explicit protocol limits. Algorithm parameters and network safety require separate evidence.
Start with fixed byte sizes
NIST published FIPS 204 on August 13, 2024. Table 1 associates ML-DSA-65 and 87 with security categories 3 and 5 and matrix dimensions (6, 5) and (8, 7). The suffix is not a security percentage, and categories are not a linear strength ratio.
| Parameter set | Security category | Public key / bytes | Signature / bytes |
|---|---|---|---|
| ML-DSA-65 | 3 | 1,952 | 3,309 |
| ML-DSA-87 | 5 | 2,592 | 4,627 |
A public key in 87 adds 640 bytes and a signature adds 1,318 bytes: approximately 32.8% and 39.8%. These differences describe fixed encodings, not a speed measurement or a complete transaction/block size. Key reuse, serialization framing and the network protocol determine actual overhead.
Reproduce the Rust exercise
Prerequisites: a local Rust/Cargo toolchain supporting edition 2024 and access to the locked crates.io dependencies. Download and extract the authored exercise below, then enter ml-dsa-size-check. A first run may fetch dependencies. Our editing environment already had a cache and ran successfully with --offline. No wallet, account or node is required.
cd ml-dsa-size-check
cargo run --locked --release
# With dependencies already cached:
cargo run --offline --locked --releaseDownload Rust source, lockfile and README ↓
Cargo.toml pins fips204 = "=0.4.6". The source uses two public fixed synthetic seeds; never use these seeds for real keys. Signing uses OS randomness, so signature bytes may vary between runs. Output contains checks and lengths, never a private key.
Each parameter set checks seven assertions: public-key length, signature length, valid verification, rejection of a changed message, changed context and flipped signature byte, and rejection of a 256-byte context. All 14 passed and the command exited with code 0. These specific inputs do not exhaust malformed-input cases.
{"fips204_version":"0.4.6","total_checks_passed":14,
"timing_benchmark":false,"node_or_wallet_used":false}Read complete actual output JSON · Download file SHA-256 digests
Actual environment: Windows 11, x86_64-pc-windows-msvc, rustc 1.94.1 and cargo 1.94.1, release build, checked November 1, 2026. No timings were recorded; this run cannot establish which parameter set is faster.
Troubleshooting
- Missing cached packages: run cargo fetch --locked in a development environment with permitted network access, then retry offline. Keep the lockfile and exact version.
- Edition 2024 unsupported: use a compatible toolchain. We did not test every older compiler.
- Signing error: retain the error and check local randomness availability; do not substitute a real wallet seed.
- Assertion failure: compare download hashes, Cargo.lock and the pinned dependency, then retain the log. Do not ignore failures and claim a pass.
Compare with the current PQChain source
This read-only check examined protocol/Cargo.toml and protocol/src/crypto.rs. The dependency is pinned to fips204 0.4.6; the current protocol uses pure ML-DSA-87, with 2,592-byte public keys and 4,627-byte signatures. Account, consensus and identity roles use TX-v1, VOTE-v1 and NODE-dev-v0.3 contexts respectively, and the verification entry point checks lengths strictly.
The exercise calls the same library version directly, not the PQChain wrapper or a running node. It does not prove the project’s role separation, consensus or TLS integration correct. Source inspection and exercise results have different scopes. PQChain remains an independent, personally developed AI-assisted candidate-network prototype; mainnet is not activated.
What a parameter choice still requires
- Choose a category against a threat model and measure signing, verification, memory and worst cases on target hardware. This article supplies no such benchmark.
- Specify algorithm identifiers, canonical encoding, contexts, key lifecycle, length and resource limits. The parameter sets are not wire-compatible replacements.
- Evaluate bandwidth, storage, fees, abuse resistance and upgrade compatibility; changing a suffix is insufficient.
- Separate library tests, integration tests, independent review and network validation. A standardized algorithm does not establish FIPS module validation or whole-network safety.
Sources, dates and verification limits
Sources and local execution checked November 1, 2026. FIPS 204 Tables 1–2 were cross-checked against the installed fips204 0.4.6 source constants. We did not fully review NIST’s potential errata spreadsheet or perform formal proofs, FIPS conformance validation, independent auditing, network testing or performance benchmarking.
AI-assisted drafting and editing, with explicit checks of parameters, source correspondence and actual command output. Sources do not endorse this project. First published October 17, 2026; this substantive update preserves the original publication date.
Check downloaded files with the local hash tool · Read candidate-network documentation