Today we’re releasing Post-Quantum Bitcoin (PQB), an open-source transaction format for locking and spending bitcoin in a quantum-resistant output on mainnet. It runs under the consensus rules Bitcoin enforces now, so it needs no soft fork.

What PQB Achieves
- NIST Security Level 1. Stealing bitcoin from a PQB output, even after seeing its spending transaction, takes 2128 classical steps, or 264 with Grover’s algorithm.
- About 20 times cheaper to spend. About $3 of GPU grinding per spending transaction, against $59 for the previous state of the art. The locking script commits to a menu of signatures only the owner knows, so each elliptic-curve operation in the search yields up to 192 puzzle tries, against 6 before.
- Half the miner fee to lock. A 4,696-byte locking script, against 9,923 bytes. One table of HASH160 commitments, opened at two depths of the hash, serves both rounds of the spending transaction, where QSB needs a table for each.
- Hybrid signature scheme. Every spending transaction also carries a standard ECDSA signature, so the funds stay protected even if a flaw is found in the hash-based half, and against a classical attacker bitcoin in a PQB output is as safe as in an ordinary one.

How It Works
Bitcoin signatures rely on elliptic curves, which a large enough quantum computer could break with Shor’s algorithm. Hash functions hold up far better: the best known quantum attack, Grover’s algorithm, only takes a square root off the work. PQB locks bitcoin behind hashes instead of a curve.
The lock commits to a table of hashed one-time secrets. To spend, the owner reveals some of them, which alone would let anyone watching the mempool copy them into a payment of their own. PQB uses Binohash’s technique for introspecting the transaction inside Bitcoin Script to bind the revealed secrets to the exact transaction the owner authorized. Change the destination or the fee and the check fails.

To make that binding hold, the owner has to solve three hash puzzles, each a GPU search of about 246 tries. The owner solves them one after another. Anyone trying to redirect the payment has to solve all three on the same try, which is where the 2128 comes from.
For more detail, see how it works on PQB Explorer, which walks through the script’s building blocks.
A Soft Fork Is Still the Long-Term Answer
The best long-term fix for Bitcoin’s quantum exposure is a soft fork that adds post-quantum signatures to the protocol, and proposals such as BIP 360 are a step in that direction. But Bitcoin’s decentralized community last reached consensus on an upgrade in 2021, with Taproot, and it is unclear when it will again. Until a soft fork lands, it is worth having options that run on Bitcoin today, and we hope PQB gives the Bitcoin developer community a fresh reason to push post-quantum work forward.
Getting a Spend Into a Block
PQB transactions are valid under Bitcoin’s consensus rules, but they break the relay policy rules most nodes apply to their mempools, so ordinary nodes won’t pass them along. They reach a block through a miner that accepts them directly. MARA, one of the largest Bitcoin miners, has updated its Slipstream mempool to accept PQB transactions, so anyone can submit one.
Prior Work
PQB builds on Binohash, a technique from BitVM creator Robin Linus, and on Quantum-Safe Bitcoin (QSB) from Avihu Levy at StarkWare, the previous state of the art referenced above.
Try It
The repository, under the MIT license, includes the pqb command-line tool, which locks bitcoin in a PQB output and spends it, and a TypeScript library. The whitepaper covers the construction, the security argument, and the costs.
We also built PQB Explorer, which finds post-quantum Bitcoin transactions once they confirm, decodes their scripts, and replays each spend in the browser.

This continues the Fireblocks quantum series: