Skip to main content

What are bitcoin miners really solving? (collected from web)

What are bitcoin miners really solving?
Here is an extremely simplified sketch of the problem, but it should give a pretty good idea of what the problem is. The data: This is the hash of the lastest block (shortened to 30 characters):  
00000000000001adf44c7d69767585

These are the hashes of a few valid transactions waiting for inclusion (shortened). 
5572eca4dd4

db7d0c0b845

And this the hash of one special transaction that you just crafted, which gives 25BTC (the current reward) to yourself: 
916d849af76

Building the next block: Now, let's use a gross approximation of what a new block might look  like (the real one uses binary format). It contains the hash of the  previous block and the hashes of those 3 transactions: 
00000000000001adf44c7d69767585--5572eca4dd4-db7d0c0b845-916d849af76--

Now let's do mining by hand! Our goal is to complete this block with a  nonce (a piece of garbage) such that the hash of the new block starts  with 13 zeros (considering the previous hash, it seems that 13 zeroes is  the current difficulty!). Mining (trying to finalize this block): Let's try with nonce=1, and compute the hash of the block (I'm using the md5 hash algorithm, but Bitcoin uses double sha256): 
> echo "00000000000001adf44c7d69767585--5572eca4dd4-db7d0c0b845-916d849af76--1" | md5sum 

8b9b994dcf57f8f90194d82e234b72ac

No luck, the hash does not start with a 0… Let's try with nonce=2 
> echo "00000000000001adf44c7d69767585--5572eca4dd4-db7d0c0b845-916d849af76--2" | md5sum 

5b7ce5bcc07a2822f227fcae7792fd90

No luck… … If we pursue until nonce=16, we get our first leading zero. 
> echo "00000000000001adf44c7d69767585--5572eca4dd4-db7d0c0b845-916d849af76--16" | md5sum 

03b80c7a34b060b33dd8fbbece79cee3

For nonce=208, we get two leading zeroes! 
> echo "00000000000001adf44c7d69767585--5572eca4dd4-db7d0c0b845-916d849af76--208" | md5sum 

0055e55df5758517c9bed0981b52ce4a

Continue like this… If you finally find a hash that has 13 leading  zeroes… you're a winner! Other miners will now build upon your block,  you've just got 25BTC. But you'll have to be fast! Back to step 1… If someone manages to build a block before you do, you'll have to  start again from the beginning with the new block's hash (the one of the  winner).  

Tags : Bitcoin, Cryptocurrency, Money, Mathematics, Facts

This Post Was Published On My Steemit Blog
Earned : $00.00 SBD Converted to USD @0.7867$ Rate = $00.00 USD
First Time heard about Steemit ? Click Here To Know...


Comments

Popular Posts (Last 7 Days)

One Black & White Photograph Daily for 30 days - Day #25

green yard - behind of my village home Camera : Xiaomi
Model : 2014818
Location : Bongaon, West Bengal, India
Snap Taken : 14 March 2016 Tags : Black & White Photography, Flowers & Plants photography, Landscape photography, Nature, Photography, 
This Post Was Published On My Steemit Blog. Please, navigate to steemit and cast a free upvote to help me if you like my post. First Time heard about Steemit ? Click Here To Know Everything About Steemit 

$3 Donation [Fixed]
Donate $Any Amount


Green is my life --- (my own work)

Green is my life ---(my own work). I took this photograph last week. Tags :Nature, Photography, Flowers & Plants photography, Landscape photography This Post Was Published On My Steemit Blog
Earned : $00.00 SBD Converted to USD @0.8614$ Rate = $00.00 USD
First Time heard about Steemit ? Click Here To Know...

great barrier reef

Tags :Landscape photography, Nature, Ocean, Photography, Great barrier reef, Coral reef This Post Was Published On My Steemit Blog
Earned : $00.04 SBD Converted to USD @1.32$ Rate = $0.0528 USD
First Time heard about Steemit ? Click Here To Know...

the somnambulist [An Abstract Art]

 Here's the smell of the blood still: all the perfumes of Arabia will not sweeten this little hand. Oh, oh, oh! ---  MACBETH ( Shakespeare ) the somnambulist Tags : Abstract, Art, Drawing, Painting,  This Post Was Published On My Steemit Blog. Please, navigate to steemit and cast a free upvote to help me if you like my post. First Time heard about Steemit ? Click Here To Know Everything About Steemit 

$3 Donation [Fixed]
Donate $Any Amount


waiting for death [An Original Abstract Art]

waiting for death Tags : Abstract, Art, Drawing, Painting,  This Post Was Published On My Steemit Blog. Please, navigate to steemit and cast a free upvote to help me if you like my post. First Time heard about Steemit ? Click Here To Know Everything About Steemit 

$3 Donation [Fixed]
Donate $Any Amount


Road To My Village Home

Tags : India, Landscape photography, Nature, Photography, Travel, Flowers & Plants photography,  This Post Was Published On My Steemit Blog. Please, navigate to steemit and cast a free upvote to help me if you like my post. First Time heard about Steemit ? Click Here To Know Everything About Steemit 

$3 Donation [Fixed]
Donate $Any Amount


macro photography : dew on spider web

macro photography : dew on spider web
Tags :Macro Photography, Nature, Photography, Dew This Post Was Published On My Steemit Blog
Earned : $38.85 SBD Converted to USD @1.40$ Rate = $54.39 USD
First Time heard about Steemit ? Click Here To Know...

Top 10 Deadliest Birds in the World

Tags :Animals, Birds, Facts, Video, Wildlife, Youtube This Post Was Published On My Steemit Blog
Earned : $00.10 SBD Converted to USD @1.38$ Rate = $0.138 USD
First Time heard about Steemit ? Click Here To Know...

Great kiskadee texas

Tags :Birds, Photography, Wildlife, Great kiskadee texas, Birds photography, Wildlife photography, Animals, Animals photography This Post Was Published On My Steemit Blog
Earned : $00.00 SBD Converted to USD @0.9273$ Rate = $00.00 USD
First Time heard about Steemit ? Click Here To Know...

macro photography :: water drops on grass

macro photography :: water drops on grass
Tags :Flowers & Plants photography, Macro Photography, Nature, Photography, Water This Post Was Published On My Steemit Blog
Earned : $00.00 SBD Converted to USD @1.30$ Rate = $00.00 USD
First Time heard about Steemit ? Click Here To Know...

Back to Top