The Problem Blockchain Solves

Before blockchain, digital record-keeping required a trusted central authority: a bank holds your balance, a company holds your data, a government maintains the register. Centralised records are efficient but create single points of failure — they can be hacked, corrupted, or manipulated by whoever controls them.
A blockchain is a distributed ledger: a record of transactions that is maintained simultaneously across thousands of independent computers (nodes), with no single point of control. Changes to the ledger require agreement from the network — making fraud or tampering extremely difficult.
The Block-and-Chain Structure

Photo by David Birozy on Unsplash
Transactions are grouped into blocks. Each block contains:
- A set of validated transactions
- A timestamp
- A cryptographic hash of the previous block
The hash of the previous block is the crucial element. A cryptographic hash is a fixed-length string generated from input data by a one-way function — changing any part of the input completely changes the hash. By including the previous block's hash, each new block mathematically chains to all prior history. Altering any historical transaction would change its block's hash, which would change all subsequent block hashes — making tampering immediately detectable.
Consensus Mechanisms

Photo by sidney zou on Unsplash
For a distributed network to agree on which transactions are valid and in what order, it needs a consensus mechanism:
Proof of Work (PoW): used by Bitcoin. Miners compete to solve a computationally expensive mathematical puzzle; the winner adds the next block and receives a block reward. The difficulty of the puzzle prevents a single actor from controlling the chain without owning 51% of the network's total computing power — extremely expensive on Bitcoin's network. PoW requires significant energy consumption.
Proof of Stake (PoS): used by Ethereum (since the 2022 "Merge") and many newer blockchains. Validators are chosen to create blocks based on the amount of cryptocurrency they "stake" (lock as collateral). If they validate fraudulent transactions, they lose their stake. PoS requires far less energy than PoW.
Immutability and Its Implications

Photo by Jennifer Grismer on Unsplash
Once a transaction is confirmed and buried under subsequent blocks, reversing it would require rewriting the entire chain from that point — computationally infeasible on large networks. This immutability is simultaneously a security feature and a usability challenge: there is no customer service for a misdirected transaction.