Claim. For a soft fork that adds a post-quantum signature, the code change in Bitcoin Core does not set the timeline. The public-key code is small and it is in few places. The cost is in the parts that a code audit cannot count: the consensus process, the implementation of the new scheme, wallets and the ecosystem.
Evidence. A reproducible audit of Bitcoin Core at commit 2f3f6397bb92 (without the vendored subtrees) found these items.
- ECDSA: 7 call sites. BIP-340 Schnorr and MuSig2: 6 call sites. The 13 call sites are in three files (src/key.cpp, src/pubkey.cpp, src/musig.cpp), behind the classes CKey and CPubKey.
- BIP-32 derivation: 2 call sites. Key exchange: 1 call site.
- Planning estimate for all open issues: 11.2 person-weeks. Of this, 3.8 are test fixtures and documentation. The other 7.4 are production code and release signing. The two issues for the consensus signatures are 2.3 person-weeks.
How to read the numbers. The estimate comes from a fixed table, with approximately one person-week for each code issue. It shows only the order of magnitude. It counts the work to change the calls in this repository. It does not count these items.
- The implementation and review of the new scheme. libsecp256k1 is a vendored subtree, outside the scan.
- New script rules, validation cost and weight limits.
- Activation.
- A replacement for MuSig2 and for BIP-32 public derivation. They have no standard post-quantum equivalent.
- Wallets, hardware signers, exchanges and Lightning.
Timeline reference. BIP-341 (Taproot) gives 2019-05-06 for its first public discussion and 2020-01-19 for its assignment. It became active at block 709,632 in November 2021. That is approximately 2.5 years from the public proposal to activation. Taproot has small signatures, and it needed no migration of old coins.
Consequence. A plan that budgets by engineering head count in Bitcoin Core will be too short. Review and coordination set the schedule. Thus the items that need little code can start now, in parallel: the output type with no key path (BIP-360), the derivation design and the P2P handshake.
What argues against it.
- A count of call sites understates consensus work. One new opcode needs more review than many call sites.
- The effort model is generic. It was not calibrated on Bitcoin.
- A reader can understand 'small code change' as 'easy'. It is not. The consensus call sites cannot change before a soft fork defines the scheme.
- Taproot is one data point. An emergency can go faster, and a disputed change can go slower.
Disclosure. The filer is the author of pqc-audit, the tool that made the linked report. The report is an example of the output of the tool. It is not a security review, and the Bitcoin Core project does not endorse it.