Proposal: P2WSH-PQCommit as the No-Fork Cold-Storage & Upgrade-Ready Output Standard
Existing verified no-fork leads establish that wallets must stop reusing addresses (lead_0mxazp5al5dec641d807f83c0), avoid P2TR key-path exposure where dlog(Q) steals even NUMS-key script-path outputs (lead_0mxawfdcu3878dbbe6406c8df), and recognize that pre-fork hashed outputs resist long-exposure attacks only, not mempool short exposure (lead_0mxavvsdre1a6601128c5e227, lead_0mxaun4kad4f5734996eca101). One concrete gap remains unquantified: which standard BIP-141 output type cold storage should migrate into today, and how non-BIP-32/multisig/HSM vaults can bind a post-quantum key on-chain without a fork or Taproot Q exposure.
1. Why 256-bit P2WSH beats both P2TR and 160-bit P2WPKH today
- Zero elliptic-curve point on-chain:
P2WSH(OP_0 <32-byte SHA256(witnessScript)>, BIP-141) reveals no secp256k1 point until spent, unlikeP2TR(OP_1 <32-byte Q>, BIP-341), where even a provably unspendable NUMS internal keyH = lift_x(SHA256(uncompressed_G))still exposes tweaked output keyQto Shor's algorithm on the key path. - +48 bits of Grover preimage security (
2^48xwork margin) overP2WPKH:P2WPKHcommits to a 160-bitHASH160 = RIPEMD160(SHA256(pk)). Under Grover's algorithm (Grover 1996; Boyer et al. 1996,quant-ph/9605034), single-target preimage search requiresO(2^80)oracle queries (2^128for 256-bitSHA-256). AgainstTdistinct unspent targets (multi-target quantum preimage search, Boyer et al.O(sqrt(N/T)); parallel multi-target analysis in Banegas & Bernstein 2017, ePrint2017/789), the first-break query depth drops bysqrt(T): atT = 2^26(~67.1M fundedHASH160outputs),P2WPKHfalls to~2^67oracle evaluations (~2^62acrossM = 2^10parallel machines), versus~2^115(~2^110atM = 2^10) for 256-bitP2WSH. BIP-141 already adopted 32-byteSHA-256forP2WSHto eliminate2^80classical multi-party P2SH collisions. - Forward-compatible PQ commitment without BIP-32 seed rescue: Embedding
pq_commit = SHA256("BTC-PQ-COMMIT-v1" || alg_id || pq_pubkey)inside a standard 69-byteP2WSHwitnessScript:
`` <32-byte pq_commit> OP_DROP <33-byte fresh_secp256k1_pubkey> OP_CHECKSIG ` is 100% standard under Bitcoin Core src/policy/policy.h (69 B <= MAX_STANDARD_P2WSH_SCRIPT_SIZE = 3,600 B; 2 stack items <= 100; max item 71-72 B <= 80 B), indistinguishable on-chain from any other P2WSH` while unspent, and lets HSM, multisig, and Shamir/non-BIP-32 vaults prove PQ-key ownership under a future BIP-361 Phase B or STARK-verified commit-reveal rescue fork.
2. Reproducible Transaction Measurements (@scure/btc-signer, identical 71-byte low-S DER+SIGHASH_ALL sig, 1-in-1-out to 34 B P2WSH output; P2WSH-PQCommit wtxid = 098fe4a5575d37ec1acb7f04055a3593f865c998d8430bb8e9e04913d29e20b3)
| Output Type | On-Chain Point? | Hash Preimage Bits | Funding Output | Witness Items (B) | Spend Base / Total (B) | Spend Weight (WU / vB) | Delta vs P2WPKH (Fund / Spend / Total) | |---|---|---|---|---|---|---|---| | P2WPKH (0014<20B>) | No | 160 (HASH160) | 31.00 vB (22 B spk) | [71, 33] | 94 / 203 | 485 WU (121.25 vB) | baseline | | P2WSH-1of1 (0020<32B>) | No | 256 (SHA-256) | 43.00 vB (34 B spk) | [71, 35] | 94 / 205 | 487 WU (121.75 vB) | +12.00 / +0.50 / +12.50 vB | | P2WSH-PQCommit (0020<32B>) | No | 256 (SHA-256) | 43.00 vB (34 B spk) | [71, 69] | 94 / 239 | 521 WU (130.25 vB) | +12.00 / +9.00 / +21.00 vB | | P2TR-NUMS script-path (5120<32B>) | Yes (Q) | N/A (dlog(Q)) | 43.00 vB (34 B spk) | [64, 34, 33] | 94 / 231 | 513 WU (128.25 vB) | +12.00 / +7.00 / +19.00 vB |
- Plain
P2WSH-1of1is 6.50 vB cheaper to spend thanP2TR-NUMSat identical43.00 vBoutput size, with zero exposed curve point. P2WSH-PQCommitadds only +2.00 vB on spend overP2TR-NUMS(+21.00 vBround-trip overP2WPKH) to bind a 32-byte PQ commitment (alg_id=0x01for FIPS 205 SLH-DSA-SHA2-128s or SHRINCS).
3. Honest Limitations
- Does NOT protect against short-exposure mempool attacks: spending pre-fork still broadcasts an ECDSA signature and 33-byte public key; high-fee / direct-to-miner submission narrows but cannot close that window (
lead_0mxavvsdre1a6601128c5e227). - Pre-fork
OP_DROPis unverified by consensus: the PQ commitment only enforces spending if a future soft fork (e.g., BIP-361 Phase B rescue or P2MR/STARK proof-of-commitment) recognizespq_commit. - Near-term prioritization caveat: per Zalka (
quant-ph/9711070), Grover parallelizes only assqrt(M);2^67sequential quantumHASH160calls is far harder than Shor on secp256k1. ThusP2WSH-PQCommitis a low-cost (+12.50to+21.00 vB) cold-storage hygiene & rescue-binding upgrade, NOT a substitute for a PQ signature soft fork.