Design a quantum-safe chain
This guide is for our team building a new post-quantum (PQ) chain in Sprocket, our own verified language. It pulls together the topic pages linked below. Most sources are 2026 preprints, and many cards summarize only an abstract. Treat the numbers as claims, not settled results.
1. Threat and timeline
What breaks and what doesn't:
- Shor's algorithm is a quantum method for breaking discrete logs. It breaks ECDSA (Elliptic Curve Digital Signature Algorithm), Schnorr and BLS (Boneh-Lynn-Shacham aggregatable signatures) arxiv-2606.14484. See threat-model.
- Grover's algorithm is a quantum search speedup. It only roughly halves hash security, so SHA-256 keeps about 128 bits arxiv-2110.05321 arxiv-2508.21548. It also parallelizes poorly arxiv-1902.02332. See hash-functions.
Cost of an attack:
- The newest secp256k1 Shor circuits need about 1200 logical qubits and 90M Toffoli gates, or 1450 logical qubits and 70M arxiv-2603.28846 eprint-2026-625.
- Physical-qubit estimates disagree by orders of magnitude:
- about 317 million for a one-hour break arxiv-2508.17296
- fewer than half a million superconducting qubits, running in minutes eprint-2026-625
- 19,397 trapped-ion qubits over about 25.7 days eprint-2026-1916
See quantum-resource-estimates.
Long exposure and short exposure are two different threats:
- Long exposure means a key stays visible for days or longer. Examples are reused keys, revealed keys and dormant outputs. Our trend study puts this break at 2031 / 2037 / 2045 (low / central / high) quantum-trend.
- Short exposure means breaking a key in the minutes between broadcast and block inclusion. The study puts this at 2034 / 2042 / 2058. Its confidence is low quantum-trend.
- Fast-clock hardware could hit mempool transactions (pending transactions), with about 9 minutes as the average break time. Slow-clock platforms are expected to attack keys at rest first arxiv-2603.28846.
- Bitcoin's roughly 10-minute confirmation gives it the longest on-spend window among the major chains reviewed arxiv-2608.22924.
- Harvest-now-exploit-later: data recorded today can be forged against later arxiv-2508.21548.
Forecasts disagree:
- One forecast gives about one-in-six odds of a CRQC (cryptographically relevant quantum computer) by 2035 arxiv-2606.14484.
- An expert survey gives 28-49% within 10 years quantum-trend.
- An expert-opinion model rates the threat low within 10 years arxiv-2501.11798.
- NIST (the US standards body) targets 2035 for US federal migration spec-ir-8547-pqc-transition. Google set 2029 for its own migration eprint-2026-1992.
Consequence for us: assume the long-exposure threat arrives within the chain's lifetime. Design so that no key stays exposed for long.
2. Recommended primitives
| Role | Choice | Size / speed | Source |
|---|---|---|---|
| Default user signature | ML-DSA-44 (lattice, FIPS 204) | 2,420 B signature, 1,312 B public key | arxiv-2609.24689 |
| Compact option | Falcon-512 / FN-DSA | up to 666 B signature, 897 B public key | arxiv-2608.22924 |
| Conservative fallback | SLH-DSA-128s (stateless hash-based) | 7,856 B signature | arxiv-2608.22924 |
| Validator / long-lived roots | XMSS / LMS (stateful hash-based) | XMSS_16: 2,692 B signature, 68 B public key | arxiv-2509.11695 |
| Node transport | Hybrid X25519 + ML-KEM-768 (X-Wing) | secure if either part holds | eprint-2024-039 |
| Hashing | SHA-3/SHAKE plus SHA-2, 256-bit outputs | about 128-bit PQ security | spec-fips-202-sha3 arxiv-2110.05321 |
| Classical baseline | Schnorr | 64 B signature | spec-bip-0340-mediawiki |
Why these choices:
- Size, not verification time, is the binding cost. Falcon-512 verifies at close to ECDSA speed, but its keys and signatures dominate ledger growth arxiv-2611.34229. ML-DSA verifies faster than ECDSA in benchmarks arxiv-2510.09271. See benchmarks and sig-lattice.
- The papers disagree on which signature is best:
- One paper favors Falcon for bandwidth-limited chains arxiv-2608.22922 — correction: arxiv-2608.22924.
- ML-DSA-only Lattice rejects Falcon because floating-point sampling is hard to make constant-time arxiv-2603.07947.
- Another paper calls ML-DSA-44 the cleanest finalized candidate if its size is acceptable arxiv-2609.24689.
- Our pick: ML-DSA by default, with Falcon allowed only through a hardened integer implementation.
- Falcon-512 is borderline on security. A random-oracle proof shows it barely meets its 120-bit target eprint-2024-1769. A refined sieve suggests it may fall short of NIST's requirement eprint-2024-739.
- Hash-based schemes rest only on hash assumptions spec-sp-800-208-stateful-hbs. This is our hedge, because "selection is not a safety guarantee" eprint-2023-1838.
- Prefer SHAKE256 parameter sets for stateful hash signatures. A multi-target attack on SHA-256 cuts cost to about 2^166 at 2^64 signatures, and SHAKE256 sets are not affected eprint-2026-2635.
- Avoid Hawk. It was withdrawn after a key-recovery attack eprint-2026-1628.
- Treat isogeny and multivariate schemes as experimental. They have a long record of breaks arxiv-2510.10436 eprint-2026-2181. See sig-other and cryptanalysis.
3. Output and address design
Hide keys until spend, and never let them be reused:
- Hashed addresses hide the key only until the first spend arxiv-2106.06640.
- Reused keys block recovery under any transition scheme eprint-2020-186. Make address reuse invalid at consensus, not just discouraged.
Use P2MR-style outputs:
- BIP 360's P2MR is a Merkle script tree with no key-path spend. It protects against long exposure but not short exposure spec-bip-0360-mediawiki.
- The cost is bigger witnesses: 135 B for a depth-1 P2MR spend against 66 B for a P2TR key-path spend spec-bip-0360-mediawiki.
- Use one leaf per algorithm (ML-DSA, SLH-DSA, a WOTS-Tree fallback). WOTS-Tree witnesses are 353 B, but its default quantum forgery bound is only 57.9 bits eprint-2026-374.
- Build leaves with tagged hashes in the Taproot style spec-bip-0341-mediawiki.
Build in algorithm agility:
- Use versioned witness programs so new schemes arrive by soft fork spec-bip-0141-mediawiki.
- Use OP_SUCCESSx-style upgrade opcodes spec-bip-0342-mediawiki.
- Give each version its own address checksum spec-bip-0350-mediawiki.
- Decouple the transaction body from the signature in the CATX style, so schemes change through key registration eprint-2026-609.
- Derive account IDs from a hash of a high-entropy root, so the address survives a scheme change arxiv-2603.07974.
Bind context into every signature: chain ID, fork version, role, algorithm suite, nonce and fees arxiv-2609.24689.
Hybrid signatures must require both the classical and the PQ signature to verify, or attackers can downgrade by stripping one arxiv-2611.39511. See hybrid-schemes and wallets-keys.
4. Signature size and throughput mitigations
The scale of the problem:
- In a toy chain, 1000-transaction blocks took 2,497,118 B with Falcon-512 and 9,859,084 B with ML-DSA-87 arxiv-2601.17785.
- Larger payloads slow propagation and raise fork probability arxiv-2501.11798.
- Signature size, not compute, is what breaks protocol limits arxiv-2603.28728.
Mitigations:
- Install a public key once per account. Per-transaction authorization then drops to 2,469 B with ML-DSA-44 arxiv-2603.10242.
- Falcon-PKR cuts key plus signature by about 15% eprint-2026-2260.
- Counter grinding takes SLH-DSA-128s from 7856 B to 6304 B eprint-2022-778. BGS-CC reaches 2,228 B with a use quota eprint-2026-2502.
- Proof-based aggregation:
- Aerie: 42.1 B per Falcon signature eprint-2026-2501.
- Cross-field proof: 49.2 B per ML-DSA-44 signature eprint-2026-2936.
- STARK aggregation of one-time signatures: 100-200 KB eprint-2021-1048.
- Verifier cost is the weak point. Lattice aggregates were about ten times slower to verify than hash-based Plonky3 eprint-2026-398.
- Archive certificates compress stored ML-DSA-87 signatures to about 104-127 B each. The prover is slow and external review is pending eprint-2026-2739.
- Hash bytes are a hidden cost. Hashing large keys and signatures can rival sign and verify time arxiv-2010.06571.
- Pricing: on Ethereum, size sets the price under the calldata floor arxiv-2611.08108. Our fee model should price bytes directly.
See sig-aggregation-size and zk-proofs.
5. Consensus and networking
Vote certificates:
- No PQ scheme drops in for BLS quorum certificates. Hash-based multi-signatures come closest arxiv-2609.24689.
- Options:
- Signature-free BFT (Byzantine fault tolerance) keeps PQ signatures off the critical path. One design reaches 170,000 tx/s arxiv-2606.14404.
- Quantum Cadence needs no quorum certificates arxiv-2610.32803.
- Lemur+ gives about 56 KB at one million signers eprint-2026-2054.
- Threshold notarization costs 71 KiB per validator per block, against 1.5 MiB for ML-DSA-44 at n=1000 arxiv-2610.31814.
- Dispute: Chipmunk's paper claims 112-bit security eprint-2023-1820. The Lemur authors estimate about 30 bits eprint-2026-1161. Avoid Chipmunk.
Leader election and randomness:
- A PQ VRF (verifiable random function) is a separate need, and still unmet at scale arxiv-2512.13333.
- Candidates: X-VRF built on XMSS eprint-2021-302, a hash-only indexed VRF eprint-2022-993, and the HashRand beacon eprint-2023-1755.
- Dispute: one paper says hash-based signatures are too slow for practical VRFs arxiv-2109.02012, while others build them eprint-2022-993.
- Do not use pairing-based SNARK certificates. They are quantum-vulnerable arxiv-2610.29230.
If we use proof of work (PoW):
- Grover attacks look impractical today, and a timestamp attack would take about 800 years arxiv-2403.08023.
- Dispute on what PoW needs:
- The backbone analyses differ on whether settlement waits must grow by O(p^-1/6) eprint-2019-1150 or stay about the same up to a constant arxiv-2012.15254.
- Separately, Grover speedups may distort mining incentives even when PQ primitives are used eprint-2022-1423.
If we use proof of stake (PoS): concentrated keys are the risk. Outside Ethereum, 2 to 18 keys cross the one-third threshold arxiv-2611.33413.
Networking: use a hybrid ML-KEM handshake. Check what peers actually negotiated from the live key_share, not from the configuration eprint-2026-834. See kem and consensus.
6. Migration lessons from Bitcoin and Ethereum
- Migration time is bounded by block space. Moving all Bitcoin UTXOs (unspent transaction outputs) takes at least 76.16 days at full capacity arxiv-2410.16965, or about 152 days at half capacity arxiv-2512.13333. Starting PQ-native avoids this.
- Dormant P2PK (pay-to-public-key) coins cannot be fixed by later forks arxiv-2603.28846. Never create a key-exposed output type.
- On Ethereum, 54.6% of execution-layer ETH sits in transaction-exposed accounts arxiv-2611.25663. No bridge that leaves L1 rules unchanged can protect ECDSA assets arxiv-2610.29230.
- Rescue tools exist and are worth keeping in reserve:
- commit-delay-reveal eprint-2018-213
- STARK seed proofs arxiv-2611.25663
- Governance is the binding constraint:
- Incentives get in the way eprint-2025-1626.
- The party who can authorize an upgrade is often not the party who bears the loss arxiv-2610.02435.
- Write the emergency-rotation procedure into the protocol rules now.
- Hard-coded key sizes caused technical debt in another migration arxiv-2110.08661.
See bitcoin-migration, ethereum-migration and other-chain-migration.
7. Implementation risks
Side channels (leaks through timing, power or electromagnetic emissions):
- Leaking one bit of ML-DSA's per-signature randomness recovers the key eprint-2026-472.
- Rejected signatures leak too eprint-2025-214.
- Masking ML-DSA has been reported to cost over 200x arxiv-2509.01701.
- Hedged (randomized) signing does not stop every fault attack eprint-2024-138.
- Moving to ML-DSA means hardening the signer, not just swapping the algorithm eprint-2025-2025.
Falcon:
- Fusing three sampler observations recovered all 50 test keys of PQClean Falcon-512 with at most 34 signatures eprint-2026-2656.
- Native floating point on Cortex-M7 is not constant-time eprint-2022-405.
Testing gaps:
- Known-answer tests miss real bugs eprint-2026-1032 arxiv-2609.04058.
- Verified code can still hide "verification facade" gaps eprint-2026-670. This applies to us: Sprocket's proofs must cover constant-time behavior and encodings, not just functional correctness.
Stateful keys:
- Reusing a one-time key is disastrous. Optimized Lamport and WOTS give no reasonable security after two signatures eprint-2016-1042.
- NIST requires stateful signing inside hardware modules and calls it unsuitable for general use spec-sp-800-208-stateful-hbs.
- So use stateful keys only for validators and roots, with UC-proven (universally composable) state handling across hardware modules eprint-2025-2278.
- A heap overflow was found in liboqs XMSS^MT verification eprint-2026-1107.
See implementation-sidechannel and sig-stateful.
8. Open questions
- Is ML-DSA or Falcon better for chains? See the disagreement in section 2.
- How should ML-DSA's variable signing time be budgeted? Expected iterations are 4.36 / 5.14 / 3.91 for levels 44 / 65 / 87 eprint-2026-2456. Worst-case cost is unmeasured arxiv-2609.24689.
- Is there a scalable PQ VRF? arxiv-2512.13333
- Are compact PQ quorum certificates possible? arxiv-2609.24689
- On-spend (short-exposure) attacks: no scheme fully fixes them spec-bip-0360-mediawiki.
- How do we deliver proofs under client-side validation? Still unsolved arxiv-2609.32015.
- Can threshold hash-based signing be efficient? Black-box constructions are proven impossible eprint-2026-2194.
- Can the 2026 size-cutting schemes be trusted? Many are unreviewed. See survey and standards-policy.
9. Reading order
- arxiv-2609.24689: why there is no drop-in replacement, plus signature binding rules.
- arxiv-2603.28846: Shor costs and long vs short exposure.
- arxiv-2606.14484: forecasts and governance.
- spec-bip-0360-mediawiki: P2MR outputs.
- spec-fips-204-ml-dsa: the ML-DSA standard.
- arxiv-2608.22924: the case for Falcon on chains.
- arxiv-2603.07947: a live ML-DSA-only chain.
- arxiv-2611.34229: storage vs verification costs.
- arxiv-2410.16965: the migration capacity bound.
- eprint-2026-609: CATX agility.
- spec-sp-800-208-stateful-hbs: stateful hash-signature rules.
- arxiv-2606.14404: signature-free BFT.
- eprint-2026-2054: Lemur+ aggregation.
- arxiv-2611.33413: PoS key concentration.
- eprint-2025-2025: hardening the ML-DSA signer.