0 / 16 flipped
What is a blockchain?
A distributed ledger where records (transactions) are grouped into blocks, each cryptographically linked to the previous block via its hash. No single party controls or maintains it. Tamper-evident: changing any block breaks all subsequent blocks.
What is a distributed ledger?
A record of transactions replicated across many independent nodes simultaneously. No central server holds the authoritative copy β all nodes hold equal copies and continuously verify consistency. Eliminates single points of failure and control.
What three elements does each block contain?
1. Transaction data (the actual records: who sent what to whom). 2. Timestamp (when the block was created). 3. Hash of the previous block (the cryptographic link that creates the chain). Also contains the block's own hash and (in PoW) a nonce.
What is hash chaining and why does it matter?
Each block includes the hash of the previous block. This links every block to all preceding history. If any past block is modified, its hash changes, invalidating every subsequent block β the tamper is immediately detectable by all nodes comparing hashes.
What is the genesis block?
The first block in a blockchain β it has no "previous block" to reference. All subsequent blocks trace their cryptographic chain back to it. It is the foundation of the entire chain's immutability.
What is a consensus mechanism?
The protocol by which all nodes agree on which blocks are valid without a central authority. Ensures all honest nodes maintain the same version of the ledger. Common types: Proof of Work (PoW) and Proof of Stake (PoS).
How does Proof of Work achieve consensus?
Nodes (miners) compete to solve a computational puzzle β finding a nonce that produces a valid hash. The winner adds the next block and earns a reward. Computationally expensive to produce but easy to verify. Security comes from the enormous computational cost of forging history.
How does Proof of Stake achieve consensus?
Validators are selected to create blocks in proportion to their staked (locked) cryptocurrency. Cheating loses your stake β economic punishment replaces computational difficulty. More energy-efficient than PoW. Used by Ethereum (since 2022) and others.
What is a 51% attack?
An attack where one entity controls more than 50% of a blockchain's consensus power (hash rate in PoW, stake in PoS). This majority allows overriding consensus: approving fraudulent transactions, double-spending, or rewriting recent history. Practically infeasible against large networks.
Why is tampering with blockchain history effectively impossible?
To modify a past block, an attacker must recompute every subsequent block (because hash chaining breaks) AND do this faster than the legitimate network is producing new blocks. Against a large network with massive combined computing power, this race is computationally unwinnable.
What is a smart contract?
A self-executing program stored on a blockchain that automatically enforces agreement terms when conditions are met. No intermediary needed β the code runs automatically and transparently. Example: automatic insurance payout when a flight delay is confirmed by a trusted data feed.
What is the difference between a public and private blockchain?
Public blockchain: open to anyone β anyone can join, validate, and view the full ledger (Bitcoin, Ethereum). Private/permissioned blockchain: restricted to known authorized parties β used in enterprise and government settings where full public transparency isn't needed but tamper-resistance is valuable.
What is a nonce in blockchain?
In Proof of Work, a number that miners vary when computing a block's hash. Miners increment the nonce until they find a hash that meets the difficulty target (e.g., starts with a required number of zeros). Finding the correct nonce requires massive computation; verifying it requires a single hash check.
How does blockchain apply to supply chain management?
Each step in a product's journey is recorded as a blockchain transaction by each handler (manufacturer, shipper, distributor, retailer). The chain of custody is publicly auditable and tamper-evident. Counterfeits cannot be inserted without authorization. Diversion is detectable when the legitimate chain stops unexpectedly.
What is a double-spend attack?
Spending the same digital currency twice by rewriting transaction history β enabled by a 51% attack. An attacker sends coins, receives goods, then rewrites the blockchain so the original transaction never happened β they keep both the goods and the coins. Prevented by waiting for multiple block confirmations.
What are the key security properties of blockchain?
1. Distributed: no single point of failure/control. 2. Tamper-evident: hash chaining detects any modification. 3. Transparent: all participants can verify history. 4. Immutable (effectively): changing history requires outcomputing the entire network. 5. Consensus-based: no single authority approves transactions.