Foundations · Blockchain
What Is a Blockchain?
A blockchain is a shared ledger in which records are grouped into blocks, each block is linked to the one before it by a cryptographic hash, and many independent computers hold a copy.
What is a blockchain?
0:58 · captioned1/4A ledger in linked blocks
- Each block carries the hash of the previous one
2/4Many computers, one record
- One agreed record, no single party in charge
3/4What immutable really means
- Costly and visible, not impossible
4/4What it does not do
- Preserved is not the same as true
What a blockchain is, how hashes link its blocks, why many computers keep the same copy, and what it cannot do.
Transcript
- A ledger in linked blocks
- A blockchain is a ledger: a running record of entries, most often transfers of value.
- Records are grouped into blocks, and every block contains the hash of the block before it.
- A hash is a short digital fingerprint. Change the data, and the fingerprint changes.
- Many computers, one record
- Independent computers called nodes each store a copy and check every new block against the rules.
- So strangers can agree on one record, with no single party in charge.
- What immutable really means
- Beginners often hear that a blockchain cannot be changed.
- More precisely, changing history is costly and visible.
- Alter one old block and its hash changes, so the link to every later block breaks.
- What it does not do
- A blockchain does not make data true. It preserves what was entered, and false information stays false.
- It is also slower and costlier than an ordinary database, and mistakes are generally permanent.
Educational explainer with hypothetical data. Not financial advice.
Why it matters
Every cryptocurrency, token and decentralised application rests on a blockchain. The word is used so loosely that it can seem to mean anything. In fact it names a specific and fairly simple data structure, combined with a way for strangers to agree on its contents. Once that is clear, the rest of crypto has something to stand on.
This is the start-here page for the Blockchain shelf.
How it works
- Block 100Transactions + fingerprint of block 99
- Block 101Transactions + fingerprint of block 100
- Block 102Transactions + fingerprint of block 101
A blockchain is a ledger: a running record of entries, most often transfers of value. Three features set it apart from an ordinary ledger.
Records are grouped into blocks. Transactions are collected into batches. Each batch, with some summary information, is a block.
Blocks are chained by hashes. Every block contains the hash of the block before it. A hash is a short digital fingerprint of data, and any change to the data produces a different fingerprint. So each block seals the one before it, which seals the one before that, back to the first block. The details are in blocks and hashes.
Many computers hold the same copy. The ledger is not kept in one place. Independent computers called nodes each store it, check every new block against the rules, and reject anything invalid.
In plain words
Imagine a village that records every sale of land in a book. Each household keeps its own identical copy. Every new page begins with a stamp made from the full contents of the previous page. To forge an old sale, a cheat would have to rewrite that page, redo the stamp on every page after it, and then swap the book in most households at once, without anyone noticing.
What problem it solves
Digital information is easy to copy. For music that is an annoyance. For money it is fatal: if a digital coin is only a file, it can be spent twice. This is the double-spend problem.
The traditional answer is a trusted record-keeper, such as a bank, that holds the only ledger and decides which payment counts. A blockchain is a different answer. It lets a group of participants who do not know or trust each other maintain one agreed ledger, with no single party in charge. The process by which they reach agreement is called consensus.
The design was first put into practice by Bitcoin, following the paper described in the Bitcoin white paper.
How it compares with a database
| Aspect | Ordinary database | Public blockchain |
|---|---|---|
| Who holds it | One organisation | Many independent computers |
| Who can write | Whoever the owner allows | Anyone who follows the rules and pays the fee |
| Editing old records | Possible for an administrator | Impractical: every later block would have to be redone |
| Trust placed in | The owner | The rules and the spread of participants |
| Speed and cost | Fast and cheap | Slower and costlier by design |
A blockchain is a poor replacement for a database when one trusted party already exists. It stores less, costs more and runs more slowly, because every node repeats the same work. Its advantage appears only when no party is trusted to keep the record alone.
Going deeper
What “immutable” really means. Old blocks are not physically locked. Changing one would break the hash link to every later block, and the network would reject the altered copy unless the attacker could outweigh the honest participants. The older a block, the more work or stake lies on top of it and the harder a rewrite becomes. This idea is developed in finality and throughput.
What goes in a block. On Bitcoin, blocks hold transfers of bitcoin. On chains such as Ethereum, transactions can also run programs called smart contracts, so the ledger records the state of those programs as well as balances.
Public and private. Anyone can read, use and help run a public blockchain. Some organisations use restricted versions with known participants. The trade-offs are covered in public and private blockchains.
- Blocks and hashesWhat links the chain together.
- TransactionsWhat goes inside a block.
- NodesWho stores and checks it.
- ConsensusHow they agree on one history.
- Smart contractsPrograms that live on the chain.
Why tampering showsHypothetical illustration
A hypothetical chain has three blocks. For illustration, hashes are shortened to four characters.
- Block 1 has the hash A1F3.
- Block 2 records “previous hash: A1F3” and has the hash 7C09.
- Block 3 records “previous hash: 7C09” and has the hash E2B8.
Someone alters one payment inside Block 2. Its contents have changed, so its hash is no longer 7C09. Suppose it is now 51DD.
Block 3 still says “previous hash: 7C09”. The link is broken, and every node that checks it sees the mismatch at once. To hide the change, the attacker would need to rebuild Block 3 and every block after it, and then persuade the network to accept that version over the one it already holds.
What it does NOT mean
- A blockchain does not make data true. It preserves what was entered. False information recorded on a blockchain stays false.
- Immutable does not mean impossible to change. It means changing history is costly and visible, to a degree that depends on the network.
- Public does not mean anonymous. Most blockchains show every transaction to everyone, under addresses that can sometimes be linked to people.
- Decentralised does not mean equally spread. Mining power, stake and software development can each be concentrated.
- “On the blockchain” does not mean safe. Applications, wallets and people around the chain are where most losses happen.
Common misunderstandings
- Treating blockchain and Bitcoin as the same thing. Bitcoin is one blockchain. There are many, with different rules.
- Assuming all blockchains are equally secure. Security depends on how much work or stake protects the chain and how widely it is spread.
- Believing transactions can be undone. There is no administrator to reverse an entry.
Risks and limits
- Capacity is limited, and fees rise when demand exceeds it.
- Mistakes and thefts are generally permanent.
- Everything recorded is public on an open chain, and it stays public.
- The software can contain bugs, and upgrades need coordination among many parties.
- Small networks can be overpowered by an attacker with enough resources.
Key takeaway
A blockchain is a ledger kept by many computers at once, in which each block is sealed to the previous one by a hash. It lets strangers agree on a single record without a central keeper, at the cost of speed and efficiency.
Sources and further reading
- Bitcoin: A Peer-to-Peer Electronic Cash System (opens in a new tab), Satoshi Nakamoto (2008)
- Mastering Bitcoin, Andreas M. Antonopoulos. Chapters on the blockchain and the network
- Technical intro to Ethereum (opens in a new tab), ethereum.org. Describes a blockchain as a public database updated and shared across many computers in a network