This research paper examines a brute-force attack on P2PKH Bitcoin wallets. The key idea is that the secret key space is approximately N sec ≈ 2,256 , while the address space is approximately N addr ≈ 2,160 ; therefore, a single address corresponds to a huge number of different secret keys. If an attacker finds another key that yields the same address, then their public key is highly likely to differ from the legitimate owner’s public key. This allows the legitimate owner to present “proof” of the attack—a public key collision. The preprint estimates that the probability of a matching initial secret key is negligible: ε < 5.22 N addr /N sec < 7 10 −29 < 10 −28 . Two solutions are then proposed: modify the consensus rules by introducing a “proof-of-stake” transaction and a timeout for spending outputs, or create a rewarding smart contract that automatically signals a vulnerability. The paper connects these ideas to the quantum context: Grover’s algorithm provides a quadratic speedup for search, but does not turn today’s assessment into an experiment; Shor’s algorithm addresses a different problem—attacking ECDSA signatures with a known public key. The central thesis is that a brute-force attack can be simultaneously “successful” for the attacker and “failure” economically if the protocol can prove a collision and freeze the disputed funds.
brute-force Bitcoin P2PKH public key collision quantum search Grover Post quantum cryptography protocol security
Content
- Intrigue: How a successful attack can become proven and unprofitable
- Method: Selected questions, hypotheses, and refutation criteria
- The Mechanism: Bitcoin Addresses and Why Collisions Occur
- Attack: Brute Force and Speed Formula
- Proof: Probability ε and Limits of Applicability
- Protocol response: proof transaction and timeout
- Economics: Collision Reward and Its Limits
- Quantum Context: Grover, Shore, and a Fair Comparison
- Work Connections: From LBC and Grover to NIST PQC
- Practical value, risks and minimal demonstration
- Next Research Program
- Conclusion: New Test Question
- Sources
1. Intrigue: How a successful attack can become proven and unprofitable
Let’s imagine an attacker brute-forcing the private keys of Bitcoin wallets. If they find a key to an address containing funds, they publish the transaction and claim the money. Formally, the attack is successful. But in case 1904.06943, an unexpected twist is revealed: due to the huge “surplus” of private keys compared to addresses, the attacker almost certainly finds not the key held by the legitimate owner, but a different key that yields the same address. This means that two different public keys appear in the blockchain, hashing to the same address. This is evidence of a brute-force attack.
A nearly paradoxical situation arises: an attack can be technically successful but economically unsuccessful if the protocol is capable of recognizing such a collision and blocking the disputed funds. This is precisely the line of inquiry we explore. The question in this article is: can proof of a brute-force attack become not just a cryptanalytic fact, but a fully-fledged protocol signal, reducing the attacker’s motivation?
The second layer is quantum. Grover’s algorithm provides a quadratic speedup for unstructured search, which means it fundamentally changes the resource cost of brute-force search. But between “quantum search speeds up brute-force search” and “there is a working attack on Bitcoin today” lies a vast engineering gap: physical qubits, error correction, circuit depth, the cost of measurements and classical processing. This article shows how to avoid confusing these levels.
The main intrigue of the article is: “Can an attacker steal funds and still leave behind a nearly mathematically reliable proof that they used brute force—and can the protocol turn this proof into a freeze of the stolen funds?” The answer, within the preprint model, is yes, with probability close to one, under explicit assumptions and with significant caveats.
2. Method: selected questions, hypotheses and refutation criteria
This article is structured not as a retelling of the preprint, but as a research route through the “75 Questions” constructor. From the general framework, questions were selected about the problem, object, hypothesis, boundaries, mechanism, proofs, and limitations; from the cryptographic profile, questions were selected about the specific task, algorithm, resources, threat model, the distinction between QKD and post-quantum cryptography, and which statements are future risk assessments and which are current experiments.
| Constructor block | Selected numbers | Why are they needed? |
|---|---|---|
| Statement of the problem and intrigue | 1, 3, 4, 5, 6 | Define the problem, object, hypothesis being tested, boundaries and scientific significance. |
| Mechanism and clear explanation | 7, 10, 11 | Explain the addressing, collision, and assumptions of the model without substituting analogy. |
| Experiment and evidence | 43, 44, 48 | Separate proof, simulation and experiment; check reproducibility. |
| Cryptography and cryptanalysis | 49, 50, 51, 52, 54, 55, 56 | Separate hash search from signature attack, evaluate resources and migration. |
| Practical value | 63, 64, 65 | Understand who needs the result, what is considered a minimum demonstration and what the price is. |
| Future and Synthesis | 69, 70, 72 | Formulate open questions, next experiments, and the robustness of the findings. |
Hypotheses
- H1 — Provability. If a brute-force attack is successful and the attacker finds another secret key for the same P2PKH address, then the legitimate owner can, with probability greater than 1 − 10 −28, produce an alternative public key as evidence of the attack—under the assumptions of uniform key selection and a random oracle model for RIPEMD-160(SHA-256(·)).
- H2 — protocol-based incentive reduction. A proof-of-stake transaction plus a timeout on spending outputs can freeze disputed funds and make an attack economically less attractive, but it does not prevent the attack itself or solve the problem of distinguishing between the legitimate owner and the attacker.
- H3 is a reward signaling function. A special smart contract that pays a reward for collisions can generate an automatic vulnerability signal, but is subject to strategic behavior and does not replace consensus protection.
- H4 is a quantum estimate, not a demonstration. Grover’s algorithm changes the resource estimation of search, but current claims about the quantum threat to Bitcoin remain estimates of future risk; they do not confirm the existence of a feasible attack today.
Refutation criteria
- H1 is refuted if, in a realistic key distribution model, the probability of a shared key being matched is not small or if a public key collision cannot be unambiguously interpreted.
- H2 is refuted if timeout and freezing do more harm than good, or if the attacker gets around them without significant cost.
- H3 is refuted if the reward incentivizes the attacker more than it deters him, or if the contract cannot be securely implemented in Bitcoin Script.
- H4 is refuted if there is a reproducible quantum demonstration that changes practical estimates, not just a theoretical scheme.
3. Mechanism: Bitcoin addresses and why collisions occur
The preprint considers only P2PKH transactions. The secret key is a 256-bit string; almost every such string corresponds to a valid ECDSA key. The public key is calculated from the secret key, then compressed to 268 bits, passed through SHA-256 and RIPEMD-160, after which overhead bytes and a checksum are appended to the 160-bit hash. The final address is approximately 200 bits long, but the effective address space is 160 bits.
Key inequality: N sec ≈ 2 256 ≈ 1.16·10 77 ; N addr ≈ 2 160 ≈ 1.46·10 48 ; N sec /N addr ≈ 2 96 ≈ 7.9·10 28 .
In other words, there are, on average, about 1029 different private keys per address . This isn’t a bug in Bitcoin: hashing intentionally compresses the public key. But for our purposes, this means the address has a huge “cloud” of preimage keys. The legitimate owner chooses one of them randomly. An attacker, by trying the keys, is extremely likely to find another key from this cloud.
A minimal example without substitution by analogy
Let’s say there are 1,000 address boxes and 1,000,000 key balls. On average, 1,000 balls fall into each box. The owner puts one random ball into the box and knows its number. An attacker sorts through the balls and finds a ball that also falls into the box. The probability that it is the same ball is about 1/1,000. In Bitcoin, the ratio is even smaller: about 1/10 . Therefore, the attacker will almost always present a different public key.
Important: the collision here is not a “SHA-256 crack” in the sense of finding two arbitrary messages with the same hash. It’s a consequence of the ambiguity of the “secret key → public key → address” mapping and the fact that the attacker found a different preimage. The authors call an alternative public key that yields the same address evidence of the brute-force attack.
4. Attack: Brute-force attack and speed formula
The algorithm in the preprint is described as follows:
- Compile a list
AddrListof all Bitcoin addresses with a non-zero balance for the current UTXO set (within P2PKH). - Select a subset
SKListof the secret key space to test. - For each key, generate an address and check if it exists in
AddrList. If so, publish a transaction transferring funds to the attacker’s address.
Average speed of finding valid keys: R = (|AddrList| / N addr ) · R 0 ,
where is the speed of step 3. The multiplier is important: the attack is aimed not at a single user, but at all owners of funds; the more addresses in the list, the higher the probability of success per unit of brute force. This also explains why distributed projects like Large Bitcoin Collider (LBC) [7] are of interest as engineering background, although they themselves do not constitute proof of a quantum threat.R0|AddrList|
Model limitations. This preprint focuses on P2PKH and does not model all current Bitcoin output types, fees, mempool policy, transaction contention, or possible protocol changes. Therefore, the findings cannot be automatically generalized to any cryptocurrency or address type without further verification.
5. Proof: Probability ε and Limits of Applicability
Let N be a random number of secret keys yielding a fixed address. In the random oracle model , . The probability ε of finding the same secret key as the legitimate owner during an exhaustive search is upper-bound. The authors choose , use the binomial distribution estimate, and obtain for : ε < 5.22 · N addr /N sec < 7 · 10 −29 < 10 −28 .N ~ Bin(Nsec, 1/Naddr)n0 = k·Nsec/Naddrk = 0,36
Therefore, the legitimate owner is more likely to be able to produce an alternative public key. This is the quantitative core of H1.1 − 10−28
| Condition | What does it mean? | What happens if it is broken? |
|---|---|---|
| The owner’s secret key is uniformly random | No bias in key selection | The probability of a match may change; proof requires a separate model |
| RIPEMD-160(SHA-256(·)) behaves like a random oracle | Hash outputs are uniform and unpredictable | Structural weaknesses of the hash require a different analysis |
| The attacker found any preimage of the address | Not necessarily the original key | If the attacker has obtained the original key, there may not be a collision. |
| The attacker’s public key was revealed in the transaction. | P2PKH input contains the public key | For other types of outputs, the proof may be invisible. |
It’s important not to overestimate the result here. The estimate of 10−28 is a probability in the model, not a measured frequency in a real network. Furthermore, a collision proof shows that someone has found an alternative key, but it doesn’t establish the legal or network “guilt” of a specific person. The authors explicitly acknowledge the difficulty of distinguishing between a legitimate user and an attacker.
6. Protocol response: proof transaction and timeout
The preprint’s first proposal is to change Bitcoin’s consensus rules and introduce an “evidence transaction “—a transaction that references not the outputs, but the P2PKH inputs of suspicious transactions and contains an alternative public key that yields the same address. If such a transaction is entered into the blockchain, four operations are proposed:
- Consider suspicious all transactions that contain P2PKH inputs with a public key that collides with the key in the proof and that were published no earlier than the oldest block containing the suspicious transaction.
- Remove from UTXO all outputs of suspicious transactions and all outputs containing the disputed address.
- Return the UTXO outputs of transactions associated with the inputs of suspicious transactions if they do not contain the disputed address.
- Add a special output to the UTXO containing the sum of funds from all suspicious transaction inputs and fees; it can only be spent with a key corresponding to the public key from the suspicious transaction, but can only be transferred to the auxiliary address from the proof.
The purpose of the first three operations is to prevent harm to innocent funds. The purpose of the fourth is to freeze the disputed funds and give a “white hat” the opportunity to recover them by proving a vulnerability. To compensate miners, it is proposed to add a reward for including the evidence transaction: for example, the median value of the total fees for the last six blocks, added to the current block’s emission.
Time-out
To ensure proof has time to reach the blockchain before the stolen funds are spent, a timeout is proposed between the publication of a transaction and the spending of its outputs. Bitcoin already has a practice of waiting for approximately six confirmations; the authors are choosing the same level—six blocks. This isn’t a “free” measure: it changes the user experience and liquidity, but, according to the authors, shouldn’t significantly reduce network performance.
What’s truly new here is that the idea isn’t to “catch the attacker by IP,” but to turn a cryptographic collision into a verifiable protocol state. This is a rare example of cryptanalytic evidence becoming input into consensus rules.
Limitation. This approach is applicable specifically to brute-force attacks where a different key is found. If the attacker has obtained the original secret key (through theft, an insider, or other compromise), there may be no collision, and the evidence transaction will fail.
7. Economics: Collision Reward and Its Limits
The second option doesn’t require changing the consensus: create a Bitcoin output with a script that allows funds to be claimed by presenting two different public keys with the same address and a signature under one of them. The preprint provides an example of a scriptPubKey, which can be interpreted as meaning “the funds can be claimed by anyone who presents a pair of different public keys that yield the same address and a valid signature.” Such a contract can be created by any participant as a donation to a brute-force attack detection project.
This mechanism has three functions:
- Compensation. The victim may receive at least part of the funds.
- Signal. The mere fact of receiving a reward indicates to the network that the cryptography used or the computing resources of one of the participants have reached dangerous levels.
- Incentive to disclose. A “white hat” hacker may prefer a reward to theft.
But there’s also a strategic vulnerability: an attacker could add unfunded addresses to their list, even if their public key is already published on the blockchain. If funds are later deposited to such an address, they could steal them and claim the reward. Furthermore, Bitcoin Script isn’t Turing-complete, and its standard nature and mempool policy may limit complex designs. Therefore, H3 should be considered proof-of-concept, not ready for production implementation without a separate audit.
8. Quantum Context: Grover, Shor, and a Fair Comparison
Quantum computing is important for this topic, but it can’t be reduced to the simple phrase “a quantum computer will hack Bitcoin.” At least three tasks need to be distinguished.
| Task | Quantum algorithm | What does it give? | What it doesn’t prove |
|---|---|---|---|
| Address preimage search / key enumeration | Grover’s algorithm [5] | Quadratic speedup of unstructured search: instead of ~N operations of order √N | Doesn’t allow for today’s practical attack; requires physical qubits, error correction, and a huge number of launches |
| ECDSA signature attack with known public key | Shor’s algorithm | A polynomial-time algorithm for the discrete logarithm on an elliptic curve | Not directly related to P2PKH until the public key is revealed; requires a different resource model |
| Inversion of a cryptographic hash | Grover | Quadratic search speedup | Does not imply a collision attack on SHA-256 or RIPEMD-160 in the sense of searching for two messages |
The preprint mentions the quantum context through work [5] and a discussion of Bitcoin security [6]. While classical brute-force search of a single address requires order of checks, in Grover’s idealized model, searching for any preimage of a single address can be expected to require order of quantum queries. For a list of addresses, the estimate can decrease by as much as . These are still astronomical resources, and even more so when accounting for error correction. Furthermore, searching for the original key, rather than any preimage, requires a different estimate: on the order of . Therefore, in this article, we document not a “hack,” but a shift in the resource estimate .Naddr ≈ 2160√Naddr ≈ 280L√(Naddr/L)2128
Differences between QKD and post-quantum cryptography. Quantum key distribution (QKD) solves the problem of distributing a symmetric key over a quantum channel and requires a trusted infrastructure. Post-quantum cryptography (PQC) uses classical algorithms that are resistant to quantum attacks. For Bitcoin wallets and signatures, the migration to PQC signatures is of practical interest, rather than QKD as a replacement for blockchain signatures. In August 2024, NIST approved FIPS 203, 204, and 205 [13]; practical migration is being considered in the NCCoE project [14].
This leads to an important point for the reader: a quantum threat is not a single “quantum hack” but a long transition that requires changing algorithms, key formats, wallets, libraries, and procedures. A brute-force attack on addresses is a separate issue, which can be an early indicator that cryptographic mechanisms are not working as intended.
9. Work Connections: From LBC and Grover to NIST PQC
To ensure that the article is not a simple retelling, we will link several lines from the preprint and the constructor into a coherent study.
- Large Bitcoin Collider [7]. Distributed classical brute force demonstrates engineering interest in key discovery. This is not a quantum experiment, but it provides important background: the community is already considering brute force as a practical computational problem.
- Grover [5]. Provides theoretical quadratic speedup of search. It is a bridge from classical enumeration to quantum resource estimation.
- Aggarwal et al. [6] examine quantum attacks on Bitcoin and their defenses. This connects hash search to the broader threat landscape.
- Fedorov, Kiktenko, Lvovsky [4] raise the question of the risks of quantum computers for blockchain in general.
- NIST FIPS 203/204/205 [13] and NCCoE [14] demonstrate that post-quantum migration has already become an engineering and standards program, not just a prediction.
Synthesis: Preprint 1904.06943 provides a mechanism for detecting one specific attack; the quantum lineage provides a reason to monitor resource estimates ; and the PQC standards provide a migration path . Together, they form a research framework: “how to ensure that a successful attack leaves an auditable trace and that the transition to post-quantum mechanisms is measurable rather than declarative.”
What is evidence here and what is an assessment?
| Statement | Type | Comment |
|---|---|---|
| The probability of matching the original key is ε < 10 −28 | Mathematical evaluation in the model | Relies on the uniformity of keys and the random oracle assumption |
| A public key collision can be presented as evidence | Logical inference from the model | Requires the attacker’s public key to be revealed in the P2PKH input |
| Evidence transaction will freeze funds | Protocol proposal | Requires consensus change and careful analysis of side effects |
| Smart contracts will reward conflicts | Engineering idea | Bitcoin Script audit and strategic behavior analysis needed |
| Grover speeds up the search | Theoretical assessment | This is not an experimental demonstration of an attack on Bitcoin. |
| PQC migration required | Standardization and engineering program | NIST-validated, but timeframes and costs vary by system. |
10. Practical value, risks and minimum demonstration
Who benefits from this outcome? Cryptocurrency protocol developers, wallet auditors, cryptanalysis researchers, exchange and custody service operators, and communities seeking early warning of vulnerabilities. Benefit is measured not by “sensation,” but by three metrics: (1) the probability of detecting an attack in a model; (2) the cost of false positives and freezes; (3) the time and resources required to respond.
Minimal demonstration
Testnet simulation: generate a P2PKH address, find an alternative key in a reduced-size model of the space, publish the evidence transaction, verify output freezing and the return of uninvolved funds. Separately, a six-block timeout cost model is simulated.
The main obstacles
Changing Bitcoin consensus requires broad agreement; complex scripts are limited by standardization; timeouts alter liquidity; proof of concept does not distinguish between white-hat and black-hat hackers; quantum valuations are not an experiment today.
Risks and dual use
- Risk of misinterpretation. A collision proves overkill, but not necessarily theft by a specific individual.
- Risk of freezing. Widespread use of evidence transactions may affect legitimate transactions if the rules are not clearly defined.
- Incentive risk. A collision reward may encourage rather than deter an attacker.
- The risk of premature conclusions about quantum mechanics. Theoretical acceleration cannot be misinterpreted as a practical attack.
What isn’t supported by data? The article doesn’t claim that the evidence transaction has already been implemented, that the smart contract is ready for mainnet, or that a quantum computer can currently perform the described attack. It’s an analysis of the preprint and the verification program.
11. Next Research Program
To turn ideas into testable research, five steps are suggested.
- Formal model. Specify the key distribution, random oracle model, and scenarios in which an attacker obtains the initial key. Estimate the probability of proof failure.
- Protocol simulation. Implement a scaled-down version of addressing and evidence transactions on a test network; measure false positives, latency, and cost.
- Bitcoin Script Audit. To verify which reward structures are truly standard and secure; to assess the attacker’s strategic behavior.
- Resource quantum evaluation. Compare classical and Groverian search under the same assumptions; separately evaluate the Shor attack on ECDSA with a revealed public key.
- Pilot with metrics. Determine the minimum demonstration that will convince developers: detection probability, cost, response time, and absence of unacceptable side effects.
Optimistic and conservative scenarios
| Scenario | What’s happening | Conclusion |
|---|---|---|
| Optimistic | The community accepts the evidence transaction; a six-block timeout is acceptable; the reward creates an early signal; PQC migration accelerates | The economic incentive for brute force is reduced and detection becomes part of the protocol |
| Conservative | Consensus changes are not accepted; complex scripts are limited; quantum estimates remain theoretical | The ideas remain exploratory, but are useful as audit and signal analytics. |
Measurable milestones without a promised date: published threat model; reproducible simulation; script audit; resource comparison; independent verification of results. This is better than predicting “quantum hack in such-and-such year.”
12. Conclusion: New Test Question
Preprint 1904.06943 demonstrates a subtle yet subtle effect: due to the mismatch between the keyspace and address sizes, a successful brute-force attack leaves a cryptographic proof with a high probability. This proof could be turned into a protocol mechanism: freezing disputed funds, returning uninvolved ones, and reducing attacker incentives. However, challenges remain: distinguishing between participants, modifying consensus, limitations of Bitcoin Script, and strategic incentives.
The quantum lineage doesn’t add a “ready-made hack,” but a resource framework: Grover’s algorithm modifies the search score, Shor’s algorithm applies to signatures with a known public key, and PQC standards define the migration direction. The honest conclusion: current statements about the quantum threat to Bitcoin are estimates of future risk, not experimental demonstrations.
The new test question that follows from this comparison is: “What minimal protocol changes make a brute-force attack proof simultaneously verifiable, economically significant, and without creating unacceptable incentives for the attacker?” This is precisely what the next work—with a model, simulation, audit, and independent replay—should address.
A practical takeaway for the reader: If you’re developing a wallet or protocol, don’t just ask, “Will a quantum computer break Bitcoin tomorrow?” Ask, “Will the attack leave a verifiable trace? Can we distinguish a collision from a key theft? How much does a response cost? And does our defense create a new incentive for attack?” These questions are useful today—regardless of the timing of quantum progress.
Sources
- Kiktenko EO, Kudinov MA, Fedorov AK Detecting brute-force attacks on cryptocurrency wallets. arXiv:1904.06943v2. Main preprint analyzed: attack description, ε estimation, evidence transaction, timeout, smart contract.
- Swan M. Blockchain: Blueprint for a New Economy. O’Reilly Media, 2015. [Cited in preprint as [1].]
- White JH The blockchain: A gentle four page introduction. arXiv:1612.06244. [Preprint, [2].]
- Bernstein DJ, Lange T. Post-quantum cryptography. Nature 549, 188–194 (2017). [Preprint, [3].]
- Fedorov AK, Kiktenko EO, Lvovsky AI. Quantum computers put blockchain security at risk. Nature 563, 465–467 (2018). [Preprint, [4].]
- Grover LK A fast quantum mechanical algorithm for database search. Proceedings of STOC 1996, p. 212. [Preprint, [5].]
- Aggarwal D., Brennen GK, Lee T., Santha M., Tomamichel M. Quantum attacks on Bitcoin, and how to protect against them. Ledger 3, 68–90 (2018). [Preprint, [6].]
- Large Bitcoin Collider. https://lbc.cryptoguru.org/. [Preprint, [7].]
- Vanstone S. Responses to NIST Proposal. Communications of the ACM 35, 50–52 (1992). [Preprint, [8].]
- Secp256k1 standard for ECDSA. https://en.bitcoin.it/wiki/Secp256k1. [Preprint, [9].]
- Base58Check encoding description. https://en.bitcoin.it/wiki/Base58Check_encoding. [Preprint, [10].]
- Koblitz N., Menezes AJ The random oracle model: a twenty-year retrospective. Des. Codes Cryptogr. 77, 587–610 (2015). [Preprint, [11].]
- Feller W. An Introduction to Probability Theory and Its Applications. Vol. 1, 3rd edn. Wiley, 1968. [Preprint, [12].]
- National Quantum Initiative: Quantum Science Directions. https://www.quantum.gov/national-quantum-initiative/. [Constructor context.]
- NIST: FIPS 203, 204, 205 Approval, August 13, 2024. https://csrc.nist.gov/news/2024/postquantum-cryptography-fips-approved. [PQC Context.]
- NIST NCCoE: Migration to Post-Quantum Cryptography. https://www.nccoe.nist.gov/applied-cryptography/migration-to-pqc. [Migration context.]
Citation note: Numbers [1]–[12] correspond to the preprint’s bibliography; [13]–[15] have been added from the HTML constructor provided for context on quantum research and post-quantum migration. The wording in this article is the author’s interpretation and does not represent the official position of NIST, the preprint authors, or the Bitcoin community.
Pre-publication review
- Observations, mathematical estimates, protocol proposals and forecasts are separated.
- Every significant statement has a source or is clearly marked as an interpretation.
- Physical and logical qubits are not mixed; Grover’s theoretical estimate is not presented as an experiment.
- There is no claim that evidence transaction has been implemented or that the smart contract is ready for mainnet.
- The limitations of P2PKH, the random oracle model, and the timeout are explicitly stated.
- The reader understands what new information the article provides and what experiment can be used to test it.
