Blockchain Explained: Ledgers, Consensus and Limits
A blockchain lets parties who do not trust each other share a record without a central keeper. Understanding how it does so also shows why the technology suits some problems and not others.
The problem a blockchain solves
A blockchain is a way for many parties who do not fully trust each other to maintain a shared record without appointing anyone to keep it. Each participant holds a copy of the ledger, and new entries are bundled into blocks. Rules built into the software determine which additions are valid and which version of the record is authoritative. A blockchain is one kind of distributed ledger, distinguished by chaining blocks together cryptographically so that altering history is detectable and, in large networks, very costly.
The motivating problem was digital money. Digital files can be copied, so a digital coin could be spent twice unless someone keeps a master record, a problem known as double-spending. Banks and payment processors solve it by acting as trusted intermediaries. In 2008 the pseudonymous Satoshi Nakamoto published a paper describing Bitcoin, which addressed double-spending among strangers without a central party, and the network began operating in January 2009. It drew on earlier work, including David Chaum's digital cash of the 1980s, Adam Back's Hashcash proof-of-work scheme, proposals such as Nick Szabo's bit gold and research on cryptographic timestamping from the early 1990s.
Hashes, blocks and Merkle trees
The basic building block is the cryptographic hash function, which turns any input into a fixed-length fingerprint. Changing a single character of the input produces a completely different hash, and it is computationally infeasible to find two inputs with the same hash or to work backward from a hash to its input. Each block in a blockchain contains the hash of the previous block. Altering an old transaction would change that block's hash and break the link to every later block, making tampering evident to anyone checking the chain.
Within a block, transactions are summarized using a Merkle tree, a structure invented by the cryptographer Ralph Merkle. Transactions are hashed in pairs, then those hashes are hashed in pairs again, repeating until a single root hash represents the whole set. The root goes into the block header. A lightweight client can then confirm that a transaction is in a block by checking a short chain of hashes instead of downloading every transaction.
Reaching agreement
The hard part is agreement. In an open network anyone can join and some participants may lie or fail, while messages can be delayed or lost. Computer scientists call this setting the Byzantine generals problem, after a 1982 paper by Leslie Lamport, Robert Shostak and Marshall Pease, and systems that keep working correctly despite some dishonest participants have Byzantine fault tolerance. Open blockchains must also resist Sybil attacks, in which one actor creates many fake identities, so influence cannot simply be counted per participant.
Proof of work, used by Bitcoin, ties influence to computing power. Miners compete to find a value that makes the block's hash fall below a target, which requires enormous numbers of guesses; the winner adds the block and collects newly issued coins and fees. The difficulty adjusts so that Bitcoin blocks arrive about every ten minutes. Rewriting history would require outpacing the rest of the network's computing power, the basis of the 51 percent attack, which is prohibitively expensive on a large network but has succeeded against smaller ones.
Proof of stake ties influence to coins locked up as collateral instead. Validators are selected to propose and attest to blocks according to their stake, and dishonest behavior can be punished by destroying part of it. Ethereum switched from proof of work to proof of stake in 2022, in an event known as the Merge, cutting its energy use by more than 99 percent. Critics note that stake-based systems can concentrate influence among the largest holders, while proof of work tends to concentrate it among those with the cheapest electricity and hardware.
Keys, wallets and custody
Ownership on a blockchain is control of a private key. Using public-key cryptography, each account has a private key that signs transactions and a public key, or an address derived from it, that others can see and use to verify those signatures. A cryptocurrency wallet is software or hardware that manages these keys; it does not hold coins, which exist only as entries on the ledger. Most wallets generate keys from a seed phrase of 12 or 24 words, which acts as a master backup.
This design puts unusual responsibility on users. Anyone who obtains the seed phrase controls the funds, and anyone who loses it without another backup loses access permanently; there is no password reset. Transactions are generally irreversible, so payments sent to the wrong address or to a scammer cannot be recalled. Many people therefore leave assets with exchanges, which reintroduces the trusted intermediaries that blockchains were designed to avoid, along with their risks: the collapses of the Mt. Gox exchange in 2014 and FTX in 2022 froze customer funds and led to years of bankruptcy proceedings.
Smart contracts and DAOs
Nick Szabo described smart contracts in the 1990s as agreements enforced by code. Ethereum, proposed by Vitalik Buterin in 2013 and launched in 2015, made them practical on a blockchain by adding a general-purpose virtual machine. A smart contract is a program stored on the chain that runs exactly as written when called, with every node executing it and agreeing on the result. Each operation costs a fee, called gas, which prevents endless loops and compensates validators. Contracts are usually written in languages such as Solidity.
Smart contracts power tokens, decentralized exchanges, lending protocols and DAOs, decentralized autonomous organizations in which token holders vote on proposals that the contract can execute. Their weakness is that bugs are as binding as intentions. In 2016 an attacker exploited a flaw in The DAO, an early investment fund built on Ethereum, and drained roughly a third of its funds; the Ethereum community responded with a hard fork that reversed the theft, while a minority continued the original chain as Ethereum Classic. Contracts also cannot see the outside world on their own and depend on oracles to report prices and events, which become points of trust and attack.
Scaling
Because every full node checks every transaction, public blockchains process far fewer transactions than conventional payment systems; Bitcoin's base layer handles a handful per second. Increasing capacity directly, by making blocks larger or more frequent, raises the cost of running a node and tends to concentrate the network in fewer hands. This tension among scalability, security and decentralization is often called the blockchain trilemma.
Most scaling efforts move activity off the main chain while anchoring security to it. These layer 2 systems include payment channels such as Bitcoin's Lightning Network, in which parties exchange many signed updates privately and settle only the result on the chain, and rollups, which bundle many transactions, execute them elsewhere and post compressed data and proofs to the main chain. Zero-knowledge rollups use cryptographic proofs that a batch was processed correctly; optimistic rollups assume validity unless someone submits a fraud proof within a challenge window. Each approach adds complexity and its own trust assumptions.
Limits and risks
An honest assessment has to weigh substantial limitations alongside the technical achievement. Nothing here is investment advice. The point is narrower: a blockchain makes agreed records hard to alter after the fact. It does not guarantee that those records are true, that the assets they track hold their value or that users are protected from fraud and from their own mistakes. The main limitations fall into a few recurring categories.
- Energy: proof-of-work networks consume large amounts of electricity, and estimates for Bitcoin have been compared with the usage of entire mid-sized countries.
- Irreversibility: errors, theft and fraud generally cannot be undone, and there is often no recourse.
- Fraud and speculation: scams, hacked exchanges and extreme price volatility have caused large losses for ordinary participants.
- Privacy: most ledgers are public and pseudonymous, so transactions can often be traced and linked to identities through analysis.
- Garbage in, garbage out: a blockchain shows that records were not altered after entry, not that they were true when entered.
- Governance: decisions about upgrades and forks are made by developers, miners, validators and large holders, sometimes informally.
- Regulation: rules on stablecoins, exchanges and consumer protection are developing unevenly, so the legal status of an activity can differ by country and change over time.
Where blockchains are and are not useful
A practical test of fit asks several questions. Do multiple parties need to write to a shared record? Do they distrust each other, or any possible operator, enough to reject a trusted intermediary? Is tamper-evidence worth the cost in speed, energy, complexity and irreversibility? If a trusted party exists and is acceptable, a conventional database is almost always cheaper, faster and easier to correct.
Where the answers are yes, blockchains have found real uses: value transfer that resists censorship, such as payments across borders or under unstable financial systems; publicly verifiable records; and programmable assets whose rules anyone can inspect. Many proposed applications, from supply chain tracking to voting, have struggled because the hard problem lies in connecting the ledger to reality, not in storing records. The underlying ideas have value well beyond any single blockchain: hash chains, Merkle trees, digital signatures and zero-knowledge proofs.
Key takeaways
- A blockchain lets mutually distrustful parties maintain a shared, tamper-evident record without a central operator.
- Hash chains and Merkle trees make alteration detectable, while consensus mechanisms such as proof of work and proof of stake decide which history counts.
- Control of private keys is ownership, which makes self-custody demanding and most mistakes irreversible.
- Smart contracts enable programmable assets and DAOs, but their bugs are as binding as their intentions.
- Blockchains suit a narrow set of problems; where a trusted party is acceptable, a conventional database is usually better.
Further reading in the atlas
Blockchain
Append-only ledger made of blocks of records linked by cryptographic hashes and replicated across a network that agrees on updates by consensus.
Cryptocurrency
Digital asset that uses cryptography and a decentralized ledger, usually a blockchain, to record ownership and transfers without a central issuer.
Consensus Mechanism
Method by which the nodes of a distributed system agree on one shared state, such as which transactions a blockchain records and in what order.
Sybil Attack
Attack in which one adversary creates many fake identities to gain disproportionate influence in a network, vote or reputation system.
Hard Fork
Change to a blockchain's rules that is not backward compatible, so nodes that do not upgrade can no longer follow the same chain.
Zero-Knowledge Proof
Cryptographic method that lets one party prove a statement is true to another without revealing any information beyond the fact that it is true.
Stablecoin
Cryptocurrency designed to hold a stable value relative to a reference asset, usually the US dollar, through reserves or algorithmic mechanisms.
Decentralized Finance
Financial services such as lending, trading and derivatives built from smart contracts on public blockchains, operating without traditional intermediaries.
Nick Szabo
American computer scientist and legal scholar who coined the term smart contract in the 1990s and designed bit gold, a precursor of Bitcoin.
David Chaum
American cryptographer whose work on blind signatures, mix networks and digital cash laid foundations for anonymous communication and cryptocurrency.
Hal Finney
American software developer who worked on PGP, built early cypherpunk tools and received the first Bitcoin transaction from Satoshi Nakamoto in 2009.
Web3
Proposed vision of an internet built on blockchains and tokens, in which users control their own data, identities and assets instead of platforms.
More guides
All guidesWhat AI is and is not, how systems learn from data, how large language models are trained and run, where they fail and why their safety is debated.
Every program begins as a problem and an algorithm, then passes through languages, tools, tests, reviews and years of maintenance. This guide traces that path and the ideas that hold it together.
Security is the practice of reducing risk to systems, data and people. This guide explains what defenders protect, how attacks work in broad terms and which defenses matter most.