Signer cost, not signature size, picks Bitcoin's post-quantum scheme
Claim. The scheme decision should be made on measured signing cost. On one machine, one library (Apple M4, Node 26.8.1, OpenSSL 3.5.7, 32-byte message, medians of 101-501 runs), the spread is ~1532x:
| scheme | pk B | sig B | sign ms | verify ms | P2MR spend vB | x P2WPKH | verify s per full block | |---|---|---|---|---|---|---|---| | ecdsa-secp256k1 (today, same library) | 33 | 70 | 0.1369 | 0.1198 | 173 | 1.23 | 0.692 | | ml-dsa-44 | 1312 | 2420 | 0.1751 | 0.0436 | 1082 | 7.67 | 0.04 | | ml-dsa-65 | 1952 | 3309 | 0.2956 | 0.0669 | 1464 | 10.38 | 0.046 | | ml-dsa-87 | 2592 | 4627 | 0.3541 | 0.1055 | 1954 | 13.86 | 0.054 | | slh-dsa-sha2-128s | 32 | 7856 | 138.0259 | 0.2726 | 2120 | 15.04 | 0.128 | | slh-dsa-sha2-128f | 32 | 17088 | 6.6274 | 0.373 | 4428 | 31.4 | 0.084 | | slh-dsa-sha2-192s | 48 | 16224 | 268.2555 | 0.2072 | 4216 | 29.9 | 0.049 |
Every row is measured through the same interface (node: crypto), so the PQ numbers are compared with secp256k1 measured in the *same* library, not with a faster libsecp256k1.
Three consequences
- Verification is not the problem. ML-DSA-44 verifies 2.7x faster than secp256k1 ECDSA in the same library, and a full 1,000,000-vB block of 471 SLH-DSA-128s spends verifies in 0.128 s. The common objection that PQ signatures are a block-validation DoS is false at these parameter sets on this hardware. (Against libsecp256k1's own ~50 us secp256k1 verify, ML-DSA-44 is comparable, not faster; OpenSSL's generic EC is the slower baseline here and I say so.)
- Signing is the problem, and it decides hardware support. SLH-DSA-128s signs in 138.0 ms, 1008x secp256k1 and 788x ML-DSA-44. A signer 10x slower than this M4 spends 1.4 s per signature and 13 s at 50x for 192s; ML-DSA-44 stays at 1.8-8.8 ms. No shipping hardware wallet was measured; these are arithmetic on the measurement, not device benchmarks.
- The standard parameter-set advice inverts for wallets. If the answer must be hash-only, the set to pick is SLH-DSA-SHA2-128f, not 128s: 20.8x faster signing (6.63 vs 138.0 ms) for 2.09x the witness space (4428 vs 2120 vB). For a device that signs, that exchange rate is the whole argument.
The pathway, one decision per item
- D1 Carrier. P2MR (BIP-360, witness version 2, bc1z), script-path only. Depth-1 tree minimum: BIP-360 line 155 makes depth-0 trees anyone-can-spend. My spend model is the 1-in-2-out P2MR spend with a 33-byte control block.
- D2 Default scheme. ML-DSA-44 (FIPS 204): 0.18 ms sign, 0.044 ms verify, 1,312-byte key, 2,420-byte signature, a 1082-vB spend (7.67x today's).
- D3 Conservative leaf. SLH-DSA-SHA2-128f in a second leaf of the same tree, for holders who will not take the lattice assumption. Cost: 4428 vB per spend (31.4x), 0.08 s to verify a full block.
- D4 Script integration. A new PQ checksig opcode, introduced through an OP_SUCCESSx leaf version (BIP-342 lines 57-59: OP_SUCCESSx precedes the size checks and "may uplift" the 520-byte stack-element limit). No candidate PQ signature fits 520 bytes - the smallest here is 2,420 - so any PQ opcode must carry its own element limit; that is a decision, not a detail.
- D5 Key derivation. Both standards take a 32-byte seed (FIPS 204 xi, FIPS 205 keygen seed), so existing seed-backup and restore flows survive with a new derivation branch. Neither defines public child derivation, so watch-only and xpub-based account models do not carry over - a wallet-facing cost that is independent of size.
- D6 Hardware floor. Write a latency requirement into the BIP: measured sign <= 100 ms on the fallback signer. ML-DSA-44 passes with three orders of magnitude of margin; SLH-DSA-128s fails it on any signer ~1x slower than a phone.
Interactions
- signatures -> migration. My measured spend is 7.67x a P2WPKH spend for ML-DSA-44 and 31.4x for 128f, so full blocks carry 924 vs 225 spends: the scheme sets migration throughput, and 128f doubles the blocks needed for the same set of outputs.
- signatures -> tradeoffs. The scheme sets engineering effort: 128s signing at 138 ms means secure-element firmware and a chunked APDU path for a 7,856-byte signature; ML-DSA-44 at 0.18 ms fits existing signing flows.
- signatures -> legacy. Whatever rescue path BIP-361 Phase B defines must be the same scheme, and its witnesses are 1,082 vB (ML-DSA-44) or 4,428 vB (128f) each; the rescue cost is priced by this decision.
- signatures <-> no-fork. A no-fork commit-reveal leaf built today must pick its leaf version now so a future PQ opcode can claim it; pick wrong and the commitment is dead weight.
- Corallo-group plan. Their end-January-2027 draft must name a scheme and a Script integration. This gives them a measurable acceptance test (D6) instead of a size table.
- Ali's ~10% capacity. His 2,420-byte ML-DSA-44 figure reproduces: a 1-in-2-out spend goes from 141 to 1082 vB, i.e. 13.0% of baseline throughput. 128f lands at 3.2%.
- If another case forced one change: D2. If the legacy case concedes hash-only security, swap ML-DSA-44 for SLH-DSA-128f and accept +3346 vB per spend and 38x signing time. I would not swap in 128s: it saves space and loses the signer.
What argues against this
- The default takes the newest assumption. MLWE lattices have less deployment history than hash functions; a break is catastrophic, and the fallback leaf is only useful if holders use it. This is the strongest argument for SLH-DSA and against D2.
- Masking. ML-DSA signing needs side-channel masking and (for the hedged variant) a good RNG; the measurement above says nothing about implementation security, only cost.
- One machine, one library, one message size. The ratios are stable across 101-501 iterations but not portable: OpenSSL's secp256k1 ECDSA is ~2.4x slower than libsecp256k1, which flatters every PQ/ECDSA ratio here. The verification conclusion survives that correction; the signing conclusion is unaffected (no libsecp256k1 signing baseline exists for SLH-DSA).
- The transaction model is analytic. 1,082 and 4,428 vB come from the BIP-360 witness structure computed in
bench2.mjs, not from a node run; a real spend can differ by a few bytes for the annex or a different tree depth.
Method and reproduction: node bench2.mjs in this session's artifact directory; results.json holds every median, iteration count, key size and the 137-byte base constant.