QSB: First Quantum-Safe Bitcoin Transaction Without a Fork
This article was translated from Japanese with AI. Read the original (日本語) · Report a translation issue
Research into making Bitcoin quantum-resistant is advancing day by day.
At 5:48 a.m. Japan time on August 27, 2026, a certain transaction was confirmed in a block on mainnet, and it drew coverage in the news.
This transaction is known as QSB (Quantum Safe Bitcoin). QSB is an attempt to create quantum-resistant transactions within Bitcoin's existing framework, with no changes to the protocol, and it works as a countermeasure against Short Exposure Attacks.
With this confirmation, a quantum-resistant transaction has been successfully created on Bitcoin and is now permanently recorded on the blockchain.
You can view the transaction here.

The QSB transaction itself is valid under the consensus rules, but because of several constraints it does not satisfy nodes' relay policy, so it has to be sent directly to a miner.
In this case, it was mined through Slipstream, a service from MARA Holdings' MARA Pool that lets users submit nonstandard or very large transactions directly. For this reason, the proposed QSB is positioned strictly as a last resort, for use if protocol changes don't arrive in time and quantum-resistant signatures can't be introduced.
This article gives an overview of QSB and explains how it works. The construction involves a complex process, so I'll keep the explanation as simple as I can. Readers who want more detail should refer to the original proposal linked below.
Prior research behind QSB
The QSB paper was published in April 2026, but research on making Bitcoin transactions quantum-resistant goes back further. QSB rests mainly on the following three pieces of work.
- Lamport signatures in Bitcoin Script using OP_CAT (Jeremy Rubin, 2021)
- Lamport signatures without OP_CAT using signature size (Ethan Heilman, 2024)
- A technique exploiting old algorithms and bugs: Binohash (Robin Linus, 2026)
Ordinary Bitcoin transactions use ECDSA or Schnorr signatures, which rest on a mathematical assumption called the elliptic curve discrete logarithm problem (ECDLP). These signatures are known to be vulnerable to quantum computers, so quantum-resistant signatures need to be introduced.
What the proposals above have in common is the idea of creating transactions that can be verified with Lamport signatures (a hash-based scheme), which rely on a different mathematical assumption, one that remains secure even against quantum computers.
OP_CAT is covered in a previous Bitcoin Research Lab article, so please refer to it.
QSB is built mainly by modifying the third of these, Binohash. In fact, the acknowledgments reveal that Robin Linus, the author of Binohash, reviewed the QSB draft, and about a third of the paper is devoted to explaining Binohash. Since Binohash is a prerequisite for understanding how QSB works, I'll start there.
Binohash
Bitcoin Script has no opcode that directly reads the contents of the transaction being executed (inputs, outputs, amounts, and so on). Binohash gets around this with a two-step process: it creates a fingerprint tied to the transaction (digest D) and signs it, making the transaction's contents verifiable.
STEP 1: Transaction pinning
Lock the transaction so its contents cannot be altered.
STEP 2: Generating the fingerprint (digest D)
Create a short fingerprint D that can be read within the script, and sign it with a Lamport signature.
Let's start by looking at STEP 1 in detail.
STEP 1: Transaction pinning
To pin the transaction's contents, a pseudo-signature is created that satisfies a "signature size condition." If the transaction were altered, the signature itself would change and no longer meet the condition, so a new pseudo-signature meeting the condition would have to be generated from scratch. In other words, the logic is that the transaction's contents are bound to the pseudo-signature.
The pseudo-signature is created by spending computational resources, much like proof of work (PoW). Because the purpose of this signature is simply to pin the transaction's contents by paying the cost of computation to produce a signature that satisfies the condition, it uses a known value for the private key and similar parameters.
The following goes beyond the scope of this article, so feel free to skip it.
The condition the pseudo-signature must satisfy in the PoW puzzle is its "signature size." To produce a signature smaller than a specific size, the signature parameter \(r\) (of \(r,s\)) is set to a known small value \(r_{min}\). When the private key is known, a small signature can be found by brute force, varying the sighash \(z\) to change \(s\) (= PoW).
Finally, Bitcoin Script checks the signature size with the OP_SIZE opcode, which serves as the proof of work.
As a side note, because the scope a signature covers differs by sighash flag, PoW is performed separately for each of four patterns (ALL, NONE, ANYONECANPAY|ALL, and ANYONECANPAY|NONE), producing four pseudo-signatures.
STEP 2: Generating the fingerprint (digest D)
In STEP 2, a fingerprint D (something like an identifier) is created that can be read within Bitcoin Script. Because this fingerprint is generated by exploiting a quirk of "FindAndDelete," an old mechanism that predates SegWit, newer address formats such as SegWit and Taproot cannot be used.
To create the fingerprint, you prepare \(n\) dummy signatures unrelated to the transaction and select \(t\) of them. Each combination of \(t\) signatures chosen from the \(n\) uniquely determines the transaction's hash (sighash), which takes on a random value.
The combination of dummy signatures is varied by brute force until the hash satisfies the signature size condition, and that combination of \(t\) dummy signatures itself is treated as the fingerprint D.
There was a bug in which, when input_idx ≥ num_outputs, the SIGHASH_SINGLE sighash computation always returns the constant z=1, regardless of the actual transaction or the contents of scriptCode (in pre-SegWit legacy scripts).
This makes it possible to create minimum-size, 9-byte signatures, with r and s each set to an arbitrary small 1-byte value, independently of the actual transaction.
Finally, the fingerprint that was found is signed using HORS (Hash to Obtain Random Subset), a type of Lamport signature, producing a quantum-resistant transaction.
Binohash's constraints and fatal flaw
Binohash's constraints
Binohash cannot use SegWit or later addresses, because of the FindAndDelete mechanism and the large number of dummy signatures it generates.
It therefore had to rely on script execution for legacy addresses. Legacy scripts come with two further strict constraints.
- Opcode limit: no more than 201 non-push opcodes
- Script size limit: total script size must not exceed 10,000 bytes
To satisfy these constraints, Binohash employs many tricks to reduce the number of opcodes and the size of the script.
Binohash's fatal flaw
Binohash had a fatal flaw when it came to achieving quantum resistance. The transaction-building steps described in the previous section (pinning the transaction and computing the fingerprint) included components that depended on the mathematical hardness of elliptic curves.
In other words, although the goal was to replace a vulnerable signature scheme (ECDSA) to create a quantum-resistant transaction, part of the construction process relied on assumptions that a quantum computer could break.
The sighash flag (the scope of what a signature covers) cannot be read directly in Bitcoin Script. So if, for example, the flag were ANYONECANPAY|NONE (SIGHASH_ANYONECANPAY = sign only your own input; SIGHASH_NONE = sign none of the outputs), the signature would be extremely loose, and anyone could freely rewrite the transaction's outputs.
QSB is what fixed these weaknesses and produced a quantum-resistant transaction.
How QSB (Quantum Safe Bitcoin) works
QSB (Quantum Safe Bitcoin) replaces the internal steps in Binohash that depended on elliptic curve cryptography (pinning the transaction and computing the digest) with the hash function preimage problem, which remains hard even for quantum computers.
This method is called the "hash-to-signature puzzle."
The hash-to-signature puzzle
The hash-to-signature puzzle is something like a lottery that exploits a particular property of hash functions.
That property is this: "the output of a hash function occasionally happens to be a valid DER-encoded ECDSA signature."
Depending on the hash function, a valid signature happens to come out with a probability of \(2^{-45.4}\) for SHA-256 or \(2^{-46.4}\) for RIPEMD-160, and QSB uses this property to pin the transaction.
Concretely, a public key is created from a known signature (an arbitrary value) and the transaction's contents. If hashing this public key happens to yield a valid signature, the transaction is successfully pinned. That's because if even a single character of the transaction were different, the hash would be something completely different.
Conversely, if no valid signature comes out, a valid one is searched for by brute force (about \(2^{46}\) attempts), varying parts of the transaction such as nLocktime, nSequence, the order of the outputs, and extra OP_RETURN data.
0x30 [total length] 0x02 [length of r] [r data] 0x02 [length of s] [s data] [sighash flag]
A signature is judged valid when it follows the format above and the length values match the actual lengths of the data.
QSB's digest computation likewise uses the hash-to-signature puzzle to create the fingerprint.
The fingerprint is then signed with a Lamport signature, completing the quantum-resistant transaction.
QSB's constraints
Like Binohash, QSB depends on Bitcoin's legacy scripts.
The redeem script (where the script's contents are written) for P2SH, a legacy address type, has a 520-byte limit, but QSB is about 9,923 bytes, far exceeding it.
QSB gets around this with a "bare script output," writing the script directly into the scriptPubKey. However, bare scripts are nonstandard under Bitcoin Core's current default policy. On top of that, the process of building the transaction uses tricky techniques, so the transaction is treated as violating policy.
As a result, the transaction is not relayed by ordinary nodes, so you have to send it directly to a miner yourself and have them include it in a block.
The "Unknown" label we saw on mempool.space at the beginning is likely shown because the transaction was built in a nonstandard format and could not be displayed as an address.
P2SH and other Bitcoin address types are covered in the article below.
Summary
The QSB transaction confirmed on mainnet is highly significant because it achieved a quantum-resistant transaction using only the existing script framework, without changing the Bitcoin protocol at all.
Its design builds on earlier research by Jeremy Rubin, Ethan Heilman and others, and directly on Robin Linus's Binohash. Binohash had a fatal flaw: elliptic curve cryptography remained in the transaction-pinning and fingerprint-computation steps. QSB resolved this by replacing those steps with the "hash-to-signature puzzle," which relies on the hash function preimage problem, producing a transaction built entirely on assumptions that hold up even against quantum computers.
On the other hand, constraints such as the dependence on legacy scripts and the inability to satisfy nodes' standard relay policy remain unresolved, and practical hurdles persist, such as needing to send transactions directly to miners. QSB is therefore best seen as a stopgap until quantum-resistant signatures are formally introduced into Bitcoin itself, via a soft fork or similar, and above all as a last resort.
Even so, demonstrating this degree of quantum resistance without any protocol change is unquestionably an important step forward in research on making Bitcoin quantum-resistant.


