Exposure

What actually leaks when you use an address

The key space is closed. The leak is elsewhere, and it is structural: a Bitcoin transaction publishes a hash of the receiver’s public key and the public key itself of the sender. Everything below follows from that one asymmetry.

FaFa22 November 20267 min read

1. One real transaction, parsed

This is not a diagram. It is a transaction pulled from the chain and decoded field by field (txid a490a911…41c439, a legacy spend that pays a native SegWit output):

INPUT 1  → public key 022100dac1171b72314f…

OUTPUT 1 → P2WPKH hash160 8764c872ae9f31c0463278b4d4386646cfca20da

The sender had to prove ownership, so their public key travelled with the transaction. The receiver only received a 20-byte hash. Nothing else about them is on chain.

From that public key, an elliptic-curve attacker has a well-defined problem: find the private key d such that d·G equals the point. From the hash, the attacker has a different problem: find any public key whose hash collides, then solve the same curve problem. The second problem is strictly harder, which is exactly why wallets hand out fresh addresses.

2. Five kinds of address, five exposure profiles

Output typeWhat is on chainPublic key visible
P2WPKH (bc1q…), never spent20-byte hashno
P2WPKH, spent at least oncehash + the spend’s public keyforever
P2PKH (1…), never spent20-byte hashno
P2PK (2010–2012 coins)the public key itselffrom birth
P2TR (bc1p…, Taproot)a 32-byte x-only public keyfrom birth

A Taproot output from a recent block, decoded the same way, contains a raw key: 5120 cc8768cb116a156a2f50e10a…. That is not a hash of a key; it is the key. It is the cleanest example of why “use a new address” is not the same advice for every address type.

!
For long-term storage, a fresh P2WPKH or P2PKH address is the conservative choice: the public key stays hidden until you spend, and if you never spend, it never leaks.

3. What a quantum computer changes — and what it needs

Shor’s algorithm solves the elliptic-curve discrete logarithm in polynomial time. It needs the public key as input. This single sentence decides everything about who is exposed.

The resource estimates changed materially in March 2026. A paper by researchers at Google Quantum AI, the Ethereum Foundation and Stanford (Babbush, Zalcman, Gidney, Drake, Boneh and others) compiled Shor’s algorithm specifically for secp256k1:

ResourceEstimate (March 2026)
Logical qubits≤ 1,200 (with ≤ 90M Toffoli) or ≤ 1,450 (≤ 70M Toffoli)
Physical qubits, superconducting, 10-3 error rate< 500,000
Wall-clock time for one keya few minutes
Improvement over previous published estimates≈ 20× fewer physical qubits

For scale, Google’s Willow chip has 105 physical qubits. The gap is roughly 4,800×, or about twelve doublings. Expert polling in 2025 put a cryptographically relevant machine at 28–49% probability within ten years and 51–70% within fifteen — the most optimistic reading in seven years of that survey.

The response is already scheduled: Google set 2029 for its own migration to post-quantum cryptography, Ethereum targets a post-quantum design in the same window, and Bitcoin’s BIP-360 (pay-to-merkle-root, removing the key-path spend) is still a draft.

i
The practical consequence is a race at migration time, not a slow erosion. Coins in exposed addresses have to move before the machine exists; moving them afterwards is a transaction that can be front-run in the mempool.

4. Four rules that hold today

  1. A fresh address for every receive. Every wallet since BIP-32 does this by default; the failure mode is copy-pasting an old one.
  2. Never spend from storage to “test it”. That single test publishes the key that guards everything left behind.
  3. Empty an address completely when you rotate. Change left behind stays under the published key.
  4. Prefer non-Taproot outputs for cold storage until post-quantum signatures are available — not because Taproot is weak, but because it publishes a key on creation.

None of this requires trusting this site. Decode a transaction yourself with any block explorer; the input and output scripts are public.

5. Questions

“So my old address is compromised?”

Only in the quantum sense, and only if it has spent. Today, a published public key is not a practical risk. The reason to rotate is that the cost of rotating now is zero and the cost of rotating later is unknown.

“Does this make the wallet finder any more possible?”

No. Nothing on this page shortens the search described on the math page. It is a different attack on a different surface: keys you can already see, not keys you guess.

“Where can I check my own addresses?”

Any explorer. Look at whether the address has an outgoing transaction. If it does, its public key is somewhere in the chain, permanently.