What is a blockchain?
A beginner's guide to the technology behind Bitcoin, Ethereum and most of the crypto world, with no technical background needed.
The problem blockchains solve
Imagine sending a digital photo to a friend. You don't actually give them the photo. You send a copy, and you still have the original. That's fine for photos, but it's a big problem for money. If digital money could be copied, people could spend the same coin twice.
Traditionally, banks solve this "double-spending" problem. They keep a private record (a ledger) of who owns what. When you pay someone, the bank takes the amount off your balance and adds it to theirs. Everyone has to trust the bank to keep that record honestly and accurately.
A blockchain solves the same problem in a different way. Instead of one organization keeping the ledger, thousands of independent computers each keep a copy and follow shared rules to agree on what's in it.
The shared notebook analogy
Picture a notebook that thousands of people hold identical copies of:
- Each page is a block, and it lists a batch of transactions, such as "Alice sends 1 coin to Bob".
- When a page is full, the group checks that every transaction on it is valid. For example, they check that Alice actually had the coin to send.
- Once the group agrees, everyone adds the page to their copy. Pages are never torn out or rewritten. New pages are only added to the end.
Because everyone has the same notebook, nobody can quietly change their copy. It wouldn't match anyone else's.
How blocks are chained together
The "chain" in blockchain comes from a piece of cryptography called a hash. A hash function takes any data and produces a short, fixed-length "fingerprint" of it. Two properties matter:
- The same data always produces the same fingerprint.
- Changing even one character of the data produces a completely different fingerprint.
Every block stores the fingerprint of the block before it:
Prev hash: 0000
Hash: 8f3a…
Prev hash: 8f3a…
Hash: c71e…
Prev hash: c71e…
Hash: 2b9d…
Now suppose someone edits a transaction in Block 1. Its fingerprint changes, so it no longer matches the "previous hash" stored in Block 2. That breaks Block 2's fingerprint, which breaks Block 3, and so on. A single edit breaks every block after it, so tampering is easy to spot.
How the network agrees: consensus
With no central authority, the network needs a fair way to decide who adds the next block. This is called a consensus mechanism. The two most common are:
- Proof of Work (used by Bitcoin): computers called miners compete to solve a hard mathematical puzzle. The winner adds the next block. Rewriting history would mean redoing all that work faster than the rest of the network combined, which is extremely expensive.
- Proof of Stake (used by Ethereum): participants called validators lock up some of their own coins as a deposit. They're chosen to propose and confirm blocks, and they can lose part of their deposit if they act dishonestly.
Both approaches make cheating cost more than it could gain. Consensus is one of the advanced topics in our curriculum.
Key properties of public blockchains
- Decentralized: no single company, government or person controls the ledger.
- Transparent: anyone can view the full transaction history using a tool called a block explorer.
- Tamper-resistant: once a transaction is confirmed by many later blocks, reversing it is practically impossible.
- Open: anyone with an internet connection can use the network without asking permission.
What blockchains are not good at
Blockchains involve real trade-offs, and it's important to understand them:
- Speed and cost: keeping thousands of copies in sync is slower and often more expensive than a regular database.
- Mistakes are permanent: if you send funds to the wrong address, there's usually no bank to reverse it.
- Privacy: transparency means transactions are public. Addresses don't show names, but they can often be linked to people.
- Garbage in, garbage out: a blockchain guarantees the record hasn't been changed, not that the information was true when it was entered.
- A blockchain is a shared ledger that many independent computers keep at once.
- Each block contains the hash of the previous block, so changes to history are easy to detect.
- Consensus mechanisms like Proof of Work and Proof of Stake let the network agree without a central authority.
- The design trades speed and reversibility for openness and tamper-resistance.
Check your understanding
1. What is the "double-spending" problem?
Digital data can be copied, so without a trusted record someone could spend the same digital coin more than once. Blockchains prevent this by keeping one shared ledger that everyone agrees on.
2. Why does changing an old block break the chain?
Each block stores the hash (fingerprint) of the previous block. Editing a block changes its hash, so it no longer matches what the next block has stored, and every block after it becomes invalid.
3. If you send crypto to the wrong address, can the network reverse it?
Usually not. Confirmed transactions are designed to be permanent, so always double-check addresses before sending.
Keep learning
Educational content only. This lesson explains how a technology works. It isn't financial, investment or legal advice. Cryptocurrencies are volatile and risky. Always do your own research.