🌴 Bitcoin Blockchain Game 🪙

Learn how Bitcoin blocks work — on your phone!
🔤 Hash
💸 Transactions
🎲 Nonce
⛏️ Mine
⛓️ Chain

🔤 Text Hashing Adventure

Type any text and see how SHA256 creates a unique "fingerprint"!

✍️ Your Text:

🔐 SHA256 Hash:

Type something above to see the magic happen!

🤔 What's happening?

SHA256 always creates the same hash for the same input. Change one letter and the whole hash changes! This is how Bitcoin ensures security.

💸 Transaction Hashing

See how Bitcoin transactions get hashed into blocks!

🏫 Block 1 Transactions:

Instructor → Student 1: 50 BTC (fee: 0.5 BTC)
Student 2 → Student 6: 40 BTC (fee: 0.8 BTC)
Miner reward: 3.125 BTC

📋 Block Data:

Click the button above to see the block data!

🔐 Block Hash:

Block hash will appear here!

🎲 The Magic of Nonce

Watch how changing the nonce changes the entire hash!

Current Nonce0

📦 Block 2 Data:

Previous: 082be7c9bbcd99fb…10902613
Student 3 → Student 4: 70 BTC (fee: 0.9 BTC)
Student 4 → Student 5: 25 BTC (fee: 0.1 BTC)
Miner reward: 3.125 BTC

🔐 Block Hash with Nonce:

Click "Change Nonce" to see different hashes!

✨ The Magic Explained:

The nonce is a "number used once." Miners change this number to get different hashes until they find one that meets the target difficulty!

⛏️ Mine a Bitcoin Block!

Try to find a hash that starts with "0" — this is mining!

Mining Nonce0

📦 Block 3 to Mine:

Student 2 → Teacher: 300 BTC (fee: 0.1 BTC)
Student 5 → Student 6: 20 BTC (fee: 0.8 BTC)
Miner reward: 3.125 BTC

🎯 Target: starts with "0"

Start mining to see the hash!
🎉 YES WE WON THE BLOCK! 🎉
🏆💎🪙

🏆 Mining Explained:

In real Bitcoin, miners compete to find a hash that meets the difficulty target. The first one to find it wins the block reward!

⛓️ Mine the Blockchain

Mine blocks one by one and watch the blockchain grow!

🔗 How It Works:

Mine Block 1 first, then its hash becomes the "Previous Block" for Block 2. Keep mining to build the chain!

⛏️ Currently Mining: Block 1

Previous Block: Genesis
Runy → Student 1: 50 BTC (fee: 0.5 BTC)
Student 2 → Student 6: 40 BTC (fee: 0.8 BTC)
Miner reward: 3.125 BTC
Chain Nonce0

🎯 Target: starts with "0"

Start mining to see the hash!
🎉 BLOCK MINED! 🎉
⚡🔗💎

🛡️ Security Through Linking:

Each block's hash becomes part of the next block. Changing any old block would require re-mining ALL blocks that follow!

💻 Switch to desktop version