Module 2 of 18 • Week 1: Crypto Foundations
📚 Module 1.2 • 20 min read

Understanding Blockchains

Learn how blockchains work, explore different consensus mechanisms, and understand what makes each chain unique

What You'll Learn

🎯
Understand how blocks connect to form a blockchain
🎯
Learn how transactions are verified and secured
🎯
Compare Proof of Work, Proof of Stake, and Proof of History
🎯
Understand public and private keys

What Is a Blockchain?

Imagine a notebook that everyone in the world can read, but no one can erase or change what's already written. That's essentially what a blockchain is—a permanent, public record of transactions that's maintained by thousands of computers around the world.

The term "blockchain" comes from its structure: it's literally a chain of blocks. Each block contains a bundle of transactions, and these blocks are linked together chronologically, creating an unbreakable chain of history.

🔗

The Chain That Can't Be Broken

Each block contains a unique fingerprint (hash) of the previous block. If someone tries to change an old transaction, it would break the chain, and everyone would know immediately.

How Blocks Work

Think of each block as a container that holds three main things:

1. Transaction Data: All the transfers that happened during that time period—who sent what to whom.

2. Timestamp: Exactly when this block was created, providing a permanent historical record.

3. Hash: A unique fingerprint for this block, plus the hash of the previous block, creating the chain.

See How Blocks Connect

BLOCK #1
Hash: 000abc...
Transactions
Alice → Bob: 5 BTC
Previous Hash
Genesis Block
BLOCK #2
Hash: 000def...
Transactions
Bob → Carol: 2 BTC
Previous Hash
000abc...
BLOCK #3
Hash: 000ghi...
Transactions
Carol → Dave: 1 BTC
Previous Hash
000def...

Who Validates Transactions?

In traditional banking, the bank validates your transactions. In blockchain, this job is done by validators (or miners in some systems). But here's the revolutionary part: anyone can become a validator.

Different blockchains use different methods to choose who gets to add the next block. This is called the consensus mechanism, and it's what keeps the blockchain secure and decentralized.

🛡️

Security Through Consensus

For a transaction to be confirmed, the majority of validators must agree it's valid. This makes it virtually impossible for any single bad actor to corrupt the system.

How Different Chains Reach Consensus

Bitcoin
Proof of Work (PoW)
Miners compete to solve complex mathematical puzzles. The first to solve it gets to add the block and earn rewards. This requires massive computational power, making it extremely secure but energy-intensive.
10 min Block Time
High Security
Ethereum
Proof of Stake (PoS)
Validators lock up (stake) 32 ETH to participate. They're randomly selected to create blocks based on their stake. If they misbehave, they lose their stake. Energy-efficient and still very secure.
12 sec Block Time
32 ETH Min Stake
Solana
Proof of History (PoH)
Uses a cryptographic clock to timestamp transactions before consensus. Combined with PoS, this allows parallel processing of transactions, achieving incredible speed while maintaining security.
400ms Block Time
65k TPS Capacity

Your Keys, Your Crypto

In the blockchain world, ownership is controlled by cryptographic keys. Think of it like this:

🔑 Private Key: This is like the password to your bank account, but much more powerful. It's a long string of characters that proves you own your crypto. Never share this with anyone!

📬 Public Key/Address: This is like your email address—you can share it with anyone who wants to send you crypto. It's derived from your private key, but it's impossible to work backwards.

⚠️

Critical Security Rule

"Not your keys, not your crypto" is the golden rule. If you don't control the private keys, you don't truly own the cryptocurrency—you're trusting someone else with it.

How Transactions Work

When you send cryptocurrency, here's what happens behind the scenes:

1. Create: You create a transaction saying "Send X amount from my address to recipient's address"

2. Sign: You sign it with your private key, proving you authorized this transaction

3. Broadcast: The transaction is broadcast to all nodes in the network

4. Validate: Validators check you have enough balance and the signature is valid

5. Confirm: The transaction is included in a block and added to the blockchain forever

Try a Simulated Transaction

✅ Transaction Broadcasted!
Transaction Hash:
0x3f4e...

Check Your Understanding

What makes a blockchain "immutable" (unchangeable)?
Which consensus mechanism does Ethereum currently use?
What should you NEVER share with anyone?

Before Moving On