SHRINCS: 324-byte stateful post-quantum signatures with static backups

Dec 11 - Nov 25, 2026

  • SHRINCS represents a significant advancement in the design of hybrid hash-based digital signature schemes, merging the high efficiency of stateful signatures with the resilience of stateless methods.

Central to its architecture is the utilization of an unbalanced XMSS tree for stateful operations and a variant of SPHINCS+ for stateless fallback. The public key is derived by hashing both the stateful and stateless components, enabling seamless operation regardless of the integrity of the signing state. This dual-mode strategy is particularly apt for applications where only a limited number of signatures are expected per key, such as Bitcoin wallets. In typical usage, SHRINCS optimizes performance through efficient stateful signatures; if state integrity is ever lost or uncertain, it securely defaults to stateless signing. The use of WOTS+C within the XMSS structure enhances both efficiency and security for one-time signatures, while the unbalanced structure minimizes authentication path lengths for initial uses, significantly reducing signature sizes when few signatures are anticipated.

A recurring theme in modern cryptographic system design is ensuring robust post-quantum security. The adequacy of 128-bit security levels has been scrutinized, especially given quantum threats enabled by Grover's algorithm, which effectively halves the security margin against brute-force attacks. This evaluation considers not just theoretical vulnerabilities but also the real-world computational overheads imposed by quantum circuits, such as the high gate depth required for SHA-256. Practical assessments indicate that even massive, globally distributed quantum resources would face formidable barriers in undermining well-chosen hash-based parameters. These analyses extend to signature size considerations: for instance, at NIST level 3 (192-bit classical security), SHRINCS achieves a minimum signature size of 660 bytes under chosen Winternitz parameters, balancing the trade-offs between compactness and resilience.

Attention is paid to the underlying mechanics of one-time signature schemes, notably WOTS and its variants, where the checksum plays a critical role in defending against message substitution attacks. The design ensures that any attempt to forge a signature for an altered message—where each digit in the new message exceeds or matches the original—will fail due to the resulting checksum mismatch. This mechanism compels an attacker to expose preimages in the checksum chain, effectively thwarting forgery attempts and maintaining the scheme’s integrity. Innovations in checksum computation, such as summing modulo-negated values, further streamline verification without compromising security, offering more compact representations than traditional hash-based checksums.

Concerns about specialized hardware, like ASICs, targeting WOTS and similar hash-based schemes are addressed through discussions on increasing the envelope and signature size and pairing digest bytes with their negations. While these measures bolster security, they must be weighed against practical considerations such as resource usage, with some proposals ultimately retracted in favor of more viable alternatives.

The integration of SHRINCS into blockchain infrastructures introduces novel behavioral incentives and technical challenges. By linking increased transaction costs to repeated address reuse, SHRINCS encourages best practices in privacy and key management. However, vulnerabilities remain, especially regarding fault injection attacks that could reset hardware wallet states or duplicate seeds across devices. Proposals have emerged to modularize the adoption of signature schemes within taproot scripts—allowing wallets to flexibly choose between SPHINCS, WOTS, or their combinations—thus enhancing standardization prospects while mitigating the risks associated with monolithic adoption.

State management emerges as a pivotal challenge, particularly in scenarios involving device loss, seed restoration, or inadvertent state sharing across multiple devices. Techniques for detecting possible state corruption—such as monitoring for unexpected outgoing transactions—offer partial safeguards, yet rely on behavioral heuristics that may not always hold. The risk of state mismanagement is heightened by user practices like duplicating wallet data across systems, as seen in past losses from lightning network channel mismanagement. For XMSS-based keys, heuristics can help infer safe usage windows, but these approaches remain inherently probabilistic.

Enhancements to XMSS merkle branch structures have been proposed to further obscure signature iteration counts and internal tree layouts, inspired by taproot’s directionless trees. Concealing the depth and orientation of authentication paths amplifies both succinctness and privacy; it prevents outside observers from deducing how many signatures have been issued or remain available for a particular key, thereby complicating potential attack vectors such as replacement cycling. However, this obfuscation limits certain advanced features, such as implementing uniquely tweaked hash functions per node—a capability native to SPHINCS—raising questions about the ultimate tightness of the security proofs.

Secure state storage is another area of innovation, particularly for non-dedicated devices. Trusted Platform Modules (TPMs) offer a means to safeguard state information by permitting secure read and write operations contingent upon knowledge of a secret, with the additional benefit that TPM-bound secrets are not included in conventional disk backups. Example implementations using tpm2 tools illustrate the feasibility of such setups, though care must be taken to manage permissions and prevent race conditions. Strategies such as

Link to Raw Post
Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiDecoding BitcoinWarnet
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project.

Give Feedback