ENES

Blockchain

A shared record book, copied on many computers, where old pages can't be quietly changed.

Three blocks in a row, each holding transactions and the hash of the block before it, copied identically on several computers

A blockchain is a way of keeping a record, a ledger, that many parties share without having to trust a single owner. Entries, such as "Ana sent 5 units to Ben", are grouped into blocks. Each block also stores the hash of the previous block: a short fingerprint calculated from its contents. That chains the blocks together, because if someone edits an old block, its fingerprint changes and no longer matches the one stored in the next block, so the tampering is obvious.

The second idea is that the ledger is not kept in one place. Thousands of computers, called nodes, each keep a full copy and follow the same rules to agree on which block comes next. That agreement is called consensus. In Bitcoin, the first blockchain, described in 2008 by someone using the name Satoshi Nakamoto, nodes compete to solve a costly math puzzle (proof of work); newer systems such as Ethereum let nodes that lock up funds as a deposit take turns adding blocks (proof of stake). Rewriting history would require outvoting or outspending most of the network.

Blockchains are best known for cryptocurrencies, but the structure can record anything: ownership of digital items, steps in a supply chain, or small programs called smart contracts that run automatically when conditions are met. The trade-offs are real: they are slower and more expensive than an ordinary database, mistakes are hard to undo, and proof of work uses a lot of electricity. When one trusted organization keeps the records, a normal database is usually the better tool.

Keep in mind

Go deeper

Related terms

More in Security