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.

💡
Short Exposure Attacks: An attack that steals funds during the brief window when a transaction is sitting in the mempool waiting to be confirmed. The attacker recovers the private key from the exposed public key, then creates a "fake transaction" that sends the funds to themselves via RBF (Replace-by-Fee) or a similar mechanism.

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.

Because of how it is constructed, it cannot be encoded as an address, so it is displayed as Unknown

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.

GitHub - avihu28/Quantum-Safe-Bitcoin-Transactions: A way to enable Quantum Safe Bitcoin transactions that is available today.
A way to enable Quantum Safe Bitcoin transactions that is available today. - avihu28/Quantum-Safe-Bitcoin-Transactions

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.

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.

なぜOP_CATは警戒されるのか?ビットコインにおけるMEVとマイニング集中の懸念
OP_CATの再有効化提案が議論を呼ぶ理由を解説。MEVとマイニング寡占リスクを中心に、懸念点と技術的背景を丁寧に整理します。

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.

💡
For readers who want more detail
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.

💡
How the dummy signatures are made (for readers who want more detail)
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.

💡
Ethan Heilman's earlier work could not meet these constraints: it required thousands of non-push opcodes, and the locking script alone ran to tens of kilobytes.

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.

💡
Pinning the transaction and computing the fingerprint both required producing a signature smaller than a specified size, but with a quantum computer, signatures meeting that condition could be produced easily.

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.

💡
Another weakness: uncertainty about the sighash flag (for readers who want more detail)
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.

💡
What is a valid DER-encoded signature?

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.

ビットコインアドレスの種類まとめ|レガシー・SegWit・Taprootの違いと選び方
ビットコインアドレスの種類を総まとめ。レガシー(1/3)・SegWit(bc1q)・Taproot(bc1p)の違いを、プレフィックスや文字数、手数料、互換性の観点から比較表つきでわかりやすく解説します。

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.