Dr. Michael Zhang
Protocol Security Researcher
Bitcoin BIP 360: What P2QRH Means for Quantum-Resistant Bitcoin

TL;DR: BIP 360 proposes P2QRH (Pay to Quantum Resistant Hash) as a new Bitcoin address type supporting ML-DSA, SLH-DSA, and FALCON post-quantum signatures. It was authored by Hunter Beast and is a draft proposal as of mid-2026 — not merged into Bitcoin Core, no scheduled activation date, no consensus among Core developers. P2QRH protects only funds explicitly moved to new P2QRH addresses; it does not protect the approximately 1.7 million BTC in P2PK outputs with public keys permanently on-chain. Activation requires a soft fork, and the path to that consensus is uncertain. Signature sizes under P2QRH are 40-70x larger than Schnorr, requiring a witness discount to be economically viable.
What Is Bitcoin BIP 360?
BIP 360 is a Bitcoin Improvement Proposal that introduces P2QRH (Pay to Quantum Resistant Hash) — a new Bitcoin address type using post-quantum signature algorithms instead of secp256k1 ECDSA or Schnorr. It follows the model of SegWit address upgrades: P2QRH outputs commit to a hash of the quantum-resistant public key, and the spending transaction reveals the full public key plus a valid post-quantum signature. The proposal supports ML-DSA (CRYSTALS-Dilithium), SLH-DSA (SPHINCS+), and FALCON. As of mid-2026, it remains a draft, not merged into Bitcoin Core, and not scheduled for activation.
Bitcoin Improvement Proposals are the mechanism by which changes to the Bitcoin protocol are proposed, discussed, and eventually implemented. BIP 360 was authored by Hunter Beast (GitHub handle cryptoquick) and submitted to the Bitcoin development mailing list. The proposal draws directly on NIST's post-quantum cryptography standards — FIPS 204 (ML-DSA), FIPS 205 (SLH-DSA) — finalized in August 2024, as well as FALCON (NIST-selected, pending FIPS assignment).
Understanding BIP 360 requires clarity on four distinct questions: what the proposal technically specifies, what it does and does not protect, what the activation path looks like, and why the activation timeline is fundamentally uncertain even if the cryptographic choices are sound.
What Is the P2QRH Output Script Structure?
P2QRH introduces SegWit version 3 outputs. The output script commits to a hash of the post-quantum public key rather than putting the full public key on-chain in the UTXO set. This hash commitment pattern — identical in structure to how P2WPKH handles secp256k1 keys — keeps the UTXO set compact even though post-quantum public keys are hundreds to thousands of bytes. When spending, the transaction reveals the full public key and a valid post-quantum signature in the witness data, where the quantum annex carries the algorithm identifier and key material.
The specific output script structure proposed in BIP 360 is a SegWit v3 output: OP_3 <32-byte hash>, where the 32-byte hash is a SHA-256 commitment to the post-quantum public key concatenated with an algorithm identifier. The spending transaction's witness must include: the algorithm identifier byte, the full post-quantum public key, and a valid post-quantum signature over the transaction hash.
The "quantum annex" is a distinct section within the witness data that carries the post-quantum key material and signature. Separating this data into an annex allows the P2QRH witness structure to be cleanly distinguished from existing SegWit witness structures and enables the specific weight discount to apply only to P2QRH data. The annex design mirrors how BIP 342 (Tapscript) uses the tapscript annex for extensibility.
Why Hash the Public Key Rather Than Put It On-Chain
The decision to hash the public key in the output — rather than recording the full post-quantum public key directly in the UTXO set — is a deliberate optimization. Post-quantum public keys are significantly larger than secp256k1 public keys (33 bytes compressed). ML-DSA-87 public keys are 2,592 bytes. SLH-DSA-SHA2-256f public keys are 64 bytes (more compact) but the signature is very large.
If P2QRH outputs recorded the full ML-DSA-87 public key directly, each UTXO would consume 2,592 bytes in the UTXO set rather than 32 bytes. With hundreds of millions of UTXOs in the Bitcoin ledger, this would impose a substantial memory and storage burden on full nodes — potentially pricing out individuals from running full nodes and further centralizing validation. The 32-byte hash commitment keeps the UTXO set compact, at the cost of requiring the spending transaction to reveal the full public key in the witness. The witness data is not stored in the UTXO set (it is prunable), making this the correct engineering trade-off.
What Is Post-Quantum Signature Sizes?
The signature sizes required by post-quantum algorithms are dramatically larger than current Bitcoin signatures. A Schnorr signature (used in P2TR Taproot outputs) is 64 bytes. ML-DSA-44 signatures are approximately 2,420 bytes; ML-DSA-65 signatures are 3,309 bytes; ML-DSA-87 signatures are 4,627 bytes. SLH-DSA signatures range from 7,856 bytes (compact variant) to 49,856 bytes (fast variant). FALCON-512 signatures are approximately 666 bytes and FALCON-1024 approximately 1,280 bytes — the most compact post-quantum options. Without a witness discount, the transaction fee for a P2QRH input would be 40-70x the fee for a Taproot input, making P2QRH economically unviable for most users.
| Signature Scheme | Sig Size | Pub Key Size | NIST Security Level | Quantum Safe |
|---|---|---|---|---|
| Schnorr (P2TR current) | 64 bytes | 32 bytes | ~128 (classical) | No |
| FALCON-512 | ~666 bytes | 897 bytes | 1 | Yes |
| FALCON-1024 | ~1,280 bytes | 1,793 bytes | 5 | Yes |
| ML-DSA-44 | 2,420 bytes | 1,312 bytes | 2 | Yes |
| ML-DSA-65 | 3,309 bytes | 1,952 bytes | 3 | Yes |
| ML-DSA-87 | 4,627 bytes | 2,592 bytes | 5 | Yes |
| SLH-DSA-SHA2-128f | 17,088 bytes | 32 bytes | 1 | Yes |
| SLH-DSA-SHA2-256f | 49,856 bytes | 64 bytes | 5 | Yes |
The witness discount in BIP 360 is proposed at an 8 MB witness size allowance specifically for P2QRH quantum annex data. This is separate from the 4 MB witness limit on standard SegWit transactions. The discount recognizes that the size increase in P2QRH witness data is an inherent property of post-quantum cryptography, not padding or inefficiency, and that penalizing it at full transaction weight would make quantum-safe transactions prohibitively expensive. The exact discount values remain under discussion in the mailing list.

What BIP 360 Does Not Protect
BIP 360 only protects funds explicitly moved into new P2QRH addresses. It does not protect Bitcoin in existing P2PK, P2PKH, P2SH, P2WPKH, or P2TR addresses. Holders of legacy addresses must send their Bitcoin to a new P2QRH address to gain quantum protection — requiring every holder to take action before a capable quantum computer arrives. Approximately 1.7 million BTC in P2PK outputs already have their public keys permanently on-chain and cannot be protected regardless of whether their holders migrate, because the public key exposure has already occurred.
The situation varies by address type:
P2PK (Pay to Public Key): The oldest Bitcoin address type, used in early coinbase outputs including those attributed to Satoshi Nakamoto. P2PK outputs record the full secp256k1 public key directly in the output script. These public keys are permanently and irrevocably on-chain. Even if BIP 360 activates, even if the holder moves their coins to P2QRH, the historical public key exposure cannot be erased from the ledger. This means the window for a quantum attack on P2PK outputs opens as soon as a capable quantum computer exists — there is no remediation path.
P2PKH (Pay to Public Key Hash) and P2WPKH: These address types hash the public key in the unspent output, revealing the public key only when the output is spent. P2PKH and P2WPKH addresses that have never sent a transaction have not yet exposed their public key. If holders move funds from these addresses to P2QRH addresses without first broadcasting a spending transaction from the old address, they can avoid ever exposing their secp256k1 public key. This is a narrow but real protection path — it requires acting before ever needing to spend from the address.
P2TR (Taproot): Taproot outputs also commit to the public key via a hash in the unspent state, and the key path spend reveals a 32-byte x-only public key. The quantum exposure pattern is similar to P2PKH: unspent Taproot outputs without spending history have not yet revealed their public key, but any output that has been spent has its tweaked public key permanently on-chain.
Who Proposed BIP 360 and Current Status
BIP 360 was proposed by Hunter Beast, a Bitcoin developer who has contributed to Bitcoin tooling and libraries and uses the GitHub handle cryptoquick. The proposal was submitted to the bitcoin-dev mailing list and has received discussion from several Bitcoin Core contributors, cryptographers, and post-quantum researchers. The proposal has gone through multiple revision rounds incorporating feedback from the community.
As of mid-2026, BIP 360 is in draft status. Key open questions in the mailing list discussion include:
Algorithm selection: Whether to support all three post-quantum signature candidates (ML-DSA, SLH-DSA, FALCON) simultaneously, or to standardize on a single algorithm first and add others in future BIPs. Supporting multiple algorithms increases implementation complexity in Bitcoin Core. Supporting only one creates lock-in risk if that algorithm is later weakened.
The witness discount: The exact weight discount for quantum annex data remains unresolved. A larger discount makes P2QRH transactions cheaper relative to classical transactions, encouraging migration. A smaller discount preserves fee market dynamics but slows adoption. Finding a discount level that encourages migration without distorting block economics is a policy as much as a technical question.
Legacy address migration mechanism: Some proposals include a mechanism for legacy address holders to trustlessly migrate to P2QRH in the same soft fork, using a covenant-style construct. This would allow locked Bitcoin in P2PKH addresses to be reclaimed under the new quantum-safe scheme. However, adding covenant functionality to Bitcoin is itself a significant and contested proposal that adds complexity to BIP 360's scope.
FALCON implementation complexity: FALCON requires Gaussian sampling during signature generation — a step that must be implemented carefully to avoid timing side-channel attacks. Several Bitcoin Core contributors have expressed concerns about FALCON's implementation complexity for wallets, especially hardware wallets with limited computational resources.
What Is the Soft Fork Activation Path?
P2QRH activation would follow Bitcoin's soft fork mechanism — likely BIP-9 signaling, in which miners indicate readiness by setting version bits in block headers over a signaling window. Activation requires a supermajority of hash rate to signal (typically 95% over a 2016-block epoch) followed by a lockout period before enforcement begins. Even uncontroversial soft forks have taken two or more years from proposal to activation. P2QRH, which introduces new cryptographic schemes with less production history than secp256k1, faces additional scrutiny and is unlikely to activate before 2028-2030 at the earliest under an optimistic scenario.
Bitcoin's governance model — often described as "rough consensus" among Core developers, with miner signaling as the final activation gate — means there is no single authority that can schedule a soft fork. SegWit, the most significant Bitcoin upgrade in recent memory, was proposed in late 2015 and activated in August 2017 after a contested activation period that resulted in the Bitcoin Cash split. Taproot, a less controversial upgrade, was proposed in 2020 and activated in November 2021. A post-quantum signature upgrade of P2QRH's scope is more technically complex than Taproot and faces additional debate about which post-quantum algorithms to include.
What Happens to Existing Bitcoin UTXOs if BIP 360 Activates
BIP 360 activation does not automatically migrate any existing Bitcoin. The ledger at the moment of activation continues to include all P2PK, P2PKH, P2WPKH, P2SH, and P2TR outputs unchanged. These outputs remain spendable using their current secp256k1 key material. The only change at activation is that new P2QRH outputs become valid and spendable using post-quantum signatures.
After activation, individual holders must choose to migrate. The migration process for each holder is: create a new P2QRH address; broadcast a transaction from each legacy address to the new P2QRH address; pay transaction fees for the migration. This is entirely opt-in and entirely the holder's responsibility. The protocol imposes no deadline, no forced migration, and no deprecation of legacy address types.
This creates a coordination problem. If a significant fraction of Bitcoin holders do not migrate before a capable quantum computer arrives, the Bitcoin held in legacy addresses — particularly P2PK outputs — becomes vulnerable. A quantum-enabled adversary could selectively target high-value P2PK outputs, derive the private keys, and drain them. The total exposure in P2PK outputs alone exceeds one million Bitcoin. The existence of P2QRH as an option does not eliminate this risk — only successful migration eliminates it.
How Does Address Types and Quantum Exposure: Full Compare?
| Address Type | Public Key Exposure | Quantum Risk (pre-BIP360) | Migration Path via P2QRH |
|---|---|---|---|
| P2PK | On-chain in output script | Immediate on Q-day | Partial — must move funds, can't un-expose key |
| P2PKH (spent) | Revealed in spending tx input | Immediate on Q-day | Move to P2QRH before Q-day |
| P2PKH (never spent) | Not yet revealed (hash only) | Safe until first spend | Move directly to P2QRH — never expose key |
| P2WPKH (spent) | Revealed in witness | Immediate on Q-day | Move to P2QRH before Q-day |
| P2TR (spent) | Tweaked x-only key in witness | Immediate on Q-day | Move to P2QRH before Q-day |
| P2QRH (proposed) | Hash only in UTXO set | None if using ML-DSA-87 or SLH-DSA | Native quantum-safe format |
What Ethereum Is Planning for Quantum Resistance
Ethereum's post-quantum roadmap differs from Bitcoin's. Ethereum's account-based model (rather than UTXO-based) and its programmable smart contract layer enable different upgrade approaches. The Ethereum Foundation has discussed account abstraction (EIP-4337 and successors) as a path toward quantum-resistant accounts: under account abstraction, an Ethereum account can use any signature verification logic, including post-quantum schemes, as its authorization mechanism.
Vitalik Buterin has proposed a hard fork approach for Ethereum's post-quantum migration: a specific block height at which all EOA (externally owned account) transaction authorization switches from ECDSA to a post-quantum scheme, with state migration handled at the protocol level rather than requiring individual user action. This is a more aggressive upgrade path than Bitcoin's opt-in P2QRH model, reflecting Ethereum's governance structure and the Foundation's greater ability to coordinate hard forks.
How This Compares to QuanChain's Approach
BIP 360 represents an attempt to retrofit quantum resistance onto Bitcoin's existing architecture — a challenging problem because the architecture was designed around secp256k1 and has accumulated years of permanently exposed public keys in its UTXO history. QuanChain does not face this problem because it was designed with post-quantum signatures as a first-class requirement from genesis.
QuanChain uses ML-DSA-87 and SLH-DSA-SHA2-256f composite signatures in production on its testnet today. Its SpendAndRotate mechanism atomically retires key material with every transaction — no public key ever accumulates on-chain in a funded state between spends. This eliminates the harvest-now, decrypt-later attack surface that P2QRH still leaves open for legacy Bitcoin holders who have not migrated, and eliminates the risk of the permanently-exposed P2PK outputs that no soft fork can remediate.
The difference is architectural, not merely algorithmic. BIP 360 adds a quantum-safe address type to Bitcoin. QuanChain's design ensures no quantum-unsafe key material ever appears in the funded state at the protocol level — from the first block.
Related Guides
Bitcoin Security · 12 min read
Bitcoin Quantum Risk 2026: P2PK, Taproot, and P2PKH Address Exposure Ranked
Research · 11 min read
How Many Qubits to Break Bitcoin's secp256k1? The 29,592-Qubit Answer
Standards · 16 min read
NIST PQC Standards: FIPS 203, 204, 205 & 206 Implementation Guide (2026)
Cryptography · 12 min read
ML-DSA Signature Size on Blockchain: 2,420 Bytes vs 64 — Throughput Impact & Solutions