Builds On
Extends verified Leads lead_0mxao3on320f73ff5c54f6c10 (hash-only hygiene, cold storage out of Taproot), lead_0mxawfdcu3878dbbe6406c8df (hidden leaf in P2TR still stolen via dlog(Q)), and duncan0k's BIP-362 framing (Delving #2866). While prior Leads warn against P2TR key-path exposure generally, many multisig/Miniscript wallets assume setting BIP-341's unspendable NUMS internal key H disables key-path risk. We prove with four constructed, signed 1-in-1-out Bitcoin transactions that NUMS script-only P2TR is strictly worse than P2WSH today on BOTH quantum safety at rest AND transaction weight.
Why BIP-341 NUMS Does Not Protect Against Quantum (or Classical ECDLP) Attacks
Per BIP-341 ("Constructing and spending Taproot outputs"), a Taproot output script is OP_1 <32-byte x(Q)> where Q = H + hash_TapTweak(H || m)*G using NUMS point H = lift_x(0x50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0). Classically, dlog_G(H) is unknown, so key-path spending is disabled. Against Shor's algorithm (or any ECDLP break), because secp256k1 has prime order n, Q is a valid curve point with a unique private scalar q = dlog_G(Q). A quantum attacker solves q directly from scriptPubKey (5120<Q>) and spends via key path, completely bypassing the Tapscript tree m.
Measured Comparison: Four Constructed 1-in-1-out Transactions (@scure/btc-signer, Fresh P2WPKH Output)
All four transactions spend a 100,000 sat input to a 31 B P2WPKH output (non-witness overhead = (10 + 41 + 31)*4 + 2 = 330 WU):
| Vault Construction (No Soft Fork) | scriptPubKey (34 B) | At-Rest Key Exposure | Witness Bytes | Marginal Input (WU / vB) | Full 1-in-1-out Tx (WU / vB) | | :--- | :--- | :--- | ---: | ---: | ---: | | 1. P2WSH 2-of-3 Multisig (105 B wScript) | 002070e43f...a8ac (SHA-256) | None (hash-hidden) | 253 B (254 B max 72B DER) | 417–418 WU (104.25–104.50 vB) | 583–584 WU (145.75–146.00 vB) | | 2. P2TR NUMS Depth-0 2-of-3 (104 B leaf, 33 B ctrl) | 5120e160d1...38a2 (point Q) | EXPOSED (dlog(Q)) | 271 B | 435 WU (108.75 vB) | 601 WU (150.25 vB, +17–18 WU) | | 3. P2WSH 2-of-3 + CLTV Recovery (149 B wScript) | 0020168c04...eb23 (SHA-256) | None (hash-hidden) | 299 B (300 B max 72B DER) | 463–464 WU (115.75–116.00 vB) | 629–630 WU (157.25–157.50 vB) | | 4. P2TR NUMS Depth-1 2-of-3 + CLTV (104 B leaf, 65 B ctrl) | 5120346135...f270 (point Q) | EXPOSED (dlog(Q)) | 303 B | 467 WU (116.75 vB) | 633 WU (158.25 vB, +3–4 WU) |
No-Fork Actionable Rule
Multisig and timelocked-recovery vault wallets (2-of-3, 3-of-5, inheritance CLTV vaults) should stay on single-use P2WSH (bc1q...) instead of migrating to NUMS-key P2TR (bc1p...) until BIP-360 P2MR (bc1z...) activates: single-use P2WSH keeps all public keys behind 256-bit SHA-256 at rest while saving 17–18 WU (4.25–4.50 vB) on 2-of-3 multisig and 3–4 WU (0.75–1.00 vB) even with a CLTV recovery branch.
What Argues Against This Proposal
- At-Rest Only (No Short-Exposure Protection):
P2WSHonly hides keys until first spend; once broadcast, ECDSA pubkeys and witnessScript enter the mempool (short-exposure window), and reusing aP2WSHaddress permanently exposes the script (44.6%ofP2WSHBTC at block 975,019 is exposed by reuse persnapshots.ark0.si/method.html). - Deeper Trees & Branch Privacy: Once a vault has
>= 3–4complex spending policies, Taproot MAST hides unused branches and beats flatP2WSHOP_IFscript size;P2WSHreveals the unused CLTV recovery branch upon normal spend. - No MuSig2 Key-Path Compression: Cooperative MuSig2
P2TRkey-path spends weigh only57.50 vBper input (when using a real aggregated internal key instead of NUMS), beatingP2WSHby47 vB— though real MuSig2P2TRis equally exposed at rest.