How Bitcoin2x works
Bitcoin2x keeps Bitcoin's design: proof-of-work, the UTXO model, a 21 million coin supply schedule and Bitcoin Script. It adds one new output type and the signatures needed to spend it safely in a world with quantum computers.
The quantum problem in one paragraph
When you spend bitcoin you reveal a public key and a signature. Today's signatures (ECDSA and Schnorr over secp256k1) are secure because deriving the private key from the public key is infeasible for classical computers. Shor's algorithm on a cryptographically relevant quantum computer (CRQC) would make it feasible. Two kinds of attack follow from that:
| Attack | What is exposed | How long the attacker has | Defence |
|---|---|---|---|
| Long exposure | Public keys already on-chain: P2PK, reused addresses, every Taproot (P2TR) output | Months or years | Don't put public keys on-chain until spend time. BIP 360 P2MR does this for script trees |
| Short exposure | The public key revealed in a transaction waiting in the mempool | Minutes, until the block confirms | Post-quantum signatures, so a revealed key is useless to a quantum attacker |
Bitcoin2x addresses both: P2MR outputs remove the long-exposure risk, and post-quantum signature checks inside P2MR leaves remove the short-exposure risk.
What changes compared with Bitcoin
A new output type: P2MR (SegWit v2)
A P2MR output commits only to the Merkle root of a script tree,
OP_2 <32-byte root>. Unlike Taproot there is no internal public key and no key-path spend, so nothing quantum-vulnerable sits on-chain while the coins are unspent. Read the BIP 360 explainer.Post-quantum signatures in tapscript
BIP 360 deliberately leaves signatures to a later proposal. Bitcoin2x follows the approach shown on the Bitcoin Quantum testnet and adds signature checks for NIST's ML-DSA (FIPS 204) inside P2MR leaf scripts, with SLH-DSA (FIPS 205) as a hash-based fallback. A typical leaf is simply
<ML-DSA pubkey> OP_CHECKSIG_PQ, (an illustrative name) where the opcode is introduced through tapscript'sOP_SUCCESSxupgrade path.Larger signatures, accounted for fairly
Post-quantum signatures are much larger than Schnorr signatures (see the table below). Witness data keeps its SegWit discount and signature operations are counted by cost, so blocks stay verifiable on ordinary hardware.
Testnet parameters tuned for testing
The BTCX testnet is a signet with its own genesis block: blocks are signed by the project's seed servers, so the chain stays small and cannot be taken over by hash power. It uses its own network magic, ports (19777 P2P, 19776 RPC) and address prefix (
tbtcx) so it can never be confused with Bitcoin's networks. Because it shares no history with another chain, nothing can be replayed onto it. (The lifeboat spec, which would share Bitcoin's history, needs a fork ID in the signature hash; see replay protection.)
Signature sizes
| Scheme | Standard | Public key | Signature | 1-input BTCX tx | Security basis |
|---|---|---|---|---|---|
| Schnorr (secp256k1) | BIP 340 | 32 B | 64 B | ~111 vB (Taproot key path, 1-in 1-out) | Elliptic curves, not quantum-safe |
| ML-DSA-44 | FIPS 204 | 1,312 B | 2,420 B | 1,027 vB | Module lattices |
| ML-DSA-65 | FIPS 204 | 1,952 B | 3,309 B | not offered | Module lattices |
| ML-DSA-87 | FIPS 204 (CNSA 2.0 choice) | 2,592 B | 4,627 B | 1,899 vB | Module lattices |
| SLH-DSA-SHA2-128s | FIPS 205 | 32 B | 7,856 B | 2,065 vB | Hash functions only |
BTCX supports three post-quantum schemes inside P2MR leaves. ML-DSA-87 is the default, because it is the level the NSA specifies under CNSA 2.0 (reaffirmed in its December 2, 2026 advisory). ML-DSA-44 is available where smaller transactions matter more, and SLH-DSA-SHA2-128s is a hash-based fallback that does not depend on lattice maths at all.
Transaction sizes are measured on BTCX nodes for a one-input transaction spending a P2MR leaf. Thanks to the witness discount, an ML-DSA-87 spend costs about 1,900 vB, about 17 times a comparable Taproot key-path transaction.
Size is the main cost of post-quantum security. It is why BTCX keeps the witness discount and why research into signature aggregation and smaller schemes continues.
What stays the same
- SHA-256 proof-of-work and the difficulty adjustment algorithm.
- The UTXO model, Bitcoin Script and tapscript semantics.
- Existing output types keep working, so legacy, SegWit and Taproot wallets function unchanged on testnet.
- Multisig, timelocks and the script-path constructions used by Lightning, BitVM and Ark can be placed in P2MR leaves.
How a lifeboat chain would split from Bitcoin
Everything above describes the BTCX testnet, which exists today. The lifeboat mainnet is dormant. If it is ever triggered, it splits from Bitcoin as a hard fork:
Same chain until the fork height
Lifeboat nodes run Bitcoin's rules unchanged and follow the real Bitcoin chain. Every block and every balance up to the fork height is Bitcoin's own.
A marker block that Bitcoin rejects
The first lifeboat block deliberately breaks a Bitcoin rule (for example with a coinbase marker). Bitcoin nodes reject it, so the two chains can never re-merge, and lifeboat nodes disconnect from Bitcoin-chain peers.
New rules from the next block
P2MR outputs with post-quantum signatures only, new network magic, port, seeds and address prefix, a one-time difficulty reset and then per-block ASERT. Legacy coins are frozen until unlocked by a quantum-safe proof (see the legacy-coin policy).
Replay protection
After a split, the same coins exist on both chains. Without protection, a transaction signed for one chain could be copied ("replayed") onto the other and move your coins there too. The lifeboat adds a fork ID to the signature hash, so a signature made for one chain is invalid on the other. Legacy signatures are refused on the lifeboat anyway, but the fork ID still matters for P2MR spends if Bitcoin later adopts the same P2MR rules.
Why a testnet first?
Changes to Bitcoin itself are decided by Bitcoin's users and developers, slowly and carefully, as they should be. A separate network lets wallets, exchanges, miners and researchers run the proposed rules end to end, find the rough edges and publish data, without asking anything of Bitcoin. That is track 1 of the Bitcoin2x plan: integrators can build and test now, before the Bitcoin community has reached agreement. If BIP 360 or a post-quantum signature BIP is activated on Bitcoin, the code and experience from BTCX should transfer directly.