Back to the project

How Blockchain Works

Understanding the fundamentals of blockchain technology

What is a Blockchain?

  • A distributed ledger technology
  • A chain of cryptographically linked blocks
  • Decentralized and immutable
  • Maintains a chronological record of transactions
  • No single point of failure or control

Structure of a Block

Block Header

Previous hash: 0x1a2b3c...

Block hash: 0x4d5e6f...

Timestamp: 2024-01-15 14:30:00


Transaction Data

• Transaction 1: Alice → Bob (5 ETH)

How Blocks Form a Chain

Block 1 (Genesis)
Prev: 0x000...
Hash: 0xabc123...
Block 2
Prev: 0xabc123...
Hash: 0xdef456...
Block 3
Prev: 0xdef456...
Hash: 0x789ghi...

Cryptographic Hashing

  • A one-way function
  • Variable-size input → fixed-size output
  • Deterministic: same input = same output
  • Avalanche effect: a small change = a completely different hash

SHA-256 example:

Input: "Hello World"

a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e

Consensus Mechanisms

Proof of Work (PoW)

  • Solving cryptographic puzzles
  • High energy consumption
  • Used by Bitcoin

Proof of Stake (PoS)

  • Validation based on staking
  • More energy efficient
  • Used by Ethereum 2.0

Smart Contracts

  • Self-executing code on the blockchain
  • Conditions defined in the code
  • Automatic and immutable execution
  • No intermediaries required

Simplified example:

if (payment_received == true) {
    transfer_ownership();
    release_funds();
}

Decentralized Finance (DeFi)

  • Financial services without traditional institutions
  • Decentralized lending, borrowing and exchanges
  • Governed by smart contracts
  • Accessible 24/7, globally

Popular DeFi applications:

• Uniswap (DEX) • Compound (Lending) • Aave (Liquidity)

Advantages of Blockchain

  • Security: advanced cryptography
  • Decentralization: no single point of control
  • Transparency: every transaction is visible
  • Immutability: data cannot be altered

Blockchain Use Cases

  • Cryptocurrencies: Bitcoin, Ethereum
  • Supply chain: product traceability
  • Digital identity: secure verification
  • Electronic voting: transparent elections
  • Intellectual property: proof of priority
  • Real estate: land registries

Thank you!

Questions?

Blockchain is reshaping how we think about trust and digital transactions.