TeachMeBitcoin

Probabilistic Finality: The Anchor Guide to Transaction Settlement

From TeachMeBitcoin, the free encyclopedia Reading time: 5 min

Probabilistic Finality: The Anchor Guide to Transaction Settlement

IMPORTANT

Executive Summary: Bitcoin does not have absolute "Instant" finality. Instead, it uses Probabilistic Finality, where the security of a transaction increases exponentially as it is buried under more blocks. As the "Most Work" chain grows, the mathematical probability of an attacker catching up from behind drops toward zero. This model is why the "6-Confirmation Rule" became the global standard for high-value settlement, ensuring that reversing a payment would require an astronomical and unprofitable amount of hash power.


🔍 Why This Module Matters

In a traditional bank, a wire transfer is "Final" when the bank says it is. In Bitcoin, there is no central judge. Finality is a Statistical Certainty. If you accept a payment too early (0 or 1 confirmation), you are gambling on the honesty of the sender. If you wait long enough, you can be mathematically certain that the transaction is permanent. This module will deconstruct the Poisson distribution of block discovery, the whitepaper math of the "Attacker's Race," and why 1 hour (6 blocks) is the "Magic Number" for global settlement.


🏛️ The Attacker's Race: Satoshi's Math

In Section 11 of the Bitcoin Whitepaper, Satoshi Nakamoto modeled the probability of an attacker successfully creating a heavier fork starting from a point in the past.

The Equation

If the honest network has hashrate $p$ and the attacker has $q$, and the attacker is $z$ blocks behind: $$P = \begin{cases} 1 & \text{if } p \le q \ (q/p)^z & \text{if } p > q \end{cases}$$


⚙️ The Risk Table: Probability of Reversal

How safe is your money? It depends on who is attacking you and how long you wait.

Confirmations ($z$) Attacker has 10% Power Attacker has 30% Power
0 (Mempool) High Risk (RBF/Double-Spend) High Risk
1 Block 20.4% 53.1%
3 Blocks 2.4% 24.6%
6 Blocks 0.06% 7.6%
10 Blocks 0.00% 1.3%

Note: 0.00% indicates a value so small it is negligible for practical use.


🛠️ The "6-Confirmation" Standard: Why 1 Hour?

The "6-block" rule is a balance between Security and Convenience.

  1. Defense Against Luck: Even a weak attacker (10%) can get lucky and find 2 blocks in a row. It is almost impossible for them to find 6 blocks in a row faster than the rest of the world.

  2. Economic Cost: By the time 6 blocks have passed, the energy expended by the honest network is so massive that an attacker would likely spend more on electricity than they could gain by reversing the transaction.

  3. Network Convergence: 6 blocks provide enough time for any natural forks (orphans) to be resolved globally.

graph TD
 A[Block 0: Your TX] --> B[Block 1]
 B --> C[Block 2]
 C --> D[Block 3]
 D --> E[Block 4]
 E --> F[Block 5]
 F --> G[Block 6: SECURE]

 H[Attacker] -.->|Tries to build alternate chain| B
 style G fill:#9f9,stroke:#333,stroke-width:2px
 style H fill:#f66,stroke:#333,stroke-width:2px

🛡️ Finality vs. Immortality: The 100-Block Rule

While 6 blocks is safe for most users, Bitcoin has an even stricter rule for miners: Coinbase Maturity.


🎯 Learning Objectives for this Module

By the end of this module, you will be able to:

  1. Define Probabilistic Finality and contrast it with absolute finality.

  2. Explain the mathematical relationship between hashrate and reversal probability.

  3. Calculate the risk of a double-spend based on confirmation depth.

  4. Justify the 6-confirmation rule for mid-to-high value transactions.

  5. Understand the necessity of the 100-block maturity rule for miners.


🗺️ Module Roadmap: What's Next?

Now that we've seen the "Statistical Shield," we will look at the database:

  1. The Block Tree: How nodes track every potential "Truth" in their memory.

  2. UTXO Rollback Mechanics: Deconstructing the "Undo" process of a reorg.

  3. Reorg Economics: Calculating the financial loss of a minority miner.

  4. Python Finality Simulator: Writing a script to run a Monte Carlo simulation of an attacker's race.


🎓 Summary

Finality in Bitcoin is a gradient, not a switch. Every new block added to the chain is another layer of armor protecting your transaction from history being rewritten. By mastering the math of probabilistic finality, you are understanding the fundamental reason why "Time" is the ultimate guardian of value on the Bitcoin network.

☕ Help support TeachMeBitcoin

TeachMeBitcoin is an ad-free, open-source educational repository curated by a passionate team of Bitcoin researchers and educators for public benefit. If you found our articles helpful, please consider supporting our hosting and ongoing content updates with a clean donation:

Ethereum: 0x578417C51783663D8A6A811B3544E1f779D39A85
Bitcoin: bc1q77k9e95rn669kpzyjr8ke9w95zhk7pa5s63qzz
Solana: 4ycT2ayqeMucixj3wS8Ay8Tq9NRDYRPKYbj3UGESyQ4J
Address copied to clipboard!