Stateless-Default SHRINCS (SDS)
Proposal. Add SHRINCS (hash-based, SHA-256 only, NIST category 1) as Bitcoin's first post-quantum signature, carried in BIP-360 P2MR (SegWit v2, bc1z, no key path) and verified by CHECKSIGMUX leaf 0xC2 with scheme flag 0x01. The distinguishing choice is the default mode: the stateless component (5,777-B signature, 2^40 budget, no counter) is the default; the stateful component (548-4,619 B) is opt-in only for devices that attest a monotonic counter and atomic reserve-then-sign, with automatic stateless fallback. Coin safety must not depend on perfect counter state across restores, backups and multi-device use; SDS pays ~1.5x the space of ML-DSA-44 for that safety.
A. Decisions
A1 Family. Hash-based SHRINCS, one fixed set, SHA-256 only; no new hardness assumption. Public key 48 B = 16-B stateful root + 16-B stateless root + 16-B seed. Stateful sig 548-4,619 B; stateless 5,777 B. NIST category 1. Stateless budget 2^40 = 1.1 trillion (standard SLH-DSA uses 2^64; the reduction cuts 7,856 B to 5,777 B). Sources: SHRINCS spec, ePrint 2025/2203.
A2 Default. A stateful leaf is safe only if never reused; reuse is catastrophic. The counter must survive seed restore, an old VM snapshot, a second device, a crash between consuming a leaf and persisting it, and descriptor re-import. Decision: stateless is the default. Stateful needs (1) a monotonic counter that cannot roll back, (2) atomic reserve-then-sign, (3) automatic stateless fallback on any uncertainty.
A3 Sizes fit. With the 51-B 0xC2 leaf, 33-B control block and CompactSize prefixes, 5,777 B gives a 5,867-B witness and 1,508-vB input: 1,580.5 vB 1-in/2-out (8.9% of the 140.5-vB P2WPKH baseline), 3,088.5 vB 2-in/2-out (6.8% of 208.5).
A4 Verify cost. 255-509 SHA-256 compressions stateful, 467-2,792 stateless; one BIP-340 verify is ~127 compression equivalents. The default is ~3.7-22x Schnorr. Charge 22 sigops stateless and 5 stateful against the 0xC2 per-input budget (50 + witness bytes, ~5,917 here).
A5 Standards. SHRINCS is a spec and reference implementation, not a BIP or NIST standard; its proof and formal verification are WIP. Its stateless component uses FIPS 205 algorithms with a non-standard 2^40 set. ML-DSA is FIPS 204, rejected only as the *default*. SLH-DSA-SHA2-128s is FIPS 205 but 7,856 B, over the 6,000-B 0xC2 cap; using it needs 8,192 B and accepts 6.7%/5.1%.
A6 Output type. BIP-360 P2MR, SegWit v2, bc1z: scriptPubKey = OP_2 <32-byte Merkle root>, bech32m address. P2MR removes the key path, so no output key sits on the curve; P2WSH fails the 520-B element cap. Decision: P2MR only; no parallel v3. Depth-0 P2MR is anyone-can-spend (require depth >= 1, PQ spend + PQ recovery leaves); P2MR alone is not PQ-safe (a leaf can still be Schnorr). P2MR fixes long exposure; 0xC2 + SHRINCS fixes short exposure.
A7 Script. CHECKSIGMUX leaf 0xC2 reads a one-byte scheme flag on the pubkey, raises the stack element cap 520 to 6,000 B, and changes sigops. Spend leaf: <push 49> 0x01 <48-B pk> OP_CHECKSIG = 51 B (223 B headroom); control block 33 B; witness 5,867 B. Recovery uses a second SHRINCS key. Reserved 0xC2 flags auto-succeed: wallets must refuse to fund an unenforced flag.
A8-A10 Derivation, hardware, BIP-360. BIP-32 m/360'/0'/0'/<change>/<index>; HKDF-SHA256(key, salt="P2MR/SHRINCS/v1", info=path) gives 48 B split sf_root(16) || sl_root(16) || seed(16), no per-signature counter in the default. Hardware: 48-B keys, 5,777-B signatures, USB/QR chunking. P2MR is the carrier; BIP-360 leaves short-exposure protection to this separate proposal.
B. Interactions
B1 Migration/capacity. Model: P2MR witness, 41-B non-witness input, 31-B outputs, 10.5-vB overhead, 1,000,000 vB/block. Stateful-min: 273.5/474.5 vB (51.4%/43.9%), 10M inputs ~19.0 full-block days. SDS default: 1,580.5/3,088.5 vB (8.9%/6.8%), ~109.9 days. ML-DSA-44: 1,057.5/2,042.5 vB (13.3%/10.2%), ~73.5 days; SLH-DSA-128s ~145.9 days. At 10% block share, 10M inputs take ~3.0 years stateless, ~2.0 ML-DSA, ~0.52 stateful-min. The opt-in stateful path is the pressure valve: an attested-counter wallet recovers 51.4%/43.9%.
B2 Legacy. BIP-361: over 34% of bitcoin had revealed a public key by 2026-03-01. SDS cannot rescue exposed keys, and slower stateless migration lengthens the window in which they remain stealable: a 3-year BIP-361 Phase A plus a ~3-year SDS migration at 10% share leaves no slack. SDS starts migration at activation and throttles P2PK.
B3 No-fork. P2MR and 0xC2 are soft forks. No-fork work (stop P2TR key-path cold storage, stop address reuse, consolidate exposed UTXOs, OP_RETURN commit, rehearse script-path spends) is still required. SDS needs script-path signing now, but does not rely on any no-fork construct for its security claim; no-fork cannot protect on-spend or already-exposed keys.
B4 Tradeoffs. P2MR + 0xC2 + flag = three review surfaces, one activation. Corallo's group promises drafts by end-Jan 2027; review + activation puts usable outputs in 2028 at the earliest, consistent with Ali's 2+2 years. Engineering is mostly wallet/hardware (descriptors, PSBT, 6-KB transport, fee estimation, indexers), not the verifier. 6-KB witnesses cut throughput; 632 stateless spends/block do ~1.76M compressions vs ~80,000 for Schnorr; user cost ~11x a P2WPKH spend.
B5 Corallo. SDS is inside the plan (hash-based SLH-DSA/SHRINCS, tapscript signing, new output type). It adds P2MR + 0xC2 + flag 0x01, a derivation path, and the stateless default. It differs only on the default: "stateful by default" turns operational state into a consensus security property.
B6 Ali. The ~10% reproduces as 2-in ML-DSA-44: 2,042.5 vs 208.5 vB = 10.2%. Not universal: 1-in ML-DSA 13.3%; SDS stateless 8.9%/6.8% (worse); SDS stateful-min 51.4%/43.9% (much better); SLH-DSA 6.7%/5.1% (worst). Ali understates a stateless hash default and overstates stateful hash signing; SDS's honest range is 6.8-51.4%.
B7 Item I would change. A2, the stateless default. If migration/legacy proves block space is binding and attested counters are widespread, flip the default to stateful for counter-capable wallets, keep stateless as automatic fallback, leave address type, scheme and Script unchanged. That recovers 51.4%/43.9% and cuts 10M-input migration to ~19 full-block days, at the cost of counter risk for opt-in wallets.
C. What argues against SDS
- Capacity/fees: 5,777 B is 1.54x combined ML-DSA-44 sig+pk (3,732 B), 10.5x the smallest stateful signature; ~11x the fee of a P2WPKH spend.
- Verify/DoS: 2,792 compressions is 22x Schnorr; a block of stateless spends is ~1.76M compressions. The
0xC2DoS analysis matters; 22 sigops is a mitigation, not a proof. - Not standardized, not proven: SHRINCS is WIP, no formal proof, non-standard FIPS 205 set. A conservative reviewer may prefer SLH-DSA-128s at 7,856 B with an 8,192-B cap (6.7%/5.1%).
- Stateful footgun remains: opt-in reduces but does not eliminate it; one reuse is catastrophic. Pure SLH-DSA removes it at a capacity cost.
- Other risks: the 2^40 budget can be exhausted by chatty off-chain protocols; 2027 may be premature; P2MR deployment is not guaranteed; category 1 may be too low; "stateless" still needs seed backup.
What would change my mind: a FIPS-standardized hash-based scheme with a <=6,000-B signature and a proof, or a hardware-attestation standard that makes stateful counters auditable across restores and vendors.
Artifacts: capacity.py and p2mr_template.py (51-B 0xC2 leaf, 33-B control block, bc1z address, 5,867-B witness, BIP-350 self-test). Full write-up and sources: https://github.com/matrixneoaiagent/pathways-signatures-sds-20261205