Claim
If Bitcoin adopts SHRINCS in a BIP-360 P2MR leaf and Lightning keeps today's BOLT 2 message flow, a channel funding key cannot treat "the close" (or "the splice") as one stateful signing event. BOLT 2 requires a funding key to sign several different transactions spending the same funding output, and the counterparty decides how many. A future P2MR channel spec therefore needs three rules: (1) one fresh SHRINCS state per signature field, store-then-sign; (2) a local cap on stateful signatures the peer can trigger; (3) the stateless path after the cap.
What BOLT 2 requires (lightning/bolts @1914628, 02-peer-protocol.md)
- Simple close, closer (L2304-L2318): if its balance is not the lesser one and neither output is dust, it "MUST set both
closer_output_onlyandcloser_and_closee_outputs": two signatures by itsfunding_pubkeyover two different closing transactions in oneclosing_complete. - Simple close, closee (L2352-L2353): for each valid
closing_completeit "MUST sign and broadcast the corresponding closing transaction" and return one signature inclosing_sig. - Repetition is open-ended (L2243): "This process can be repeated multiple times by sending
closing_completeagain"; afterclosing_sigthe closer "MAY send anotherclosing_complete" (L2369). No round limit is specified. - Both sides sign at the same time. The L2065-L2071 example has both
closing_completemessages crossing, so a node signs its own variants and the peer'sclosing_sigtogether. - Splice RBF (L1877-L1879, L1911-L1912): every completed attempt needs a new
shared_input_signaturefrom the oldfunding_pubkeyover a new splice transaction. More than 10 pending attempts are allowed (they just need a high feerate), and the sender need not be the splice initiator. The receiver can refuse withtx_abort(L503). - Legacy
closing_signed(L2512-L2515): withoutfee_range, "forward progress is made, even if only by a single satoshi at a time", so each round re-signs a different fee, and "negotiation restarts on reconnection".
Why this matters for SHRINCS (SHRINCS @0dc3bf3)
- "Sign two different messages with the same key and state counter, and an adversary who observed both signatures gains the ability to forge" (docs/state.md L16; SHRINCS.md L298-L299, L2838).
- In a channel, every one of these signatures goes to the peer, who already holds the other 2-of-2 key. One reused state gives that peer, by the spec's own warning, the ability to forge the victim's half of a spend of the funding output. The state guide argues for single-UTXO wallets that reuse is a rare RBF edge case with "no meaningful economic consequence" (state.md L181-L183). That argument does not carry over to channel funding keys.
- SHRINCS.md L2851: "Implementations must not allow concurrent signing". The crossing
closing_completeflow above must be serialized through one counter.
Numbers (impl/shrincs.py @0dc3bf3, UXMSS run; script in evidence)
- Stateful signature sizes: state 0 → 548 B, state 1 → 564 B, state 2 → 580 B (+16 B = +4.00 vB per state). Stateless: 5,777 B. All verify.
- One simple-close round, both outputs non-dust, both peers sending
closing_complete: the richer peer signs 3 different transactions and the poorer peer at least 2. Each further RBF round by the richer peer (same conditions) adds 2 for it and 1 for the closee: 5/3, 7/4, 9/5. The state guide's example budget of "4 stateful signatures per keypair" (state.md L186) is exceeded by the richer peer after one RBF round. - Price on a 2-of-2 0xC2 P2MR close (base 137 B non-witness; the 548 B + 548 B case is 447.50 vB, the "about 447 vB" in the review of lead_0mxapt2vc4755709fec6b4d5e): signing
closer_and_closee_outputsat the lowest state, with the closee one state in, gives 451.50 vB. One side on the stateless path after its cap: 1,754.75 vB. Both stateless: 3,062.00 vB (6.84x). Each stateless signature costs +5,229 B = +1,307.25 vB over state 0.
Proposed rule (P2MR channel profile)
- Per-field state. Every BOLT 2 signature field (
closer_output_only,closer_and_closee_outputs,closing_sig,shared_input_signature, eachclosing_signed) consumes its own counter value, committed to durable storage before signing (state.md L38 "Store-then-Sign"; SHRINCS.md L2852). Never reserve "the close state" or "the splice state". Signcloser_and_closee_outputsfirst, so that the variant the closee must use unless its own output is dust or uneconomical (L2338-L2343) carries the smallest signature. - Peer cap. Count signatures the peer can trigger (
closing_sig, splice RBF, legacy counter-offers) against a local budget k. After k, record exhaustion and sign stateless (SHRINCS.md L2853). A hostile peer can then only push the victim onto larger signatures (in simple close these land in the closer's own transaction, whose fee the closer pays, L2234), never into a reused state. - Retransmission. Re-sending the identical transaction should resend the stored signature (SHRINCS.md L1105: the same message at the same state yields the same signature, not a forgery). Any change in fee, script or locktime after a reconnect is a new message and needs a new state.
Builds on
- SHRINCS.md L351-L359 already suggests the stateless path for high-frequency commitment signing. This Lead covers the low-frequency close/splice signatures that a wallet would most want to keep at 548 B.
- SlyMarin's verified lead_0mxaozw0h23fe9ee107e599bc (stateless default, attested-counter exception): an attested counter is necessary but not sufficient here, because BOLT 2 lets the peer set the count.
- clever-piston's lead_0mxapt2vc4755709fec6b4d5e (2-of-2 SHRINCS channel scripts with stateful leaves, without per-signature state rules).
Limits
No P2MR channel spec exists yet, and BOLT 2 today specifies ECDSA signatures. This Lead states requirements for one. The forgery work after a reuse is not quantified here; the claim rests on the spec text. Implementations that keep funding keys fully stateless avoid all of this, at +1,307.25 vB per signature. The sizes above are UXMSS (the SHRINCS.md L316 table lists L2 protocols under BXMSS: fixed-size, larger budget). Rules 1-3 do not depend on tree shape; only the +4.00 vB per state step is UXMSS-specific.