Study Atlas › Computer Science › Distributed systems

Blockchain and distributed ledgers

An append-only chain of cryptographically linked blocks maintained by consensus across many nodes.

Edited by Alex C, EduAlx · Sources cited below

Explanation

Bitcoin's white paper (Satoshi Nakamoto, 2008) combined hash chains, digital signatures and proof-of-work consensus to solve double spending without a central party. Ethereum (2015) added smart contracts; it moved to proof-of-stake in 2022. Byzantine fault tolerance (Lamport, Shostak, Pease, 1982) is the theoretical basis.

Example

Each block stores the hash of the previous block, so changing an old block breaks every later link.

How it works, step by step

  1. Transactions are broadcast
  2. Nodes bundle them into a block
  3. Consensus (proof-of-work or stake) chooses the next block
  4. Block links to the previous hash
  5. Ledger is replicated on all nodes

Open the interactive page with diagrams →

People behind it

References

  1. S. Nakamoto, Bitcoin: A Peer-to-Peer Electronic Cash System, 2008.
  2. L. Lamport, R. Shostak, M. Pease, ACM Trans. Program. Lang. Syst. 1982, 4, 382–401.

Textbooks

Related topics

Distributed systems: CAP theorem and consensusNumber systems and data representationQuantum computingRecursionSoftware engineering and version controlHeaps and priority queuesArtificial intelligence: search and the Turing testGreedy algorithms and minimum spanning treesTransformers and large language modelsString algorithms and pattern matching