BIP-360 (Pay-to-Quantum-Resistant-Hash)

A proposed address type meant to survive quantum attacks by moving to a hash-based spending condition.

Basically

BIP-360 is a proposal for a new type of Bitcoin address. It aims to protect your bitcoin from future quantum computers.

Key Takeaways

  • BIP-360 introduces a new output type called Pay-to-Merkle-Root (P2MR). It replaces Taproot's quantum-vulnerable key-path spend with a pure script-tree commitment, protecting funds from future quantum computers running Shor's algorithm.
  • BIP-360 can be deployed as a soft fork using SegWit witness version 2. You could voluntarily move your funds to quantum-safe bc1z addresses without a hard fork or changes to legacy transactions.
  • The main tradeoff is transaction size. Post-quantum signatures range from roughly 666 bytes for FALCON-512 to over 7,800 bytes for SPHINCS+, compared with 64 bytes for current Schnorr signatures, which would significantly reduce on-chain throughput.

What Is BIP-360?

BIP-360 is a Bitcoin Improvement Proposal that defines a quantum-resistant address format for Bitcoin. Hunter Beast (MARA), Ethan Heilman, and Isabel Foxen Duke authored the proposal, which was originally titled Pay-to-Quantum-Resistant-Hash (P2QRH) and later renamed Pay-to-Merkle-Root (P2MR). It was first proposed on the Delving Bitcoin forum in June 2024 and merged into the official Bitcoin BIP repository on February 11, 2026.

Bitcoin's current cryptography relies on elliptic curve cryptography, specifically the secp256k1 curve, which a sufficiently powerful quantum computer could break using Shor's algorithm. A quantum attacker could derive your private key from a public key exposed on-chain and steal your funds. BIP-360 removes the need to expose a classical public key by committing only to a Merkle root of post-quantum-safe scripts.

How It Works

BIP-360 builds on the SegWit versioning system that Bitcoin already uses. P2WPKH uses witness version 0 and P2TR (Taproot) uses witness version 1, while BIP-360 introduces witness version 2. Its addresses begin with the bech32m-encoded prefix bc1z.

P2MR vs P2TR

The design closely mirrors Taproot, but removes the key-path spend. A standard P2TR output commits to a tweaked public key that enables a fast key-path spend using the internal public key directly and a script-path spend using the Merkle tree of tapscripts. The key-path spend makes Taproot vulnerable to quantum attacks because spending requires exposing an elliptic curve public key on-chain.

P2MR eliminates the key-path entirely. The output commits only to the 32-byte Merkle root of the script tree, and spending always goes through the script path, where post-quantum signature verification opcodes can be used.

Post-Quantum Signature Algorithms

BIP-360 does not mandate a specific post-quantum cryptography (PQC) algorithm. It provides the address format and spending framework, while PQC signature verification would be added through tapscript opcodes using currently reserved OP_SUCCESSx codes. The leading candidates are all NIST-standardised algorithms.

Current Schnorr signatures on secp256k1 are 64 bytes with a 32-byte public key. Even the most compact PQC option, FALCON-512 at 666 bytes, is roughly 10x larger.

Control Block and Witness Structure

The P2MR control block is slightly more compact than P2TR's because it omits the 33-byte internal public key. A P2MR control block is 1 + 32m bytes, where m is the Merkle tree depth from 0 to 128, compared with P2TR's 33 + 32m bytes. The minimal witness size for a single-leaf script tree is 103 bytes before adding the PQC signature itself.

The Quantum Threat to Bitcoin

The urgency behind BIP-360 comes from accelerating progress in quantum computing. A March 2026 paper from Google Quantum AI estimated that breaking secp256k1 would require fewer than 500,000 physical qubits, a 20x reduction from the 9 million qubits estimated in Litinski's 2023 analysis. DARPA stated in March 2026 that building a utility-scale quantum computer by 2033 "seems more likely than not."

Bitcoin address types do not all face equal risk. Addresses that have already exposed their public key on-chain are most vulnerable.

An estimated 6.5 to 6.9 million BTC, roughly 30% of circulating supply, are considered at risk. For a deeper analysis, see the research article on Bitcoin's Taproot quantum vulnerability and the overview of post-quantum cryptography threats to Bitcoin.

Harvest Now, Decrypt Later

The "harvest now, decrypt later" attack model is a key concern because attackers can record Bitcoin transactions and exposed public keys today, then derive private keys once quantum hardware matures. The migration timeline is therefore more urgent than the quantum computing timeline alone suggests, and BIP-360 co-author Ethan Heilman estimates that a full migration would take approximately seven years if started immediately. NIST recommends completing migration to post-quantum cryptography by 2035, and the research article on harvest-now-decrypt-later attacks on Bitcoin provides more context.

Deployment and Migration

BIP-360 is designed as a soft fork, following the same backward-compatible upgrade path used for SegWit and Taproot. Legacy nodes would treat P2MR outputs as "anyone-can-spend," while upgraded nodes enforce the new spending rules. The upgrade therefore does not require unanimous network adoption to activate.

Migration is voluntary, so you could move your funds to new bc1z addresses at your own pace. The P2MR format maintains compatibility with existing tapscript-based protocols, allowing systems built on Lightning, BitVM, and Ark to transition without fundamental architectural changes.

BIP-361: The Companion Migration Proposal

BIP-361 is a companion proposal authored by Jameson Lopp and others and published in April 2026, outlining a more aggressive migration timeline in three phases: after activation, new BTC could no longer be sent to legacy addresses in Phase A after three years, legacy ECDSA and Schnorr signatures would then be invalidated entirely in Phase B after five years, and finally a zero-knowledge proof rescue mechanism would allow owners of frozen coins to prove ownership and recover funds in Phase C, which is still under research. BIP-361 has drawn significant debate, with some developers criticising the coin-freezing mechanism. BIP-360 itself, which only enables voluntary migration, has broader community support.

Long-Term Cold Storage

The most immediate use case is protecting cold storage funds. Bitcoin held in multiyear or multigenerational custody arrangements faces the longest exposure window to future quantum attacks. Migrating these funds to P2MR addresses provides forward security because no classical public key is ever exposed, so the funds remain safe even if quantum computing advances faster than expected.

Institutional Custody

Institutional holders, including Bitcoin ETFs and corporate treasuries, face regulatory and fiduciary pressure to adopt quantum-safe cryptography. BIP-360 provides a concrete migration target. Financial institutions holding Bitcoin will likely need to demonstrate compliance as NIST standards require post-quantum readiness by 2035.

Protocol-Level Infrastructure

Layer 2 protocols and off-chain systems that rely on digital signatures for security, such as Lightning channels, multisig wallets, and discreet log contracts, will eventually need quantum-safe primitives. BIP-360 provides the on-chain foundation on which these protocols can build.

Transaction Size and Throughput

The most significant tradeoff is on-chain footprint because post-quantum signatures are dramatically larger than their classical counterparts. Using ML-DSA-44, CRYSTALS-Dilithium at NIST security level 2, signatures are roughly 35x larger than ECDSA, and analyses estimate that block capacity would drop from approximately 2,500 to 3,000 standard transactions per block to roughly 500 to 700 PQC transactions, a 4 to 5x throughput decline. Fee pressure would increase unless a witness discount or other scaling measures offset the decline.

Algorithm Selection Uncertainty

BIP-360 deliberately avoids committing to a single PQC algorithm, which provides flexibility but means the signature verification opcodes are not yet finalised. The PQC field is still maturing: NIST finalised its first post-quantum standards in 2024, but algorithm implementations continue to be refined. Choosing the wrong algorithm could require another migration in the future.

Migration Complexity

Migrating the entire UTXO set to quantum-safe addresses is a massive coordination challenge. At current transaction throughput, moving all existing UTXOs to P2MR addresses would take months to years of dedicated block space. Users who lose access to their keys, including Satoshi's estimated 1.1 million BTC, cannot migrate, leaving those coins permanently vulnerable.

Premature vs. Late Adoption

The timing creates tension between acting too early and too late. Deploying quantum resistance before the threat materialises imposes costs through larger transactions, reduced throughput, and engineering effort without immediate benefit, but waiting too long risks a catastrophic loss event if quantum computing progresses faster than anticipated. The "harvest now, decrypt later" threat model suggests that the security window is already open because data exposed today can be attacked with future hardware.

Testnet Progress

BTQ Technologies released a testnet, v0.3.0, with the first working BIP-360 implementation in March 2026, enabling all five Dilithium signature opcodes within the P2MR tapscript context. The testnet attracted over 50 miners, 100,000 mined blocks, and 100+ contributing cryptographers and developers. Significant work remains before BIP-360 is ready for mainnet activation despite this progress.

The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.

0

← All 1876 glossary terms