Chapter 17 Β· Concepts

Blockchain Technology β€” Core Concepts

Visual guides and comparison tables for blockchain fundamentals.

How Blocks Are Built and Chained

1
Transactions broadcast
Users broadcast transactions to the network. All nodes receive pending transactions and place them in a pool waiting to be included in the next block.
↓
2
Transactions batched into a block
A node (miner or validator) selects transactions from the pool and bundles them into a new block, along with a timestamp and the hash of the previous block.
↓
3
Consensus achieved
The node solving PoW (or selected by PoS) announces the new block. Other nodes verify the block's validity (transactions valid? hash correct? nonce works?) and add it to their chain.
↓
4
Block added to all copies
All nodes update their copy of the ledger to include the new block. The block's hash is embedded in the next block to be created β€” extending the chain.
↓
5
Tamper detection
If anyone modifies a past block, its hash changes. This breaks all subsequent blocks' "previous hash" references β€” every node can immediately detect the inconsistency by comparing hashes.

Block Structure

FieldContentsPurpose
Previous Block HashSHA-256 hash of the prior blockCreates the cryptographic chain β€” links this block to all previous history
TimestampTime the block was createdRecords when transactions occurred
Transaction DataList of all transactions in this blockThe actual record: who sent what to whom
NonceNumber varied during mining (PoW)The solution to the Proof of Work puzzle β€” proves computational effort was expended
Block HashSHA-256 of this block's entire contentsThis block's unique fingerprint; embedded in the next block as "Previous Block Hash"

Why Tampering with History Fails

Step 1: Attacker modifies Block 800

The attacker alters a transaction in Block 800 (e.g., changes "Alice pays Bob 1 BTC" to "Alice pays Attacker 1 BTC").

Block 800's hash is now different β€” its contents changed.

Step 2: Block 801 is now invalid

Block 801 contains the old hash of Block 800 as its "previous block hash." But Block 800's hash just changed. Block 801's "previous hash" field is wrong β€” it no longer matches the actual Block 800 hash.

Step 3: Cascade failure through all subsequent blocks

Block 801's hash must also be recomputed (its contents changed). This breaks Block 802. And Block 803. All the way to the current block (Block 1000+). The attacker must recompute every subsequent block.

Step 4: The race they cannot win

While the attacker is recomputing blocks 800–1000, the legitimate network has continued adding new blocks. The attacker's chain is now behind the legitimate chain. In PoW, the longest chain wins β€” the attacker's tampered chain is rejected.

Proof of Work vs. Proof of Stake

PropertyProof of Work (PoW)Proof of Stake (PoS)
How validators are selectedFirst to solve the computational puzzle (find a valid nonce)Random selection weighted by amount staked
Cost to participateComputing hardware + electricity (expensive)Cryptocurrency stake (economic capital)
Attack costMust control >50% of network hash rate (massive hardware/electricity)Must control >50% of staked cryptocurrency (massive economic stake β€” which would lose value if you attacked)
Energy efficiencyVery high energy consumption β€” by design (computational difficulty)Much more energy-efficient β€” no competitive computation
ExamplesBitcoinEthereum (post-2022), Cardano

Blockchain Applications

Cryptocurrency

Digital currency transactions recorded on a decentralized ledger. No bank or government controls the ledger. Bitcoin was the first β€” all participants can verify the complete transaction history back to the genesis block.

Supply Chain Tracking

Each step in a product's journey (manufacturer β†’ distributor β†’ retailer β†’ customer) is recorded on a blockchain by each participant. The chain of custody is publicly auditable and tamper-evident β€” counterfeits and diversion are detectable.

Digital Identity

Credentials (degrees, licenses, certifications) stored on a blockchain and cryptographically tied to the holder's identity. Owner controls their own credentials β€” no central database to breach or corrupt. Third parties can verify credentials without contacting the issuing institution.

Smart Contracts

Self-executing code deployed to the blockchain. Terms are written in code; conditions trigger automatic execution. No intermediary needed β€” the network enforces the contract. Transparent and auditable by all participants.

Voting Systems

Votes recorded as blockchain transactions. Publicly auditable β€” any observer can verify the count. Tamper-evident β€” changing a vote would require breaking the chain. Voter identity kept private through cryptographic techniques while vote integrity is public.

Healthcare Records

Patient records shared across providers on a blockchain. No single provider owns the data. Patients control access. Audit trail of every access is tamper-evident. Eliminates data silos while maintaining integrity and controlled access.