Blockchain & Consensus
The mechanics of agreement: proof of work, proof of stake, forks, finality, and why thousands of computers can agree on one truth.
What Is a Blockchain?
A blockchain is a distributed, append-only ledger of transactions grouped into blocks, where each block is cryptographically linked to the previous one. This structure makes the recorded history tamper-evident and verifiable by anyone without trusting a central authority.
What Is Proof of Stake?
Proof of stake is a consensus mechanism where validators lock up (stake) cryptocurrency as collateral to earn the right to propose and attest to new blocks. Validators who act honestly earn rewards; those who act maliciously lose part of their stake (slashing). It replaces energy expenditure with economic commitment.
What Is a Fork (Hard vs. Soft)?
A fork is a change to a blockchain's protocol rules. A soft fork tightens rules (old nodes still accept new blocks). A hard fork loosens or changes rules (old nodes reject new blocks), potentially splitting the network into two separate chains if not all participants upgrade.
What Is a 51% Attack?
A 51% attack occurs when a single entity controls more than half the network's mining power (PoW) or staking weight (PoS), allowing them to rewrite recent blockchain history, enabling double-spending, transaction censorship, or blocking confirmations. It does not let them steal coins from other addresses or create coins beyond protocol rules.
What Is a Consensus Mechanism?
A consensus mechanism is the set of rules a blockchain uses to get all participants to agree on the current state of the ledger without a central authority. It determines who can add new blocks, how conflicts are resolved, and what makes the system secure against manipulation.
What Is a Block Explorer?
A block explorer is a web-based tool that lets anyone browse and search a blockchain's data, blocks, transactions, addresses, and smart contracts, in a human-readable format. It's the public window into an otherwise raw, binary ledger.
What Is a Hash Function (Plain Language)?
A hash function takes any input (a file, a transaction, a password) and produces a fixed-size output (the hash or digest) that acts as a unique fingerprint. It's a one-way function: easy to compute the hash from input, practically impossible to reverse-engineer the input from the hash.
What Is a Merkle Tree?
A Merkle tree is a data structure that efficiently summarizes and verifies large sets of data by recursively hashing pairs of items until a single root hash remains. In blockchains, it lets anyone prove a specific transaction is included in a block without downloading the entire block.
What Is Finality in a Blockchain?
Finality is the guarantee that a transaction, once confirmed, cannot be reversed, altered, or removed from the ledger. Different blockchains offer different finality guarantees, from probabilistic (Bitcoin: increasingly unlikely to reverse with each block) to absolute (some PoS chains: mathematically impossible to reverse after a specific point).
What Is a Chain Reorg?
A chain reorganization (reorg) occurs when a node discovers a longer or heavier valid chain and switches to it, abandoning the blocks it previously considered canonical. Transactions in orphaned blocks return to the mempool. Reorgs are a normal (if rare) occurrence in probabilistic-finality systems.
What Is a Validator?
A validator is a network participant that proposes and/or attests to new blocks in a proof-of-stake blockchain. Validators stake cryptocurrency as collateral, run node software, and earn rewards for honest participation. If they misbehave (double-signing, extended downtime), their stake is slashed.
What Is Slashing?
Slashing is an automated penalty mechanism in proof-of-stake systems that destroys a portion of a validator's staked collateral when they commit a provably malicious act, such as signing two conflicting blocks or making contradictory attestations. It makes attacks economically self-destructive.
What Is a Genesis Block?
The genesis block is the very first block in a blockchain, block number 0 (or 1, depending on the chain). It is hardcoded into the node software, has no previous block to reference, and serves as the foundation on which the entire chain is built. Every blockchain has exactly one genesis block.
What Is Decentralization Actually Measured By?
Decentralization is the degree to which a blockchain's control, validation, and development are distributed across independent parties rather than concentrated in one or few entities. It's not a binary state but a spectrum, measured across multiple dimensions: validator distribution, client diversity, geographic spread, governance, and economic concentration.