Chain
In the context of blockchain, a 'chain' refers to the sequential, linked structure of data blocks. Each block contains a unique hash (a digital fingerprint) of the previous block, creating an unbroken thread that extends back to the network's inception. This structural connection is what makes the ledger immutable; if someone attempts to change data in an earlier block, the hash changes, breaking the link and alerting all other nodes in the network that the history has been tampered with.
Explain Like I'm 12
A chain is like a heavy, locked metal chain where each link is welded to the one before it. If you try to cut or swap a link in the middle, the whole chain falls apart, and everyone can clearly see that you messed with it.
Why It Matters
The chain structure ensures history remains accurate and tamper-proof. It is the primary reason why blockchain is a 'trustless' system, as the chain itself serves as the ultimate source of truth for all users.
How It Works
Every new block header includes the hash of the preceding block header. This cryptographic dependency propagates through the entire chain. If data is altered, the entire subsequent chain becomes invalid, making manipulation detectable by any observer.
Real-World Example
The Ethereum 'mainnet' is the primary chain that hosts the majority of decentralized applications and smart contract transactions globally.
Advantages
- Provides tamper-evident history of all transactions
- Allows for simple verification of state transitions
- Ensures global consensus on the network order
Limitations
- Requires massive data storage over time
- Can grow too large for standard home computers
- Older blocks become computationally expensive to re-validate
Common Misconceptions
- Many think a chain is just a list, but it is a cryptographic sequence that prevents alteration.
- People often confuse the 'chain' with the 'blockchain' network as a whole, which includes more than just the data sequence.
Knowledge Explorer
Explore This Concept in the Knowledge Graph
See how Chain connects to other concepts, books, research, and developer resources.
Related Terms
Block
A block is a foundational data structure in a blockchain that acts as a container for a batch of verified transactions. Each block contains a specific header with metadata—including the timestamp, a reference to the previous block's hash (the 'parent'), and a nonce used for mining or validation. Once a block reaches consensus among the network participants, it is cryptographically 'chained' to the previous one, creating an immutable history of activity that is nearly impossible to alter without redoing the work required to produce the entire chain.
Distributed Ledger
A distributed ledger is a database that is consensually shared and synchronized across multiple sites, institutions, or geographies, accessible by multiple people. Unlike a traditional database held by a single company, every participant has their own copy of the record. Any changes made to the ledger are reflected across all copies simultaneously through a consensus process, ensuring that the ledger is immutable and highly resistant to tampering or unauthorized changes.
Hash
A hash is a fixed-size string of characters generated by a mathematical algorithm, representing the digital fingerprint of an input of any length. In blockchain, hashes are essential for data integrity and security. Because a small change in the input results in a vastly different output, hashes allow for the instant verification of data. They serve as the primary mechanism for linking blocks together, as each block contains the hash of the preceding block, forming the chronological chain.
Immutability
Immutability refers to the inability of a ledger to be changed or deleted once data has been recorded. In a decentralized blockchain, this is achieved through cryptographic hashing, consensus protocols, and the distribution of the ledger across a global network of nodes. Because every node holds a copy of the history, tampering with a single entry would require overriding the consensus of the majority of the network, which is computationally and economically prohibitive.
Immutability
The property of blockchain data being permanent and unalterable once confirmed. Changing a past block would require re-mining that block and all subsequent blocks with majority network consensus — practically impossible on well-secured networks.
Node
A node is any computer or device that connects to a blockchain network and participates by running the protocol's software. Nodes play various roles, including validating transactions, maintaining a copy of the blockchain history, and propagating new data to other peers. Different types of nodes exist, such as full nodes (which store the entire blockchain history and enforce all rules) and light nodes (which store only headers for efficiency). Nodes are the active participants that uphold the network's integrity and decentralization.
State
In blockchain terminology, 'state' refers to the current snapshot of all data stored on the network at a specific block height. This includes account balances, contract storage, and code that resides on the chain. As transactions are processed, they mutate the blockchain from one state to the next. The state is what users query when they want to check their token holdings or interact with a decentralized application, representing the 'truth' of the network at any given moment.