How Blockchains Work

Blockchain technology powers cryptocurrencies like Bitcoin and Ethereum, but its applications extend far beyond digital money. At its core, a blockchain is a distributed, immutable ledger that records transactions across a network of computers.

This presentation breaks down the fundamental concepts behind blockchain technology into ten digestible topics. By the end, you'll understand how blockchains achieve security, transparency, and decentralization without relying on a central authority.

Distributed Ledgers

A distributed ledger is a database replicated across multiple computers (called nodes) in different locations. Unlike traditional databases controlled by a single entity, a distributed ledger has no central administrator.

Traditional Database

Central Server

Single point of control and failure

Distributed Ledger

Every node holds a complete copy

Why Distribution Matters

  • Redundancy: If one node fails, the network continues operating
  • Transparency: All participants can verify the ledger's contents
  • Resistance to tampering: No single party can alter records unilaterally

Cryptographic Hashing

A hash function takes input data of any size and produces a fixed-size string of characters (the hash). Blockchains use cryptographic hash functions like SHA-256, which have special properties that make them ideal for security.

Input

Hello, blockchain!
→

SHA-256 Hash

3f7a8c2b1e9d4f6a
5c8e3b7f1a9d2c4e
8b6f3a1c7e9d5f2a
4c8b6e3f1a7d9c5e

The same input always produces the same hash. Change even one character, and the entire hash changes.

Critical Properties

Deterministic
The same input always produces the same output
One-way function
You cannot reverse a hash to find the original input
Avalanche effect
A tiny change in input produces a completely different hash
Collision-resistant
It's computationally infeasible to find two different inputs that produce the same hash

⚠ Why This Matters

Hashing allows blockchains to detect tampering instantly. If someone alters a transaction, its hash changes, breaking the chain's integrity.

Blocks and Chains

A blockchain organizes data into blocks, each containing a batch of transactions. These blocks are linked together chronologically, forming a chain.

Anatomy of a Block

Block Header

  • Block number: Position in the chain
  • Timestamp: When the block was created
  • Previous hash: Links to the prior block
  • Merkle root: Summary of all transactions
  • Nonce: A number used in mining

Block Body

  • List of validated transactions
  • Sender and receiver addresses
  • Transaction amounts
  • Digital signatures

How Blocks Link Together

Block 100

Prev: 7a3f... Hash: 9b2e...
→

Block 101

Prev: 9b2e... Hash: 4c7a...
→

Block 102

Prev: 4c7a... Hash: 2f8d...

Each block contains the hash of the previous block, creating an unbreakable chain.

The Chain Property: Because each block references the previous block's hash, altering any historical block would change its hash and break the link to all subsequent blocks. This makes the blockchain tamper-evident.

Consensus Mechanisms

A consensus mechanism is the protocol that allows distributed nodes to agree on the current state of the blockchain. Without a central authority, the network needs rules to determine which transactions are valid and in what order they're added.

Common Consensus Mechanisms

Proof of Work (PoW)

Miners compete to solve complex mathematical puzzles. The first to solve it gets to add the next block and receives a reward.

Used by:
Bitcoin, Ethereum (formerly), Litecoin
Advantage:
Highly secure and battle-tested
Drawback:
Energy-intensive computational work

Proof of Stake (PoS)

Validators are chosen to create blocks based on how many coins they hold and are willing to "stake" as collateral.

Used by:
Ethereum (current), Cardano, Polkadot
Advantage:
Energy-efficient, faster finality
Drawback:
Requires significant initial stake

Delegated Proof of Stake (DPoS)

Token holders vote for a small number of delegates who validate transactions on behalf of the network.

Used by:
EOS, Tron, Steem
Advantage:
Fast transaction throughput
Drawback:
More centralized than PoW or PoS

The Goal of Consensus

All consensus mechanisms aim to achieve Byzantine Fault Tolerance: the network can reach agreement even if some nodes are malicious or offline. This ensures the blockchain remains consistent across all honest participants.

Mining

Mining is the process used in Proof of Work blockchains to add new blocks to the chain. Miners use computational power to solve cryptographic puzzles, and the first to find a solution broadcasts the new block to the network.

The Mining Process (Proof of Work)

  1. Collect Transactions

    The miner gathers pending transactions from the network's memory pool (mempool) and assembles them into a candidate block.

  2. Find the Nonce

    The miner repeatedly hashes the block header with different nonce values, searching for a hash that meets the network's difficulty target (e.g., a hash starting with a certain number of zeros).

  3. Broadcast the Solution

    Once a valid nonce is found, the miner broadcasts the new block to the network. Other nodes verify the solution and add the block to their copy of the chain.

  4. Receive the Reward

    The successful miner receives a block reward (newly created cryptocurrency) plus transaction fees from the included transactions.

Difficulty Adjustment

The network automatically adjusts the puzzle's difficulty to maintain a consistent block creation rate (e.g., Bitcoin targets one block every 10 minutes). If miners find blocks too quickly, the difficulty increases; if too slowly, it decreases.

The Computational Challenge

Target: Find a hash less than 0000000000000000000f...

This requires trying billions or trillions of nonce values until one produces a hash below the target.

Security Through Work: The computational work required to mine a block makes it prohibitively expensive for an attacker to rewrite history, because they would need to redo all that work for every block they want to alter.

Transaction Validation

Before a transaction is added to a block, it must pass validation checks performed by network nodes. These checks ensure the transaction is legitimate and follows the blockchain's rules.

What Gets Validated

Digital Signature

The transaction must be signed with the sender's private key, proving they authorized the transfer.

Sufficient Balance

The sender must have enough cryptocurrency to complete the transaction (no double-spending).

Correct Format

The transaction data must conform to the blockchain's protocol specifications.

No Prior Spending

The funds being transferred must not have been spent in a previous transaction.

Transaction Lifecycle

1

Broadcast

User signs and broadcasts transaction to the network

2

Mempool

Nodes verify and add it to their pending transaction pool

3

Inclusion

Miner/validator includes it in a new block

4

Confirmation

Block is added to the chain; transaction is confirmed

5

Finality

After several more blocks, transaction is considered final

Preventing Double-Spending

The validation process solves the double-spend problem: ensuring the same digital money isn't spent twice. Each node maintains a record of all unspent transaction outputs (UTXOs) and rejects any transaction attempting to spend already-spent funds.

Immutability

Once data is written to a blockchain, it becomes immutable—practically impossible to alter or delete. This permanence is a cornerstone of blockchain's trustworthiness.

How Immutability Works

1. Cryptographic Linking

Each block contains the hash of the previous block. Changing a single transaction in Block 100 would:

  • Change Block 100's hash
  • Break the link to Block 101
  • Require recalculating hashes for all subsequent blocks

2. Distributed Consensus

To alter history, an attacker would need to:

  • Recalculate all subsequent block hashes
  • Do this faster than the honest network adds new blocks
  • Convince the majority of nodes to accept the altered chain

3. Proof of Work Protection

In PoW systems, rewriting one block requires redoing all the computational work for that block and every block after it—a task requiring more than 51% of the network's total computing power.

The 51% Attack

Theoretically, an entity controlling more than half the network's mining power could rewrite recent history. In practice, this is prohibitively expensive on major blockchains:

Estimated cost to attack Bitcoin for one hour: $500,000+

And such an attack would likely destroy the value of the cryptocurrency, making the effort economically irrational.

The Tradeoff

Benefit: Immutability creates an auditable, tamper-evident record—ideal for financial transactions, supply chains, and legal documents.

Challenge: Mistakes and fraudulent transactions are also permanent. Recovery requires social consensus and, in rare cases, a hard fork.

Decentralization

Decentralization means no single entity controls the blockchain. Decision-making, validation, and data storage are distributed across many independent nodes, creating a system resistant to censorship and single points of failure.

The Decentralization Spectrum

Fully Centralized

Traditional bank database

  • Single point of control
  • Fast decisions
  • Vulnerable to censorship

Federated

Consortium blockchain

  • Small group of known validators
  • Moderate speed and decentralization
  • Used in enterprise settings

Fully Decentralized

Bitcoin, Ethereum

  • Anyone can run a node
  • Maximum censorship resistance
  • Slower consensus process

Why Decentralization Matters

No Single Point of Failure
If nodes go offline, the network continues operating
Censorship Resistance
No authority can block transactions or freeze accounts unilaterally
Trustless Operation
Participants don't need to trust each other or a central intermediary
Transparency
All transactions are visible to anyone running a node
Permissionless Participation
Anyone can join the network, run a node, or validate transactions

Tradeoffs

Greater decentralization typically means slower transaction speeds and higher coordination costs. Many blockchain projects balance decentralization with performance based on their use case.

Smart Contracts & Real-World Applications

While blockchains began as a ledger for digital currency, they've evolved into platforms for smart contracts—self-executing programs that run on the blockchain and automatically enforce agreements.

What Are Smart Contracts?

A smart contract is code stored on the blockchain that executes when predetermined conditions are met. It operates without intermediaries, automatically transferring assets, recording data, or triggering other actions.

Example: Escrow Contract

Scenario: Alice wants to buy a domain name from Bob.

  1. Alice deposits payment into the smart contract
  2. Bob transfers the domain ownership
  3. The contract verifies the transfer and releases payment to Bob
  4. If Bob doesn't transfer within the deadline, Alice gets her money back

No escrow agent needed—the contract enforces the rules automatically.

Real-World Applications

DeFi (Decentralized Finance)

Lending, borrowing, and trading without traditional banks. Platforms like Uniswap and Aave use smart contracts to automate financial services.

Supply Chain Tracking

Companies like Walmart and Maersk use blockchain to track products from origin to consumer, ensuring authenticity and reducing fraud.

Digital Identity

Self-sovereign identity systems let users control their personal data, sharing credentials without relying on centralized databases.

NFTs & Digital Ownership

Non-fungible tokens represent unique digital assets—art, music, virtual real estate—with verifiable ownership on the blockchain.

Healthcare Records

Immutable medical records that patients control, with secure sharing permissions for healthcare providers.

Voting Systems

Transparent, tamper-proof voting where every ballot is recorded and auditable, yet voter privacy is maintained.

The Future of Blockchains

Blockchain technology is still evolving. Challenges remain around scalability, energy efficiency, and regulatory clarity. But the core innovation—a distributed, immutable, trustless ledger—offers a fundamentally new way to coordinate human activity without central intermediaries.

Understanding these ten concepts gives you the foundation to evaluate new blockchain projects, assess their tradeoffs, and see where this technology can genuinely solve problems.