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)

South Africa is participating in largest and most advanced HIV vaccine trial program; makes its own history

image credit A big step for mankind -  South Africa is participating in  HIV  (Human Immunodeficiency Virus) vaccine program. This vaccine could prevent HIV infection. The drug trial began last month. This program is called  HVTN 702 . About 5400 adults are participating in this  HIV  vaccine trial. Scientists say that this  HIV  vaccine program is the largest and most advanced trial program in South Africa.   “If deployed alongside our current armoury of proven HIV prevention tools, a safe and effective vaccine could be the final nail in the coffin for HIV,” said Anthony Fauci, director of the National Institute of Allergy and Infectious Diseases (NIAID), which falls under the American National Institutes of Health (NIH), a co-funder of the trial.   “Even a moderately effective vaccine would significantly decrease the burden of HIV disease over time in countries and populations with high rates of HIV infection, such as South Africa.”  image credit Dr Glenda Gray  is

"royalmacro" trail short update - Auto Upvote List

Today I just included a few steemians in my auto upvote list -- All posts of the following accounts must be auto upvoted by the trail after 30 minutes of publishing @gyanibilli @gamerveda @arnob @indiantraveller @nadira @libert @mindfreak @sujoy1990 @chotto @jznsamuel @munmunbiswas  [Plz activate on trail] @leohira123 @ragini00 @simaroy @atkins @drsupriya18 @jimmyrai28  [Plz activate on trail] @ronald0 @jerremie @jsantana @blacks  [Plz activate on trail] @artists @steemmeets @firepower @pharesim @steampty @rahul.stan @looftee @richman @vaibhavshah @terrycraft @slowwalker @trafalgar @ericvancewalton @papa-pepper @gavvet @benjojo @crowdfundedwhale @curie @abdullar @jlufer  [Plz activate on trail] @mgibson @funnyman  [Plz activate on trail] @elyaque  [Plz activate on trail] However, some users are delisted now but, they must be listed in the near future if they enable their account on trail. I request now the following members to enab

Macro Photography - Cobweb

Macro-shot of Cobweb Tags : Photography, Macro Photography, Nature,  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

Seven Day - Black & White Challenge: [Day #05]

Seven day black & white challenge: [Day #05] Some simple rules must be obeyed to be eligible in this contest • Seven black and white images that represent an aspect of your life. • Present one image every day for seven days. • No people. • No explanation. • Nominate someone every day, but anyone can join the fun. • Use the tag -  #sevendaybnwchallenge  - as one of your five tags. My Today's Nomination :  @photoman 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

One day at the Zoo -Episode #20

Two weeks ago I visited "Alipore Zoological Gardens" in Kolkata which is mostly known as "Alipore Zoo". It was founded in the year of 1875 in British India. And it was established by Edward VII, and then The prince of wales. This zoo is the biggest attraction of the tourists in the "City of Joy". However, the Alipore Zoo has some notable historical value as it's the most old zoological garden in India. The zoo was also famous for the home of "Aldabra giant tortoise". But, in 2006 the tortoise died at the age of almost 250. There are now over 1266 animals of 108 species are living in the Alipore Zoo. And annual visitors of the zoo is about 3 millions. **I captured some photos, but, due to the obstacle of the fence I couldn't take them very clearly. * Saltwater Crocodile To be continued ... Episode #1 ,  Episode #2 ,  Episode #3 ,  Episode#4 ,  Episode#5 ,  Episode#6 ,  Episode#7 ,  Episode#8 ,  Episode#9 ,  Episode

Buds

I captured this photo when I was travelling a rural jungle... Tags : Photography, Nature, Macro Photography, 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

Blue Moon

Tags : Photography, Nature, Moon 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

What I Learnt Today : 10 Unknown Amazing Facts About Animals - Part CIV

image credit (1) A large group of goats is called a herd. (2) There are almost 60 million dogs in the United States. (3) Goat’s milk is higher in calcium, vitamin A and niacin than cow’s milk. (4) Cats can hear ultrasound. Goats   image credit (5) There are roughly twenty-four thousand species of butterflies. (6) Two dogs were among the Titanic survivors. (7) Aardvarks can hear and smell termites and ants. Aardvarks Elephant   image credit (8) The oldest recorded elephant lived for 82 years. (9) Apiphobia is the fear of bees. (10) Some of the jumping bugs use the toes of their legs as catapults, jumping with immense force Butterflies Bees   image credit Previous Episodes :  Part-I ,  Part-II ,  Part-III ,  Part-IV , Part-V ,  Part VI ,  Part VII ,  Part VIII ,  Part IX ,  Part X ,  Part XI ,  Part XII ,  Part XIII ,  Part XIV ,  Part XV ,  Part XVI ,  Part XVII ,  Part XVIII ,  Part XIX ,  Part XX ,  Part XXI ,  Part XXII ,  Part XXIII ,  Part XXIV , 

One day at the Zoo -Episode #22

Two weeks ago I visited "Alipore Zoological Gardens" in Kolkata which is mostly known as "Alipore Zoo". It was founded in the year of 1875 in British India. And it was established by Edward VII, and then The prince of wales. This zoo is the biggest attraction of the tourists in the "City of Joy". However, the Alipore Zoo has some notable historical value as it's the most old zoological garden in India. The zoo was also famous for the home of "Aldabra giant tortoise". But, in 2006 the tortoise died at the age of almost 250. There are now over 1266 animals of 108 species are living in the Alipore Zoo. And annual visitors of the zoo is about 3 millions. **I captured some photos, but, due to the obstacle of the fence I couldn't take them very clearly. * Gharial To be continued ... Episode #1 ,  Episode #2 ,  Episode #3 ,  Episode#4 ,  Episode#5 ,  Episode#6 ,  Episode#7 ,  Episode#8 ,  Episode#9 ,  Episode#10 ,  Episode#1

The Real Face Of India - Episode 79

The Real Face Of India - Episode#79 I believe that India is the most beautiful country in the world. In this series I show the real face of beautiful India. Half Dozen Photos of Natural Beauties Snap taken : 31 Aug 2017   Camera : SONY, Model : DSC-W710 Other Episodes :  Episode#01 ,  Episode#02 ,  Episode#03 ,  Episode#04 ,  Episode#05 ,  Episode#06 ,  Episode#07 ,  Episode#08 ,  Episode#09 ,  Episode#10 ,  Episode#11 ,  Episode#12 ,  Episode#13 ,  Episode#14 ,  Episode#15 ,  Episode#16 ,  Episode#17 ,  Episode#18 ,  Episode#19 ,  Episode#20 ,  Episode#21 ,  Episode#22 ,  Episode#23 ,  Episode#24 ,  Episode#25 ,  Episode#26 ,  Episode#27 ,  Episode#28 ,  Episode#29 ,  Episode#30 ,  Episode#31 ,  Episode#32 ,  Episode#33 ,  Episode#34 ,  Episode#35 ,  Episode#36 ,  Episode#37 ,  Episode#38 ,  Episode#39 ,  Episode#40 ,  Episode#41 ,  Episode#42 ,  Episode#43 ,  Episode#44 ,  Episode#45 ,  Episode#46 ,  Episode#47 ,  Episode#48 ,  Episode#49 ,  Episode#50 ,  Epis
Back to Top