[Paper Review] Analysis of Hashrate-Based Double Spending
This paper provides a rigorous probabilistic analysis of double-spending attacks in Bitcoin, modeling the success probability based on attacker hashrate and number of confirmations. It derives a formula for the maximum safe transaction value before economic feasibility of attack, showing that security depends logarithmically on confirmations and exponentially on attacker hashrate, debunking myths about fixed confirmation counts or time-based security.
Bitcoin is the world's first decentralized digital currency. Its main technical innovation is the use of a blockchain and hash-based proof of work to synchronize transactions and prevent double-spending the currency. While the qualitative nature of this system is well understood, there is widespread confusion about its quantitative aspects and how they relate to attack vectors and their countermeasures. In this paper we take a look at the stochastic processes underlying typical attacks and their resulting probabilities of success.
Motivation & Objective
- To clarify the quantitative security properties of Bitcoin's proof-of-work mechanism against double-spending attacks.
- To model the probability of a successful double-spend based on attacker hashrate and number of confirmations.
- To determine the economic threshold at which double-spending becomes feasible, informing merchant risk assessment.
- To dispel common misconceptions about the security provided by a fixed number of confirmations or time duration.
Proposed method
- Models the double-spending attack as a gambler's ruin problem, where the attacker tries to build a longer chain than the honest network.
- Uses a random walk framework to compute the probability that an attacker can overtake a chain with n confirmations.
- Derives the success probability as a function of attacker hashrate q and number of confirmations n, using the formula P = (q/(1-q))^(n+1) for q < 0.5.
- Introduces an economic model to determine the maximum transaction value v that remains safe from attack, based on the attacker's cost and expected gain.
- Applies the model to compute safe transaction values across different hashrate levels and confirmation counts, producing Table 2.
- Considers the impact of mining cost and attacker incentives, showing that cost-based models lead to linear (not logarithmic) confirmation requirements, which is insecure.
Experimental results
Research questions
- RQ1What is the mathematical probability that an attacker with a given hashrate can successfully double-spend a transaction after n confirmations?
- RQ2How does the number of confirmations affect the economic feasibility of a double-spending attack?
- RQ3What is the maximum transaction value that remains secure against an attacker with a given hashrate?
- RQ4Why is the number of confirmations more important than the time elapsed for security?
- RQ5Under what conditions does a double-spending attack become economically rational for an attacker?
Key findings
- The probability of a successful double-spend decreases exponentially with the number of confirmations, especially when the attacker hashrate is low.
- For an attacker with 10% hashrate, a transaction value of up to 4,361 BTC is safe after 10 confirmations.
- At 20% hashrate, the maximum safe value drops to 31,000 BTC after 10 confirmations, showing rapid degradation in security.
- When the attacker hashrate exceeds 50%, the success probability approaches 1 regardless of confirmations, making the system insecure.
- The model shows that waiting longer in time does not improve security—only the number of confirmations matters.
- The paper concludes that 6 confirmations do not guarantee absolute security, and that security scales logarithmically with transaction value, not linearly.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.