XMSS Explained: The Hash-Based Signature That Lasts

XMSS explained in plain terms means understanding the signature scheme that signs messages with nothing but hash functions, a design that builds a Merkle tree of one-time keys so that a single key pair can sign thousands of messages and still resist a quantum computer. The central question is how a scheme with no number theory at all can be trusted, and the answer is that hash functions are the oldest and best-studied tools in cryptography, and XMSS uses them, and nothing else, to sign.

XMSS is a stateful hash-based signature scheme standardised in RFC 8391 in 2018. It combines Winternitz one-time signatures with a Merkle tree, offers post-quantum security, and it is recommended by NIST in Special Publication 800-208 for stateful hash-based signatures, which means it is one of the few post-quantum schemes with a formal stamp of approval.

This article explains what XMSS is, how it works, and where it stands in the post-quantum world.

Key takeaways

  • XMSS is a stateful hash-based signature scheme from RFC 8391.
  • It is built on Winternitz one-time signatures and Merkle trees.
  • It is recommended by NIST in Special Publication 800-208.
  • Each key pair can sign only a fixed number of messages.
  • It is used for firmware and code signing where keys rarely change.

What XMSS is

XMSS is a scheme that lets one party sign many messages with a single key pair, passing each message through a one-time signature whose public key sits as a leaf in a Merkle tree. One side holds the tree and signs, the other side checks the signature against the tree root, and the root that emerges is published once and trusted for the whole lifetime of the key, which means the tree is the signature scheme.

Its signature feature is the state. Most signature schemes are stateless, but XMSS must remember which one-time keys it has already used, because reusing a one-time key breaks the scheme completely, which means the signer has to keep careful state, and that statefulness is what makes XMSS both powerful and demanding.

The design was a reaction to the quantum threat. When researchers realised that quantum computers would break RSA and elliptic-curve signatures, they looked for schemes whose security rested on nothing but hash functions, and XMSS offered exactly that, because a hash function is the one tool nobody expects a quantum computer to break.

It became one of the best-known hash-based schemes in the world, and it was standardised in RFC 8391 after years of analysis. Reaching standard status was itself a mark of quality, because a standard must survive public cryptanalysis, and XMSS has stood in that role since 2018 with NIST’s recommendation following in 2020.

Its most famous property is the name. XMSS stands for eXtended Merkle Signature Scheme, a name that says exactly what the design is built from, and it has stuck through years of study, which is a reminder that cryptographers still enjoy a name that explains itself.

Our guide to SHA-3 explains the modern standard hash that schemes like XMSS can build on, and our guide to post-quantum cryptography explains the field XMSS belongs to.

How XMSS works

Everything starts with key generation, which produces a public key and a private key from a random seed. The private key is the seed that generates all the one-time keys in the tree, and the public key is the Merkle root computed from all of them, which means the public key is a single hash that commits to every signature the key pair will ever produce.

Signing begins with the next unused one-time key. The signer picks the leaf at the current index, signs the message with the Winternitz one-time signature for that leaf, and attaches the authentication path, the list of sibling hashes from the leaf up to the root, which means the verifier can recompute the root from the leaf and check it against the public key.

The Merkle tree is what makes the scheme work as a whole. Each leaf holds one one-time public key, each internal node holds the hash of its two children, and the root holds the hash of the whole tree, so a signature proves that its leaf belongs to the tree, and because the tree is fixed at key generation, the proof is unforgeable without the seed.

The state spreads the effect further. After each signature the signer advances the index and records it durably, so that no one-time key is ever used twice, and because the state must survive crashes and backups, a signer that loses track of its index must retire the key, which is the price of the scheme’s security.

The Winternitz signatures hide the message itself. Each one-time signature is a set of hash chains whose lengths encode the message, which means the bits of the message are spread across many chains, and because each chain is used once and then discarded, an attacker who sees one signature learns nothing that helps forge another.

The multi-tree variant extends the design for larger deployments. XMSS-MT stacks several Merkle trees in layers, so that the top tree signs the roots of the trees below it, which means a single key pair can sign millions of messages, and that scaling is what makes XMSS practical for busy signing services.

A dark office desk with a laptop showing a glowing green cipher diagram, a brass key and a notebook beside it
A dark office desk with a laptop showing a glowing green cipher diagram, a brass key and a notebook beside it, shows how XMSS works: leaves take turns through Merkle trees, signature after signature, until the tree is spent.

Comparing XMSS with other hash-based signatures

XMSS is one of several hash-based signature schemes, and each was built with a different emphasis. LMS is the other stateful scheme standardised alongside it, SPHINCS+ is the stateless scheme that needs no state at all, and XMSS is the one with the multi-tree option for large deployments, while each approach trades something for something else.

The table below sets out the main contrasts between the leading approaches.

Aspect XMSS LMS SPHINCS+
Standard RFC 8391 RFC 8554 NIST FIPS 205
Stateful Yes Yes No
Tree Merkle Merkle Hypertree
Signatures per key Limited Limited Near-unlimited
Best for Firmware signing Firmware signing General use

The practical result is that XMSS is the right choice for firmware signing, LMS suits the same deployments, and SPHINCS+ fits general use instead.

Where XMSS is used

Research uses it as a case study in hash-based design. Cryptographers still cite XMSS when they discuss how much can be built from hash functions alone, because it is the clearest example of a stateful signature in a practical scheme, and that lesson shapes how new schemes are judged today.

Teaching uses it to show how hash-based signatures work. XMSS is clean enough to explain in a lecture and well documented enough to implement in an afternoon, which makes it a favourite example in cryptography courses that cover post-quantum design and the ideas that shaped it.

Firmware signing uses it to protect devices. Manufacturers sign firmware updates with XMSS because a device that verifies updates for years needs a signature that a quantum computer cannot forge, which means the scheme guards the software inside everything from routers to cars, and that long lifetime is exactly what XMSS was designed for.

Code signing uses it where keys rarely change. Software vendors that sign releases from a single guarded key pair use XMSS because its statefulness is manageable when signing happens in one place, which means the scheme protects the software supply chain without the complexity of a stateless design.

Standards history uses it to mark the hash-based era. XMSS was part of the first wave of post-quantum standards, and it represents the stateful path that wave explored, which means historians of the field return to it whenever they ask what post-quantum cryptography looked like before lattices won.

Strengths and limits

The greatest strength of XMSS is its foundation. A scheme that rests only on hash functions gives the world a signature with the oldest security assumptions in the field, and that grounding is real, measured in the decades of study behind hash functions and confirmed by the standardisation the scheme went through.

It is also a strength that the design is standardised and recommended. A scheme with an RFC and a NIST recommendation is easy to adopt, easy to audit, and easy to defend in procurement, and that official standing is worth more than cleverness in a field where trust is the scarcest resource.

The limits are real, though, and the biggest is state. XMSS must never reuse a one-time key, which means the signer needs durable, crash-safe state, and a system that signs from many machines at once will usually choose a stateless scheme instead, and XMSS stays where signing happens in one guarded place.

XMSS checklist

  • Use XMSS for firmware and code signing, not for busy services.
  • Remember it is stateful: never reuse a one-time key.
  • Study its Merkle tree to understand hash-based design.
  • Compare it with LMS to see the stateful trade-off.
  • Note its fixed signature budget when planning deployments.
  • Test against published test vectors before trusting any implementation.
  • Keep state durable and protect it as carefully as the key.
  • Use a proper hash function, never a weakened one.
  • Choose SPHINCS+ when the signing must be stateless.

Frequently asked questions

What is XMSS in simple terms?

It is a signature scheme that uses only hash functions, combining one-time signatures with a Merkle tree so one key pair can sign many messages.

Why is it called XMSS?

After the eXtended Merkle Signature Scheme, the design that extends the original Merkle signature scheme with Winternitz signatures and multi-tree support.

How is XMSS different from SPHINCS+?

Both are hash-based signatures, but XMSS is stateful and must track which keys it has used, while SPHINCS+ is stateless and can sign from anywhere.

Is XMSS still secure?

Yes, no practical attack against it has been published, and its security rests on hash functions alone, which is the most conservative assumption in the field.

Where is XMSS used?

In firmware signing and code signing, wherever a single guarded key pair signs updates that must stay trustworthy for years.

When should I use XMSS?

When you sign firmware, when you need a standardised post-quantum signature, or when you want a scheme that rests on nothing but hash functions.

The bottom line

XMSS explained in one line is this: the signature built from hashes alone, a Merkle-tree design that proved one-time keys can sign a lifetime of messages.

It is proof that hashes can sign, and the reason it still matters is that every hash-based scheme designed since has been judged partly by the lesson XMSS taught.

This article is general information about how XMSS works, not advice about choosing encryption for a particular device or system.

Latest articles

Scroll to Top