TeachMeBitcoin

Blockchain Immutability

From TeachMeBitcoin, the free encyclopedia ⏱️ 4 min read

Blockchain Immutability and History

One of the most powerful properties of Bitcoin is immutability. Immutability means that once a transaction is confirmed and written into the blockchain, it cannot be altered, deleted, or reversed by anyoneβ€”not even by a government, a court, or Satoshi Nakamoto.

But how is this achieved? There is no central physical vault, no lock, and no encryption key keeping the past safe. Instead, Bitcoin's immutability is thermodynamic, determined by the depth of a block and the mathematical decay of attack probabilities.


πŸ”οΈ Cumulative Difficulty: The Weight of History

Every 10 minutes, a new block is mined. Each new block acts as a cement layer poured on top of the older blocks.

If an attacker wants to alter a transaction in Block 800,000, they cannot just change that block's data. They must re-solve the Proof of Work puzzle for Block 800,000, and then re-solve the puzzles for Block 800,001, Block 800,002, and all subsequent blocks up to the present.

          Block Height                 Security Level
      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
      β”‚   Block 800,005   β”‚  ◄─── Active Tip (1 Confirmation - Light Security)
      β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
      β”‚   Block 800,004   β”‚  ◄─── 2 Confirmations
      β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
      β”‚   Block 800,003   β”‚  ◄─── 3 Confirmations
      β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
      β”‚   Block 800,002   β”‚  ◄─── 4 Confirmations
      β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
      β”‚   Block 800,001   β”‚  ◄─── 5 Confirmations
      β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
      β”‚   Block 800,000   β”‚  ◄─── 6 Confirmations (Buried - Mathematically Locked)
      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

The deeper a block is buried under new blocks, the more cumulative thermodynamic work protects it. To rewrite history, the attacker must expend more electrical energy than the rest of the entire global mining network combined has spent since that block was mined.


πŸ“‰ The Math of Block Depth: Section 11 of the Whitepaper

In Section 11 of the Bitcoin Whitepaper, Satoshi Nakamoto analyzed the mathematical probability of a double-spend attack succeeding based on Block Depth ($z$) and the attacker's share of network hashrate ($q$).

Satoshi modeled the attack as a Poisson Random Walk: * Let $p$ be the probability that an honest miner finds the next block ($p = 1 - q$). * Let $q$ be the probability that the attacker finds the next block. * Let $P(z)$ be the probability that the attacker can ever catch up from $z$ blocks behind.

If the attacker has less than 50% of the network power ($q < 0.5$), the probability of them catching up drops exponentially as the block depth ($z$) increases:

$$P(z) = \left( \frac{q}{p} \right)^z$$

Let's look at the actual probabilities when an attacker controls a substantial 10% of global hashrate ($q = 0.1$, $p = 0.9$):

As you can see, by the time a block is 6 confirmations deep, the probability of an attacker with 10% of global power successfully reversing it is virtually zero (less than 1 in 700,000).

If the attacker has 30% of the network hashrate ($q = 0.3$), the probability of catching up at $z=6$ is still only 1.3%, and drops to 0.0002% at $z=24$ confirmations (approx. 4 hours).


πŸ† The 6-Confirmation Rule: Why It Matters

Because of this exponential decay curve, the industry adopted 6 confirmations (approximately 1 hour of waiting time) as the golden standard for absolute payment finality:

β˜• 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!