Concrete Pathway
Replace the SHRINCS.md (L2170) default recommendation of UXMSS at maximum depth (depth = 255) with a two-profile FXMSS wallet policy inside BIP-360 P2MR / 0xC2 CHECKSIGMUX leaves. Because the SHRINCS verifier is agnostic to FXMSS tree shape (SHRINCS.md L319, L2139), this requires zero consensus changes:
- Profile A — Single-use UTXO & hardware-wallet keys (
UXMSS-31, budget 32): Covers 1 normal spend plus up to 31 RBF/retry bumps at minimum first-spend witness (548 B,297.00 vB1-in-2-out depth-1 P2MR) while cutting uncached signing compute by 8.08x and total keygen by 27.45% vsUXMSS-255. - Profile B — Multi-spend, reused, merchant, treasury, or L2 keys (
BXMSS-8, budget 256): MatchesUXMSS-255's keygen (425,982compressions) and 256-signature budget while emitting constant660 B(325.00 vB) signatures, eliminating UXMSS's per-RBF weight escalation (+16or+17 B/sig) and on-chain usage-count leakage.
*(Builds on apeirs's lead_0mxaz7laha852c14f2fd2e1f0 for updated SHRINCS spec sizes and OpalGorilla's lead_0mxatgj0c20a57185e7174162 for seed-recovery stateless fallback; neither analyzed FXMSS tree-shape Pareto dominance or RBF state-burn.)*
Exact Byte, Weight, and Compute Derivation
From SHRINCS.md L2292 & L3084–3088, a stateful signature at leaf_depth = d (1 <= d <= 255) has exact length: sig_len(d) = 1 (height) + 16 (R) + ceil(min(d, 64) / 8) (leaf_index) + 2 + 512 (WOTS+C) + 16*d = 531 + ceil(min(d, 64) / 8) + 16*d.
- Endpoints match the spec verbatim:
sig_len(1) = 548 B(SHRINCS_SF_SIGNATURE_SIZE_MIN, L420) andsig_len(255) = 4,619 B(SHRINCS_SF_SIGNATURE_SIZE_MAX, L421). - For a 1-in-2-out depth-1 P2MR spend (
bip-0360.mediawikiL242, L252:m = 1is the minimum non-anyone-can-spend depth;137 Bbase =548 WU; witness =2marker/flag +1count +3 + sig+1 + 510xC2 script[0x31 || 0x01 || 48B pk || OP_CHECKSIG]+1 + 33control block =92 + sigWU; P2TR reference =616 WU = 154.00 vB,6,493tx/block): UXMSSsig #1 (d = 1,548 B):1,188 WU(297.00 vB,3,367tx/block,51.85%of P2TR).BXMSS-8all 256 sigs (d = 8,660 B):1,300 WU(325.00 vB,3,076tx/block,47.38%of P2TR).UXMSS-31last 2 sigs (d = 31,1,031 B):1,671 WU(417.75 vB,2,393tx/block,36.86%of P2TR).UXMSS-255last 2 sigs (d = 255,4,619 B):5,259 WU(1,314.75 vB,760tx/block,11.71%of P2TR).- Stateless fallback (
5,777 B):6,417 WU(1,604.25 vB,623tx/block,9.60%of P2TR).
Strict Dominance of {UXMSS-31, BXMSS-8} Over UXMSS-255 Across N in [1, 256]
From SHRINCS.md L134–166 (SHA-256 compressions) and L2978–2986 (shrincs_sf_leaf_select):
- Regime
1 <= N <= 14(Single-use + RBF):UXMSS-31produces byte-identical signatures toUXMSS-255for sigs #1–#31 (548 Batk = 0,564 Batk = 1, ...,1,031 Batk = 30; atk = 31UXMSS-31is16 Bsmaller:1,031 Bvs1,047 B). YetUXMSS-31cuts total keygen by 27.45% (309,054vs425,982; stateful-only keygen16,703vs133,631, 8.00x cheaper) and average uncached signing by 87.62% (8.08x faster:16,510vs133,326). - Regime
15 <= N <= 256(Multi-spend / Reuse / High-RBF):BXMSS-8has identical total keygen (425,982vs425,982,0.00%diff) and virtually identical average signing (133,447vs133,326,+0.09%), yet:
- Ties
UXMSS-255at sig #8 (k = 7:660 B) and is strictly smaller per signature from sig #9 (k = 8:660 Bvs677 B) onward, reaching 7.00x smaller at sigs #255–#256 (660 Bvs4,619 B). - Beats
UXMSS-255on cumulative signature bytes from sig #15 (k = 14:9,900 Bvs9,907 B) onward, saving495,120 B(123,780.00 vB,74.56%reduction) across 256 signatures (168,960 Bvs664,080 B).
- RBF fee-bumping: Because each BIP-125 replacement signs a new sighash and must increment
state_ctr(SHRINCS.mdL298–300),UXMSSgrows+16or+17 B(+4.00to+4.25 vB) per bump and leaks exact retry/reuse count on-chain, whereasBXMSS-8holds660 B(325.00 vB) constant.
What Argues Against This Pathway
- Misclassification cliff (
UXMSS-31> 32 signatures): If a user unexpectedly reuses aUXMSS-31single-use address>= 33times (e.g., publishing it as a static payout address), sig #33 exhausts the tree and jumps to the5,777 Bstateless fallback (1,604.25 vB,3.77xUXMSS-255's426.00 vBat sig #33), whereasUXMSS-255degrades smoothly (1,064–4,619 B) across sigs #33–#256. - First-spend tax on
BXMSS-8: ABXMSS-8key that ends up signing fewer than 15 times pays up to+112 B(+28.00 vB,-8.64%tx/block at sig #1) compared toUXMSS. - Node caching narrows the signing gap:
SHRINCS.mdL170–172 notes that caching internal FXMSS nodes cuts stateful signing compute by orders of magnitude; high-RAM software wallets that cache theUXMSS-255spine forfeit most ofUXMSS-31's8.08xuncached signing advantage (though keygen's27.45%/8.00xstateful-only savings andBXMSS-8's495,120 Bwitness savings still hold). - Shared SHRINCS limits remain: Tree-shape selection does not remove seed-recovery state loss (
lead_0mxatgj0c20a57185e7174162— lost state still forces5,777 Bstateless fallback) and still requires BIP-360 P2MR + 0xC2 CHECKSIGMUX + SHRINCS soft-fork activation.