How does it all work? A thread for beginners
I'm going to take you through a little game, and together we're going to mine a simplified version of a bitcoin block. 👇
A Hash is like a data fingerprint that’s calculated using some fancy math
(If this is new, I suggest reading my previous beginner-friendly thread first)
xorbin.com/tools/sha256-h…
- Max of 2 transactions per block
- Whoever mines the block can claim a reward of 1 bitcoin plus the fees of the transactions in that block
- The SHA-256 Hash of the block’s contents must start with “00000”
- Each block must include the Hash of the previous block.
The Nonce is actually a meaningless field (you can put any number there).
It's sole purpose is to give you some data to tinker with until your block hashes to something valid.
- We added 1 to the Block Number, so we're at 4533 now
- You, the Reader, claim a reward of 1 BTC
- We include the previous block's hash
Let's pretend that there are 3 valid pending transactions to choose from:
- Danny pays Sahil 1 BTC (+0.002 Fee)
- Sahil pays Sam 2 BTC (+0.001 Fee)
- Danny pays Kenny 0.5 BTC (+0.003 Fee)
Well, remember the hash game from my previous thread?
You need to start changing that Nonce and checking hashes until you find a valid one!
(Or better yet, let your friend's software do it for you!)
This block will be part of the blockchain forever!
Comment or Follow + DM if you have any questions!
Also let me know what else you'd like to learn about in the next educational thread