← Back to section · Post-Quantum Cryptography

XMSS Explained: The First Standardized Stateful Hash-Based Signature (RFC 8391)

How XMSS assembles WOTS+ and Merkle trees into a complete system: the multi-tree XMSS^MT extension, forward security, its approval under SP 800-208, and how its route differs from LMS.

Published 22 November 2026 · 6 min read · PQ Frontier

XMSS Explained: The First Standardized Stateful Hash-Based Signature (RFC 8391)
AI-generated site artwork
Video explainer · Hash-based signatures

Turning components into a system requires someone to nail down parameters, encodings, key derivation and security arguments into a specification. XMSS (eXtended Merkle Signature Scheme) is the first design in the hash-based family to walk that whole road: published by the IETF as RFC 8391 in 2018 and subsequently approved by NIST in SP 800-208. It is not a laboratory construction but a complete specification one can implement against, interoperate with and submit to compliance review — which is why it, alongside LMS, forms the pair of standards for stateful hash-based signatures.

Assembly: WOTS+ leaves on a Merkle tree

XMSS’s structure is precisely the combination of the components covered earlier in this subcategory. Each leaf of the tree is a WOTS+ one-time key: the leaf value is not the one-time public key itself but an addressed hash compression of it. Internal nodes hash pairwise up to the root, and the root together with a hash-function identifier forms the public key. On the private side, a single seed derives all one-time private keys and pseudorandom material, and the signer additionally maintains the current leaf index.

An XMSS signature has three parts: the index of the leaf being used, that leaf’s WOTS+ signature, and the authentication path from the leaf to the root. In size terms, the bulk of the signature is the WOTS+ part (dozens of hash values); the authentication path is a small slice proportional to the tree height, so an XMSS signature overall lands in the few-kilobyte range — the same order of magnitude as ML-DSA, and far below the stateless route’s tens of kilobytes. This is the stateful route’s most commonly underestimated advantage: on size and speed it is anything but antique; its real price is not in the cryptographic metrics but in the state-custody column. The verifier first recovers a candidate one-time public key from the WOTS+ signature, then recomputes the root along the authentication path and compares it with the public key. Compared with the textbook Merkle scheme, XMSS adds something important: every position in the tree is mixed with a unique “address”, bringing leaf hashes, internal nodes and WOTS+ chain steps under one domain-separation discipline — hash calls for different purposes are isolated from one another. This is an early form of the “tweakable hash” idea later used in SPHINCS+, aimed at multi-target attacks against a single hash function.

XMSS also builds in a route to forward security: one-time private keys are derived from the seed and the index by a pseudorandom function and can be discarded after use, so if the key material is later compromised, the attacker cannot go back and forge signatures at earlier indices — provided the implementation really derives on demand instead of hoarding every private key.

XMSS^MT: layers break the single-tree ceiling

A single tree has two pain points: the taller it is, the more leaves key generation must compute; and the total number of signatures is capped by the leaf count of that one tree. XMSS^MT (the multi-tree variant) stacks trees: the bottom layer consists of many subtrees, each subtree’s root is signed by a leaf of the layer above, and the root of the topmost tree is the public key. Signing proceeds downward — a one-time signature from the layer above “issues” the root of the subtree below, which then signs the message. The total number of signatures becomes the product of the layers’ leaf counts, while each individual tree can keep a moderate height: key generation can be sharded and done on demand, and signature size grows linearly in the number of layers. It is the classic engineering move of trading structure for scale, and it is the same idea as the hypertree in SLH-DSA — except that XMSS^MT remains stateful: the indices of every layer must be counted.

In terms of parameters, XMSS’s standard sets are built around SHA-256 and SHAKE, with tree heights appearing in tiers such as 10, 16 and 20 — corresponding to signature budgets from roughly a thousand up to the millions (multiplied again by the number of layers in the multi-tree variant). The real constraint when choosing is not “as secure as possible” but the signature budget and key-generation time: each additional tier of height doubles the leaves and with them the cost of initial key generation, while signature size grows only by one authentication-path segment. A deployer must first answer “how many times will this key sign in its life” and only then pick a height — a completely different mindset from choosing an RSA key length, and the most distinctive mark of stateful schemes in engineering culture: the count is a budget, to be planned, audited and given headroom like any other budget.

Approval status and boundaries

NIST’s SP 800-208, published in 2020, deals specifically with stateful hash-based signatures and approves XMSS and LMS for use in federal systems and similar settings when its requirements are met — making them among the earliest officially approved post-quantum signature schemes in the United States, predating FIPS 204 and 205. But the approval comes with an explicit condition: implementations must guarantee that one-time keys are never reused, including across backup restores, multiple devices and crash restarts. In effect, the document promotes “state management” from an implementation detail to a compliance requirement.

On the implementation side, XMSS’s reference implementations and open-source libraries arrived early and the academic analysis of it is the deepest; what adopters must watch instead is how differently implementations handle the “state file”: some keep index state in the same file as the key, some manage it separately, some expose state-export interfaces. When choosing an implementation, the answer to “how is state stored, and how is rollback prevented” matters far more than benchmark scores, because most real incidents happen not in the cryptography but in this layer. Treating the state interface as the first item of review is this standard’s subtext for engineering practice.

In practice, XMSS and LMS are two answers to the same question: both are WOTS-style components on trees, differing in details — XMSS has finer address-based domain separation and reductions, with a parameter system centered on SHA-256 and SHAKE; LMS is structurally plainer, with a different approach to layering (covered in its own article on this site). Real deployments usually choose between them based on ecosystem and compliance checklists rather than security margins — both rest their security arguments on the hash function alone.

Closing

XMSS matters because it landed first and completely: it assembled the components accumulated since Lamport — one-time signatures, hash chains, Merkle trees — into a system with parameters, encodings and an approval path, and used multi-tree layering to push scale into the practical range. At the same time it put the fundamental cost of stateful schemes on the table: index state must be protected like the key itself. Understanding XMSS explains why SP 800-208 needed to legislate “state” at all, and why the stateless route later proved willing to pay tens of kilobytes per signature to be free of it.

Tags: XMSSRFC 8391stateful signaturesWOTS+