A distributed ledger where each block contains data, a hash, and the previous block's hash — making the chain tamper-evident by design.
In a traditional database, one entity controls the records. If that entity is compromised, corrupted, or simply dishonest, the data changes without anyone knowing. Blockchain solves this with distributed consensus: the same ledger is held by thousands of participants, and no single party can alter history without rewriting every subsequent entry and outpacing the entire network.
A blockchain is a linked list of blocks where each block cryptographically commits to its predecessor. Changing any past block invalidates every block that follows, because the hashes no longer match. An attacker would have to redo the cryptographic work for every subsequent block — a task that becomes computationally infeasible on large networks.
Every block in the chain contains four essential fields: an index, a timestamp, the data (e.g. a list of transactions), and a hash that uniquely fingerprints all of this content plus the previous block's hash. That last dependency is what chains the blocks together.
SHA-256 maps any input to a 256-bit fingerprint. Two properties make it perfect for blockchains: determinism (same input → same hash, always) and avalanche effect (change one bit of input → ~50% of output bits flip). This means you cannot quietly edit a block's data — the hash changes, which cascades through every subsequent block.
To tamper with block #1, an attacker must: (1) recompute block #1's hash with new data, (2) update block #2's prev_hash and recompute block #2's hash, (3) continue through every subsequent block, and (4) do all of this faster than the honest network adds new blocks — an impossibility once the chain is long.
A blockchain is run by a peer-to-peer network of nodes. Each node stores a full copy of the chain. When a new block is proposed, nodes verify it independently and add it only if it satisfies the consensus rules. No central coordinator exists — agreement emerges from the protocol itself.
Say the answer out loud before revealing — recalling is what makes it stick.
What makes a blockchain tamper-evident?
What are the four fields in a block?
What is the avalanche effect in SHA-256?
What is a 51% attack?