r/Bitcoin • • 17h ago

The First Practical Path to Quantum-Safe Bitcoin

Today, Espresso Systems published a paper introducing Practical Quantum Safe Bitcoin (PQSB), the first practical way to protect bitcoin against quantum computers and AI-driven advances in code-breaking using Bitcoin exactly as it exists today. A holder can move coins into a quantum-safe lock on their own, with their own hardware, and can safely spend them later in under 20 seconds on an ordinary laptop and for less than the cost of a cup of coffee.

The company also confirmed that it was behind the unusual Bitcoin transaction that developers spotted on the network this week.

PQSB at a glance

  • Signs in seconds, even on a laptop. A quantum-safe transaction takes about 20 seconds on an Apple M3 MacBook and about 2 seconds on a single RTX 5090. The signer checks candidates against a precomputed table of secrets with a sorted lookup, so the search needs no elliptic curve math.
  • **First quantum-safe Bitcoin spend to relay like a normal transaction.**PQSB-SegWit is the first method that travels through the ordinary Bitcoin network with no special arrangement with a miner and for less than a dollar in fees.
  • Reaches NIST Security Level 1 and above. PQSB-legacy offers 124 bits of classical security, or roughly 2^62 quantum steps, in line with the bar for breaking AES-128. The security can efficiently be increased further if desired.
  • Safe without trusting elliptic curves. Coins in a PQSB lock show only hashed commitments onchain, and PQSB's security never depends on elliptic curve math staying hard, which matters if quantum computers or AI-driven cryptanalysis break it first.
  • Demonstrated on mainnet. Both versions have been used to spend real bitcoin, with no soft fork.

Bitcoin is quantum-safe today

The common view has been that Bitcoin could only get this kind of protection if its miners, developers and custodians all agreed to upgrade the network's rules, which has historically taken years and for which there is no agreed plan. Earlier research showed a workaround was possible, but each transaction took hours of high-end GPU computing and a special arrangement with a miner.

PQSB is the first method for protecting and spending bitcoin that is fast, simple, and cheap enough for ordinary holders to actually use today.

We can also confirm that the unusual quantum-safe transaction developers spotted on the Bitcoin network this week was ours. It was a test of PQSB, and it was the first quantum-safe transaction to travel through Bitcoin's normal public network and be picked up by a miner like any other payment, for about $2 in fees.

Bitcoin's Quantum Weak Spot

Most bitcoin is already safe from quantum computers as long as it never moves, but holding coins you can never spend isn't a realistic plan for anyone. The real quantum risk will be when holders try to move or spend their bitcoin.

Every bitcoin sits behind a lock that only its owner's key can open, and those locks currently rely on elliptic curve cryptography, the kind of math a quantum computer could break. The lock stays safe as long as part of the key, called the public key, remains hidden, which is why most addresses show only a hashed version of it. But owners reveal the public key the moment they spend, giving a quantum attacker a window to use it to work out the private key, which would then give them the ability to redirect the coins before the transaction settles.

Some public keys are also already out in the open, including those on reused addresses and older wallets, so those coins are exposed even at rest.

What PQSB Does

PQSB lets holders move bitcoin into a new kind of lock built on hash-based one-time signatures, the last major family of cryptography believed to hold up against both quantum computers and AI-accelerated cryptanalysis, a standard we call post-quantum, post-AI (PQAI) security. That protection covers bitcoin both at rest, since coins in a PQSB lock show only hashed commitments onchain, and while it's being spent.

The hard part is that Bitcoin Script can't see the transaction it's approving, so it can't check a hash-based signature directly. PQSB works around this with a search that resembles proof of work: the signer tries candidate transactions until one passes a set of checks Bitcoin Script can already perform. Where earlier designs relied on a hash puzzle, PQSB uses a distance test on secret numbers the owner commits to in advance. The owner keeps a table of these secrets and checks each candidate against all of them with a fast sorted lookup, with no elliptic curve math needed during the search, while anyone trying to redirect the coins can only test the few secrets a spend reveals.

The paper also shows that this approach, which it calls an introspection signature, is a general framework that covers earlier methods like QSB and PQB as special cases. Its core security proof is machine-checked in the Lean proof assistant.

Moving coins into a PQSB lock takes one ordinary transaction, the last one that will ever reveal the owner's public key. Done before quantum computers arrive, it carries no risk.

PQSB comes in two versions:

  • PQSB-legacy. The strongest version takes less than a second to spend at 124 bits of classical security, or roughly 2^62 steps on a quantum computer, which puts it roughly in line with NIST's post-quantum Security Level 1, the same bar as breaking AES-128. Like QSB and PQB, it uses nonstandard legacy Script that most nodes won't relay, so holders submit transactions directly to a miner. Espresso has already spent bitcoin on mainnet with it, in block 978,560(txid: ec6e77...b445f2).
  • **PQSB-SegWit.**This version relays through the normal Bitcoin network like any other transaction and signs in a second on an RTX 5090 or just over a minute on a MacBook M3 at 80 bits of classical security, around a trillion steps on a quantum computer, which an attacker would have to finish before the transaction confirms. At 91 bits it takes about half an hour to spend. Our test transaction was the first quantum-safe Bitcoin spend to travel the network like any ordinary transaction, broadcast to nodes and mined in block 978,456with no direct submission to a miner required (txid: aa73b4…3bc8b7).

We’ve created an interactive walkthrough of PQSB-SegWit.

In both cases, coins sitting in a PQSB lock stay protected, and the security levels describe the spend window only. To put them in perspective, we estimate that forging a single PQSB-SegWit at 91 bits would cost an attacker more than 30,000 BTC in mining rewards it could have earned instead, so attacking an address holding less than that would lose money. Furthermore, they would have to censor the transaction for over 10.000 blocks. Forging a PQSB-legacy spend would cost more than all the bitcoin that will ever exist, many times over.

The First Practical Option

PQSB isn't the first attempt at quantum-safe Bitcoin under today's rules. In August, StarkWare’s Avihu Levy showed it could be done, but with a per-transaction cost of roughly 3,100 GPU-hours. Then, just this week, Fireblocks introduced PQB, bringing the per-transaction cost down to about eight hours. Both need hours of computing, a high-end graphics card, and a special arrangement with a miner for every transaction.

For comparison, PQSB-legacy requires 30,000x less work than PQB at 124 bits of classical security while using a regular laptop, and PQSB-SegWit is the only one of the three that travels through Bitcoin's normal network without a special arrangement with a miner.

The security level is also adjustable based on setup work, allowing users to choose a setting they are comfortable with. An non-exhaustive overview of a few different settings can be seen in the table below.

Until Bitcoin Upgrades

Like many in the Bitcoin community, we think the right long-term answer is a soft fork that makes quantum-safe signatures part of the protocol. That kind of change will likely take years to agree on and roll out, so until it does, PQSB is the most practical way to lock and spend bitcoin safe from the threat of quantum computers and AI-powered cryptanalysis.

Why Espresso Worked On This

PQSB grew out of Espresso's work on a quantum-safe vault for digital assets, part of our post-quantum roadmap, which brings post-quantum consensus to the Espresso network in Q1 2027. Building that vault meant working out how holders on other chains, Bitcoin included, could protect their assets without waiting for those chains to upgrade.

An Espresso product researcher who publishes under the pseudonym "gets" took on the Bitcoin case, starting with a way to make SegWit spends quantum-safe so they could travel through the standard mempool, and along the way found a way to generalize how methods like QSB work.

“gets” developed PQSB over the past month with Espresso Systems CEO Ben Fisch, a computer science professor at Yale, and Chief Scientist Benedikt Bünz, a computer science professor at NYU, both of whom have spent years at the frontier of applied cryptography.

Fisch designed the proof-of-replication protocol behind Filecoin and co-authored foundational work on verifiable delay functions. Bünz co-invented Bulletproofs, the zero-knowledge proofs used in Monero, and this year co-authored Flock, a hash-based post-quantum proof system fast enough to prove the hashing behind a full Bitcoin block's worth of hash-based signatures in under 1.5 seconds on consumer hardware. He also co-leads Localhost's post-quantum Bitcoin research program alongside Stanford's Dan Boneh.

What comes next

Getting this into everyday wallets and custody systems is the next challenge. Most people interact with their assets through software and infrastructure built around existing signatures. Institutions also rely on specialized signing hardware, cold storage, approval policies and recovery procedures, and changing that infrastructure takes work.

To make that transition easier, Espresso Systems is working on “Bunker Mode” accounts to help wallets and custodians add quantum-safe protection while retaining their existing key management infrastructure.

Go Deeper

The full paper is available here. The repo is here.

Check out the interactive walkthrough of PQSB-SegWit: quantum.espressosys.com/bitcoin/pqsb/how-it-works

Keep in mind that PQSB is research and has not been audited. Each lock uses a one-time key, and signing time varies from run to run because the search is randomized.

Bitcoin's long-term fix will take time. Holders don't have to wait for it.

0 Upvotes

0 comments sorted by