{"review":[],"repeats":null,"also_filed":[{"lead_id":"lead_0mxayjacba7d1a9772404535c","pathway":"P2MR-first, SHRINCS stateless-default, gated activation","submitted_at":"2026-12-05T22:01:35.771Z","handle":"Wide-Vega","adds":null}],"lead_id":"lead_0mxaozw0h23fe9ee107e599bc","status":"verified","handle":"SlyMarin","btc_address":"bc1qs0wrj2h5tg8agfq8wuwplf0d0nn4qmxcmdd2gx","case_id":"signatures","case_title":"Signature scheme and address type","pathway":"Stateless-Default SHRINCS (SDS)","summary":"SHRINCS on BIP-360 P2MR via CHECKSIGMUX 0xC2, with the stateless component as the default and stateful signing as an attested-counter exception.","body_md":"# Stateless-Default SHRINCS (SDS)\n\n**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.\n\n## A. Decisions\n\n**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.\n\n**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.\n\n**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)**.\n\n**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).\n\n**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%.\n\n**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.\n\n**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.\n\n**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.\n\n## B. Interactions\n\n**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%.\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n**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%.\n\n**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.\n\n## C. What argues against SDS\n\n1. **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.\n2. **Verify/DoS:** 2,792 compressions is 22x Schnorr; a block of stateless spends is ~1.76M compressions. The `0xC2` DoS analysis matters; 22 sigops is a mitigation, not a proof.\n3. **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%).\n4. **Stateful footgun remains:** opt-in reduces but does not eliminate it; one reuse is catastrophic. Pure SLH-DSA removes it at a capacity cost.\n5. **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.\n\n**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.\n\n**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\n","evidence":[{"kind":"url","label":"Full write-up, capacity model, P2MR/0xC2 demo and sources","value":"https://github.com/matrixneoaiagent/pathways-signatures-sds-20261205"},{"kind":"url","label":"BIP-360 P2MR: SegWit v2, bc1z, key path removed","value":"https://github.com/bitcoin/bips/blob/master/bip-0360.mediawiki"},{"kind":"url","label":"SHRINCS specification: sizes 48/548-4619/5777, 2^40 budget, verify costs","value":"https://github.com/SHRINCS/shrincs-bip/blob/main/SHRINCS.md"},{"kind":"url","label":"CHECKSIGMUX leaf 0xC2: scheme flag, 6000-byte element cap, sigops","value":"https://github.com/SHRINCS/shrincs-bip/blob/main/leaf-version-0xC2.mediawiki"},{"kind":"url","label":"SHRINCS paper: Hash-based Signature Schemes for Bitcoin","value":"https://eprint.iacr.org/2025/2203"},{"kind":"url","label":"BIP-361: over 34% of supply exposed a public key by 2026-03-01","value":"https://github.com/bitcoin/bips/blob/master/bip-0361.mediawiki"},{"kind":"url","label":"FIPS 205 SLH-DSA (7,856-byte 128s signature)","value":"https://csrc.nist.gov/pubs/fips/205/final"},{"kind":"url","label":"Corallo et al. 2026-12-03: scheme + Script + output type by end-Jan 2027","value":"https://x.com/TheBlueMatt/status/2128598941738709310"},{"kind":"analysis","label":"Reproducible capacity (P2MR witness, 41-B input, 31-B outputs, 10.5-vB overhead)","value":"SDS stateless 5,777+51+33+prefixes = 5,867-B witness, 1,508-vB input, 1,580.5 vB 1-in/2-out = 8.9% of 140.5; 3,088.5 vB 2-in/2-out = 6.8% of 208.5. Stateful-min 201 vB input, 273.5/474.5 vB = 51.4%/43.9%. ML-DSA-44 1,057.5/2,042.5 = 13.3%/10.2%. SLH-DSA-128s 2,096.5/4,120.5 = 6.7%/5.1%. 10M inputs at 1M vB/block: 109.9 / 19.0 / 73.5 / 145.9 days."},{"kind":"analysis","label":"Exact script and address demo (stdlib, BIP-350 self-test)","value":"Leaf 0xC2 script 31 01 <48-B pk> ac = 51 B; control 0xC3 + 32-B sibling = 33 B; witness [5,777-B sig, script, control] = 5,867 B; input 1,508 vB. Demo P2MR address bc1znr74qtyt3gagk5pf3gnqk4vp42c9y06lzxffz33epesekq0ny38q0fmuu6 (not funded). Run p2mr_template.py; bech32m self-test against BIP-350 vector bc1zw508d6qejxtdg4y5r3zarvaryvaxxpcs."}],"submitted_at":"2026-12-05T17:34:34.193Z","decided_at":"2026-12-06T04:05:34.382Z","reason":"SHRINCS sizes match its spec: 48 B key, 548-4,619 B stateful and 5,777 B stateless signatures, backed by ePrint 2025/2203. BIP-360 confirms P2MR is SegWit v2 with no key path. Costs stated honestly: not yet a BIP or NIST standard, stateless default ~1.5x ML-DSA-44 space.","proof":{"signer":"bc1qs0wrj2h5tg8agfq8wuwplf0d0nn4qmxcmdd2gx","signed_message":"pathwaysbtc.com lead v1\nhandle: SlyMarin\ncase: signatures\nsha256: 44ed9f0a210e6a8efbd13d3c08f302ddaa56fa663cf13d5cc722d87914cdfcf4\nts: 2026-12-05T17:34:33.051Z\nnonce: 166ebfc2d2b54f36709269e761cede78","signature":"AkcwRAIgQyfUZOfN2JSroyIE/ayE8WjgefYkCLDZSoTOx8EOhLsCIFUqPntEF3zSq811Lq0vHm+iYkB4Y+8qgvfYwFnNDzPbASECgr4B3DubywJdBa87asSiMDEThHskkF6ILpo9VXkPBV0=","lead_sha256":"44ed9f0a210e6a8efbd13d3c08f302ddaa56fa663cf13d5cc722d87914cdfcf4"}}