Skip to main content
Module 18 · Crypto — Deep Dive

What Is a Blockchain

6 min readYou'll be able to Explain how a blockchain records ownership without a central bookkeeper, why past entries are hard to change, and what "confirmations" and "finality" mean for the money you send.

A blockchain is a shared, append-only ledger that thousands of independent computers keep in sync, where transactions are grouped into blocks and each block is cryptographically linked to the one before it. Nobody owns the master copy: the network agrees on the next block through a consensus rule such as proof of work or proof of stake. Because every block commits to the entire history behind it, rewriting an old entry means redoing all the work, or forfeiting all the stake, that came after it.

What Is a Blockchain
Quick demo

A toy three-block chain (hypothetical). Alice starts with 10 coins and Bob with 0.

  • Block 1 records "Alice pays Bob 4". Its fingerprint (hash) is computed from its contents: say a91f….
  • Block 2 records "Bob pays Carol 1" and includes a91f… as its "previous hash". Its own hash becomes 7c02….
  • Block 3 records "Alice pays Dan 2", includes 7c02…, and hashes to e5b8….

Balances: Alice 10 − 4 − 2 = 4, Bob 4 − 1 = 3, Carol 1, Dan 2. Total still 10: a ledger only moves coins, it never creates them outside the issuance rule.

Now suppose Bob edits Block 1 to read "Alice pays Bob 9". Block 1's hash changes completely, so Block 2's "previous hash" no longer matches, which invalidates Block 2, and therefore Block 3. To make his edit stick, Bob would have to rebuild Blocks 1, 2 and 3 and outpace the honest network that keeps adding Block 4, 5, 6 on top of the real history. On a large proof-of-work chain that means controlling more computing power than everyone else combined.

~10 min
Bitcoin target block interval
Actual gaps vary randomly around the target
2,016 blocks
Bitcoin difficulty retarget
Roughly every two weeks
12 s
Ethereum slot time
Since the move to proof of stake in Sept 2022
6 blocks
Classic Bitcoin "safe" rule of thumb
About an hour on average; a convention, not a guarantee

The problem a blockchain solves

Digital information can be copied for free. If money is just a file, what stops someone from spending the same file twice? Banks solve this "double-spend problem" with a trusted central ledger. A blockchain solves it without a trusted party: everyone holds a copy of the ledger, and a public rule decides which version of history is valid. Bitcoin, described in a whitepaper published in October 2008 and launched in January 2009, was the first system to make this work at scale.

Hashes: the fingerprint that links blocks

A cryptographic hash function (Bitcoin uses SHA-256) turns any input into a fixed-length output. Change one character of the input and the output changes unpredictably. It is easy to compute a hash and practically impossible to find an input that produces a chosen hash. Each block header stores the hash of the previous header and a Merkle root: a single hash that summarises every transaction in the block. Changing any transaction changes the Merkle root, which changes the block hash, which breaks the link to the next block. That chain of fingerprints is the "chain" in blockchain.

Consensus: who writes the next page

  • Proof of work (PoW). Miners repeatedly hash the block header with different values until the result falls below a difficulty target. Finding a valid hash costs real electricity and hardware; checking it takes a single hash. Bitcoin adjusts difficulty every 2,016 blocks to keep the average interval near 10 minutes. The valid chain is the one with the most accumulated work.
  • Proof of stake (PoS). Validators lock up the native coin as collateral. A validator is chosen to propose a block, others attest to it, and provable misbehaviour (such as signing two conflicting blocks) is punished by slashing part of the stake. Ethereum switched from PoW to PoS in the Merge in September 2022.

Both approaches make an attack expensive: PoW in energy and hardware, PoS in capital that can be destroyed.

Nodes, miners and validators

A full node downloads and independently verifies every block against the rules: signatures, balances, block size, issuance. Miners and validators propose blocks, but nodes enforce the rules. If a miner produced a block that printed extra coins, every honest node would reject it. That is why "51% of hash power" lets an attacker reorder or censor recent transactions but does not let them steal coins out of arbitrary wallets or change the supply rule.

Confirmations and finality

A transaction in the newest block has one confirmation; each block added on top adds one more. Occasionally two miners find blocks at almost the same time, the chain briefly forks, and the shorter branch is abandoned. Transactions in the abandoned block go back to the waiting pool. That is why exchanges wait for several confirmations before crediting a deposit.

In proof-of-work chains finality is probabilistic: every extra block makes reversal exponentially less likely, but never strictly impossible. Many PoS chains add economic finality: once a checkpoint is finalised, reversing it would require destroying a large share of all staked coins. Ethereum checkpoints typically finalise after two epochs, roughly 13 minutes.

UTXO versus account models

Bitcoin tracks unspent transaction outputs (UTXOs): your balance is the sum of coin "pieces" your keys can spend, and a payment consumes whole pieces and returns change to you. Ethereum uses an account model: each address has a balance and, for smart contracts, stored code and data. The UTXO model makes parallel verification and privacy hygiene easier; the account model makes programmable applications simpler. This difference matters later for fees (Bitcoin fees scale with transaction size in bytes, Ethereum fees with computation in gas) and for on-chain analysis.

The trade-offs nobody escapes

Public blockchains trade speed and cost for openness and censorship resistance. Every full node repeats the same work, so throughput is limited. Larger blocks or faster block times raise capacity but make nodes more expensive to run, which tends to concentrate control. This tension, often called the scalability trilemma (decentralisation, security, scalability), explains why "layer 2" networks and rollups exist: they process transactions elsewhere and post compressed proofs or data back to the base chain.

What a blockchain does not do

A blockchain guarantees that the ledger follows its rules. It does not guarantee that a token has value, that a project's team is honest, that data entered on-chain is true, or that your keys are safe. "It's on the blockchain" is a statement about record-keeping, not about quality. Most losses traders suffer in crypto come from layers above the ledger: exchanges, smart contracts, bridges and phishing.

Common mistakes

  • Treating one confirmation as final for a large transfer.
  • Confusing the token with the chain. A token on Ethereum inherits Ethereum's security, but its contract can still have its own bugs or admin keys.
  • Assuming "decentralised" is binary. Count the validators, the client software diversity and who can upgrade the rules.
  • Believing immutability protects you from mistakes. A payment to the wrong address is just as irreversible as a theft.
Check yourself

1. Why does changing an old Bitcoin transaction invalidate every later block?

2. An attacker controls most of a proof-of-work chain's hash power. What can they NOT do?

3. Bitcoin targets 10-minute blocks. Roughly how long do six confirmations take on average?

4. In proof of stake, what makes misbehaviour costly?