A blockchain is a shared, append-only ledger that many computers keep in sync without a central owner. Transactions are grouped into blocks, each block carries a cryptographic hash of the previous one, and a consensus rule decides which new block the network accepts. Because changing an old block would change every hash after it, recorded history is very hard to alter.
Bitcoin introduced the idea in 2008 to 2009, but the technology is now used well beyond digital currency. This guide explains the parts, how a transaction travels from wallet to chain, which consensus models exist, and where blockchains are and are not a good fit.
A blockchain is a database with three unusual properties: it is replicated across many independent nodes, new data can only be appended, and agreement on what gets appended is reached by a protocol instead of by an administrator.
Each block usually contains:
Because the previous block's hash is part of the next block, the blocks form a chain. If someone edits a transaction in block 100, the hash of block 100 changes, which breaks the link stored in block 101, and so on up to the newest block.
The path is similar on most public networks.
You can see the hash-linking idea in a few lines of Python.
This toy has no network, no signatures and no consensus. It only shows why tampering with an earlier block is detectable.
Consensus is how strangers agree on one version of history.
| Mechanism | Who adds blocks | Main cost to attack | Examples |
|---|---|---|---|
| Proof of work | Miners who solve a hash puzzle | Hardware and electricity | Bitcoin |
| Proof of stake | Validators who lock up coins | Capital that can be slashed | Ethereum (since September 2022), Cardano, Solana |
| Permissioned BFT | A known set of organisations | Collusion of enough members | Hyperledger Fabric deployments |
Proof of stake uses far less energy than proof of work. Ethereum's switch to proof of stake in 2022 is widely reported to have cut its energy use by more than 99 percent.
Many Ethereum-style networks also offer smart contracts, which are programs stored on the chain that run when a transaction calls them. Layer 2 networks batch transactions off the main chain to lower fees.
Blockchains work well for:
They are a poor fit when one organisation controls the data anyway, when you need to delete personal data (privacy laws such as the GDPR clash with immutability), or when you need high write throughput at very low cost. A normal database is almost always simpler.
A blockchain guarantees that recorded data was not changed later. It does not guarantee the data was true when it was written.
No. Bitcoin is one application built on a blockchain. The data structure and its consensus ideas are used by many other networks and by private enterprise systems.
The cryptography and consensus of large networks have held up well. Losses usually come from stolen private keys, buggy smart contracts, compromised exchanges or phishing, not from rewriting the chain.
No. You only need a wallet to send and receive. Mining or validating is a separate role, and on proof of stake networks it means staking assets instead of running puzzle hardware.
On public chains, transactions are visible to everyone, although addresses are pseudonymous and can often be linked to real identities. Privacy needs extra techniques or a permissioned design.
A blockchain links blocks of transactions with hashes, replicates them across nodes, and uses a consensus protocol to agree on new blocks. That makes recorded history hard to change without a central authority. Choose it when several parties need a shared, tamper-evident record and none should control it. Choose a regular database otherwise.