Lesson 1 of 9

What a blockchain is

Step 2 of 6

The idea

The problem it solves

Your bank keeps the ledger of your account, and you trust it not to cheat. Bitcoin's designer (writing as Satoshi Nakamoto) wanted digital money with no bank in the middle. Then who keeps the ledger, and who stops someone spending the same coin twice (the double-spend problem)?

The answer: everyone keeps a copy

  • A transaction is one entry: "move this amount from this owner to that owner".
  • A node is a computer running the network's software. Each node keeps its own full copy of the ledger and checks every new transaction against the rules (for example: you can't spend coins you don't have).
  • Transactions are grouped into a block, a page of the ledger. Bitcoin adds a new block about every 10 minutes.
  • The pages are linked in order, each one pointing back to the one before. That chain of blocks is the blockchain.
  • A block's height is its position in the chain. The first block (2009) is height 0.

The glue: hashes

A hash is a short fingerprint of some data, made by a fixed math recipe. Two properties matter:

  1. The same data always gives the same hash.
  2. Change even one character and the hash changes completely, and you can't work backwards from a hash to the data.

Every block contains the hash of the previous block. So if someone edits an old transaction, that block's hash changes, which breaks the link stored in the next block, which breaks the one after, and so on to today. Every honest node would see the mismatch and reject the edited copy.

Who adds the next page?

Someone has to bundle transactions into each new block, and the network has to agree on which block comes next. Bitcoin uses miners: computers that compete to solve a costly puzzle, and the winner adds the block and is paid in new bitcoin. That system is proof of work; lesson 03 compares it with the alternative. For now: rewriting history would mean redoing that costly work for every block since the edit, faster than the rest of the network adds new ones.

Where the analogy stops

Picture a ledger that thousands of strangers copy by hand, each page sealed with a stamp made from the page before. Good for "everyone has a copy" and "you can't quietly swap a page". Where it stops: "can't be quietly edited" is not "can't go wrong". A blockchain records whatever valid transactions it is given. If you send coins to the wrong place, or a thief sends them using your stolen secret keys (lesson 05), the record is perfectly accurate and cannot be reversed.