Immutability rests on the structural design of a blockchain, in which data is grouped into blocks that are cryptographically linked in chronological order. Each block contains a cryptographic hash of the previous block, a timestamp, and transaction data, forming a chain in which every block references the one before it.[2]
A cryptographic hash is a unique identifier for data, produced by a hashing algorithm, so that any change in the underlying data results in a completely different hash.[3]
Because a block's hash depends on its contents, altering any historical record changes that block's hash and, in turn, invalidates every subsequent block.[1] Rewriting a single entry would therefore require recomputing all following blocks, a task described as computationally infeasible on a secure blockchain.[2]
This property makes tampering evident rather than merely difficult: any modification "breaks" the chain and becomes detectable to anyone verifying it.[4]
The second pillar is consensus. Blockchain networks use consensus mechanisms such as Proof of Work (PoW) and Proof of Stake (PoS) to agree on the validity of transactions and the state of the chain.[2] This decentralized agreement process ensures that no single entity can unilaterally alter the ledger without gaining control over a majority of the network's computational power or stake.[3]
In proof-of-work blockchains specifically, miners must expend significant computational effort to add new blocks; rewriting history would require redoing all of that work from the altered block forward while simultaneously outpacing the honest network.[1]
Decentralization reinforces both mechanisms. Because data is stored across multiple nodes rather than on a single central server, any attempt to alter it would require changing it on a majority of nodes simultaneously — a task described as practically impossible for large, well-distributed networks.[3]
Beyond ordinary transactions, immutability can also extend to program logic: on platforms such as Ethereum, once a smart contract is deployed its code cannot be changed, ensuring the contract executes exactly as written.[2]