Stateful Hash-Based Signatures
What it is
A stateful signature scheme uses a large set of one-time keys. Each key must sign at most one message. The signer must remember which keys are spent. This memory is called "state." The main schemes are LMS (Leighton-Micali Signatures), HSS (Hierarchical Signature System), XMSS (eXtended Merkle Signature Scheme) and XMSS^MT (multi-tree XMSS). Their security rests only on hash functions spec-sp-800-208-stateful-hbs. NIST approves them but says they are not for general use, because state management is hard to guarantee spec-sp-800-208-stateful-hbs spec-ir-8547-pqc-transition.
Related topics: sig-hash-based (the wider family, including stateless schemes), sig-lattice, hash-functions, sig-aggregation-size, threat-model.
State of knowledge
Standards and security proofs
- NIST SP 800-208 approves LMS/HSS and XMSS/XMSS^MT. It requires key and signature generation to run in hardware modules that never export secret keys spec-sp-800-208-stateful-hbs.
- The same document judges LMS and XMSS to have substantially similar security assumptions. So the choice should rest on efficiency spec-sp-800-208-stateful-hbs. A comparison of the two is in eprint-2017-349.
- LMS is proven secure in the quantum random-oracle model. The bounds match Grover's search within a constant factor eprint-2017-607.
- WOTS+ (the one-time building block) has a tight standard-model proof and shorter signatures eprint-2017-965.
- XMSS-T gives tight security through multi-target hash properties. That allows smaller hash outputs eprint-2015-1256.
- XMSS as in RFC 8391 has a machine-checked proof in EasyCrypt eprint-2023-408. There is also a formally verified Jasmin implementation eprint-2026-134.
- XMSS^MT can sign a virtually unlimited number of messages. Its parameters can be optimized per use case eprint-2017-966.
Hash choice and exact security
- A multi-target attack on SHA-256 message hashing in HSS/LMS and XMSS cuts cost from a nominal 2^256 to about 2^166 for 2^64 signatures. SHAKE256 parameter sets are not affected eprint-2026-2635.
- Forgery attacks exist against two SHA-256-based LMS variants. Their security is moderate, not full eprint-2026-2624.
- XMSS with 128-bit digests gets 127-bit strong unforgeability under most accounting modes. Under the most conservative convention it gets 122 bits eprint-2026-2626.
- Hash functions other than SHA-2 can be swapped in, for example SM3 eprint-2022-1552 eprint-2022-1491 or Korean algorithms eprint-2022-152.
- Lower bounds suggest hash-only signatures cannot escape near-quadratic size growth in the random oracle model eprint-2026-2237.
State management and reuse
- State synchronization failures are a real security problem. Hybrid stateless/stateful designs degrade gracefully when state is copied eprint-2016-357.
- A UC-proven (universally composable) protocol keeps state consistent across distributed HSMs (hardware security modules) eprint-2025-2278.
- Repeating randomized hashing can retain at least 128 bits after a single WOTS key reuse. It costs about 44,000 repetitions on average eprint-2026-1321.
- CUTS bounds forgery after key reuse eprint-2026-2455.
- A time-schedule approach makes XMSS state static, but it depends on a trusted clock arxiv-2509.11695.
Blockchain-specific designs
- WOTS-Tree offers Bitcoin witnesses as small as 353 bytes for single-use outputs. Its default quantum forgery resistance is only 57.9 bits eprint-2026-374. See bitcoin-migration.
- BPQS uses a ledger's hash-linked structure to cut signing cost eprint-2018-658. Synced hash-based signatures get cheaper per signature as more are published eprint-2020-1055.
- STARK (a hash-based zero-knowledge proof) aggregation can compress thousands of one-time signatures into 100 KB to 200 KB eprint-2021-1048. See zk-proofs.
- Lemur is a lattice-based synchronized multi-signature. It reports that Chipmunk's claimed 112-bit security is only about 30 bits eprint-2026-1161.
- XMSS-based VRFs (verifiable random functions) support leader election eprint-2021-302 eprint-2022-993 eprint-2026-052. See consensus.
- A proposed Ethereum migration moves validators to leanXMSS first arxiv-2611.25663. See ethereum-migration.
- On Ethereum, a standard LMS verifier costs 3,350 gas per record when device-signed Merkle roots are posted arxiv-2611.08108.
- A hybrid pattern: a lattice or XMSS root certifies short-lived keys arxiv-2306.14772 arxiv-2509.11695 eprint-2021-1447.
Threshold and group variants
- Haystack and PRAWNS threshold LMS/XMSS signing. Both produce standard-format signatures eprint-2026-1804 eprint-2026-2142. Earlier work needs a trusted dealer and a multi-GiB reference value eprint-2022-241.
- A black-box impossibility result says efficient threshold signing must use the hash circuit itself eprint-2026-2194.
- One-round threshold XMSS is possible with threshold FHE (fully homomorphic encryption) eprint-2026-2360.
- A survey notes hash-based signatures cannot be aggregated additively arxiv-2608.26792.
- Group signature variants exist eprint-2018-274 eprint-2025-2270 eprint-2026-2922.
Implementation and side channels
- Laser fault injection works against WOTS-based schemes, including LMS and XMSS eprint-2025-2096.
- A voltage-glitch attack applies to XMSS and LMS. Caching one-time signatures blocks it for stateful schemes eprint-2018-674.
- XMSS differential power analysis resistance reduces to its PRNG eprint-2018-673.
- A heap overflow (CVE-2026-46344) was found in liboqs XMSS^MT verification eprint-2026-1107.
- Stateful signing appeared in only one of seven audited libraries arxiv-2605.17061. See implementation-sidechannel.
- Hardware accelerators make XMSS practical on constrained devices eprint-2018-1225 eprint-2021-352 eprint-2026-194. See benchmarks.
Numbers worth knowing
| Item | Value | Source |
|---|---|---|
| LMS/XMSS tree heights approved | 5, 10, 15, 20, 25 | spec-sp-800-208-stateful-hbs |
| XMSS_16 signature / public key | 2,692 B / 68 B | arxiv-2509.11695 |
| XMSS/LMS signature range | 2.5-12 kB | arxiv-2601.11095 |
| WOTS-Tree single-use witness | 353 bytes | eprint-2026-374 |
| WOTS-Tree quantum forgery resistance | 57.9 bits | eprint-2026-374 |
| LMS verifier gas per record (k=100) | 3,350 | arxiv-2611.08108 |
| Aggregated one-time signatures (STARK) | 100KB to 200KB | eprint-2021-1048 |
| XMSS strong unforgeability | 127 bits (122 conservative) | eprint-2026-2626 |
| SHA-256 multi-target attack, 2^64 signatures | about 2^166 | eprint-2026-2635 |
| XMSS key generation, height 20 | 9823.49 s | arxiv-2306.14772 |
| Accelerated XMSS key generation (2^10 signatures) | 3.44 s | eprint-2018-1225 |
| Lemur aggregate for 2^20 signers | 380 KB | eprint-2026-1161 |
Open questions / disagreements
- Safe or not? NIST says stateful schemes are not for general use spec-sp-800-208-stateful-hbs spec-ir-8547-pqc-transition. BPQS authors argue they make many-time stateful schemes obsolete for blockchains eprint-2018-658. WOTS-Tree argues that Bitcoin's spend-once model suits them eprint-2026-374.
- Proof strength versus concrete attacks. LMS has a quantum random-oracle proof eprint-2017-607. Concrete SHA-256 variants lose security eprint-2026-2624 eprint-2026-2635.
- How many bits? XMSS is 127 or 122 bits depending on accounting eprint-2026-2626. WOTS-Tree defaults to 57.9 quantum bits eprint-2026-374.
- Fault attacks. Stateful schemes can cache signatures against glitching eprint-2018-674. Laser faults still work on them eprint-2025-2096.
- Where does it fit? Falcon is preferred for embedded chains, with XMSS as an alternative eprint-2024-1178. A satellite-navigation study rejects XMSS for frequent public-key updates arxiv-2312.11080.
- Threshold signing: efficient designs exist eprint-2026-2142 eprint-2026-2360. Yet black-box approaches are proven impossible eprint-2026-2194, and PRAWNS lacks efficient distributed key generation eprint-2026-2142.
- Chipmunk's security level is disputed by Lemur's authors eprint-2026-1161.
What it means for our chain
- Treat one-time-key state as a consensus-critical invariant spec-sp-800-208-stateful-hbs eprint-2016-357.
- Prefer SHAKE256 parameter sets over SHA-256 eprint-2026-2635.
- Stateful keys fit long-lived roots and validators, not general user wallets arxiv-2611.25663 arxiv-2509.11695. See wallets-keys and chain-design.
- Post batched roots or aggregate proofs, not per-transaction signatures arxiv-2611.08108 eprint-2021-1048.
- Plan for fault and side-channel defenses, and check library support eprint-2025-2096 arxiv-2605.17061.
- Keep a stateless fallback in view, and plan crypto agility eprint-2016-357 arxiv-1909.07353. See hybrid-schemes and standards-policy.
Confidence is medium. The theory is strong, but chain-level evidence is mostly proposals.