PQC output type discussion

Posted by sipa

Jul 27, 2026/21:25 UTC

The progression and diversification of Bitcoin transaction output types have been influenced by an ongoing discussion about adapting to post-quantum cryptographic (PQC) concerns. The key variations discussed include several notable proposals, each aiming to enhance security against quantum computing threats while considering efficiency and current technological constraints.

One such proposal is the P2MR or "Pay to Merkle Root," detailed in BIP-360. In this model, the transaction output stores a Merkle root which represents a tree of leaf scripts. When spending, the Merkle path along with the leaf script and inputs are revealed, keeping EC points off-chain until they're needed. An extension of P2MR is P2QR or "Pay to Quantum Resistant," which disables ECC opcodes from the start, aiming for unconditional quantum resistance at the expense of losing ECC's efficiency prior to a potential 'Q-day'.

On the other hand, P2TRv2 follows similar semantics to the existing BIP-341 but incorporates PQC opcodes and expects a future consensus change that disables ECC within the output type itself. A variant, P2TRH, proposed here, includes a scriptPubKey that contains a hash of the tweaked point Q, and utilizes public key recovery for key path spending, maintaining a similar weight profile to P2TRv2 without leaving an EC point on the chain.

Innovative elements like Public Key Recovery (PKR) reduce the explicit exposure of public keys at spending time by using a signature and EC public key recovery against the public key hash, thus saving space but requiring a new BIP-340 variant. Further discussions propose a new witness style that allows for additional witness data with modified discounting/cost rules, facilitating the deployment of transaction serialization changes and extensions to the P2P protocol.

Security strategies such as Tripwire and Miner Lockdown provide mechanisms to disable ECC under certain conditions, either through on-chain proof of ECDLP breaking or via a softfork enabled by miner consensus, respectively. This aims to limit unexpected vulnerabilities by disabling ECC only within specific output types.

Lastly, proposals for hybrid PQC opcodes present a way to combine ECC with PQC signatures, offering security even if one of the schemes fails. However, these introduce larger signatures and higher verification costs, demonstrating the trade-offs involved in enhancing Bitcoin's resistance to quantum threats.

These discussions reflect a community actively exploring various paths to securing Bitcoin against emerging cryptographic challenges, balancing security, efficiency, and backward compatibility in the design of new transaction output types.

Link to Raw Post
Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiDecoding BitcoinWarnet
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project.

Give Feedback