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)

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

Seven day black & white challenge: [Day #02] 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 :  @akhyar12 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

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

image credit (1) The peacock mantis shrimp can throw a punch at 50 mph, accelerating quicker than a .22-caliber bullet. (2) A prison in Washington pairs up “death row” shelter cats with select inmates as part of a rehabilitation program. It seems to be a pretty wonderful thing for both the inmates and the cats. (3) Because beavers’ teeth never stop growing, they must constantly gnaw on objects to keep them at a manageable length. Their teeth would eventually grow into their brain if they didn’t maintain them. (4) On average, there are 50,000 spiders per acre in green areas. Bet you’ll think twice before going outside now – unless you’re this guy. peacock mantis shrimp   image credit (5) Be careful if you own ostrich. Very often ostrich kicks can kill a human. (6) Cicadas expand and contract their exoskeletons to make their loud calls. (7) In the uk, the british monarch legally owns all unmarked mute swans in open water. Cicadas   image credit (8) To es...

Hunting emeralds [Day 2] & Hidden Object Contest With Prize Money 2 SBD

I like to play always with crypto tokens. I'm now playing a funny game to collect bits. What is bits ? 1 bit = 100 satoshi. And what is the game ? The game is trading, ICO investment & blogging on steemit. My target is to collect around 333333 bits per installment. Total number of installments is fixed at 3333.  Here, I imagine 333333 bits = 1 emerald So, I have to hunt 3333 emeralds. My treasure hunting is going on ... Today's Stats: New hunts : <=>  2017-06-23 15:21:49 ->  1 emerald <=>  2017-06-23 21:52:48 ->  1 emerald  Total Hunts :  3 emeralds Do not touch my treasures : Find out the 10 hidden objects from the following picture within 24 hours and win  2 SBD  prize money. Only first finder will be paid. Picture is collected from online games site  hidden4fun My Avatar :) Tags : Bitcoin, Contest, Funny, Money, Cryptocurrency, Steemit,  This Post Was Pu...

A strong password generator program with source code

In my previous post  https://steemit.com/programming/@royalmacro/a-free-open-source-data-encryption-program-for-steemit-users  I share a data encrypton tool with source code, now, today here I share another program, a strong password generator with source code. This program will generate strong, hard-to-guess passwords. I’ll do it by hashing together “domain name”, “login/user id” & “a secure master key”. If you use the same secure master key for every password generations then you do not need to write down or, memorize your generated passwords. When you need your password then repeat the same procedure to re-generate it. If your “domain name”, “login/user id” & “a secure master key” are not different then you will generate the same password. If you use only one secure master key then you have to only memorize your master key, not the passwords. Lets try it ! Step by Step Development : Open a new project in Visual Basic 8. Select “Standard EXE”. ...

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

[repost to inform more people about it] An open source data encryption software for steemit users

I repost this article only for informing more people about this software I made. This encryption tool was developed in Visual Basic 8. This software is to be used  for encrypting any text data. As we know on Steemit Platform we need a very long passphrase to be used. And also  POSTING ,  ACTIVE ,  OWNER &  MEMO private key are very long.  It’s impossible to memorize this passphrases. So, what can we do ? Maximum users saved the data without encrypting it in their note pads, which is very dangerous. If hackers or, anyone get this data then he will gain access our accounts & for a result all accounts shall be compromised.  So, encryption is very important. Encrypted data can be saved everywhere & also be shared with anyone without any risk. I know there are a lot of free password keepers & encryption programs exist. But, maximum are not open source programs.   My main objective is to provide such type open-source progr...

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

  image credit (1) Japanese Macaques make snowballs for fun. (2) The chevrotain is an animal that looks like a tiny deer with fangs. (3) Turritopsis nutricula Immortal jellyfish is the only species known to live forever. (4) One million stray dogs and 500,000 stray cats live in New York City metropolitan area. Turritopsis nutricula Immortal jellyfish   image credit (5) Nine-banded armadillos always give birth to identical quadruplets. (6) The flying frog uses flaps of skin between its toes to glide. (7) It takes a sloth two weeks to digest its food.   Nine-banded armadillo   flying frogs   image credit (8) A narwhal tusk is actually an exaggerated front left tooth, and unlike most teeth, it's soft and sensitive on the outside with a tough interior. (9) Humpback whales create the loudest sound of any living creature. (10) The slowest mammal on earth is the tree sloth. It only moves at a speed of 6 feet (1.83 meters) per minute. slot...

photographs of very rare creatures "Gharial (Gavial)" [my 100% original work]

Today I share two photographs of very rare creature  Gharial  or,  Gavial . They are one kind of reptile. And they are also known as " fish-eating crocodile ". They are normally found in the northern India. The global wild gharial population is estimated at fewer than 235 individuals, which are threatened by loss of riverine habitat, depletion of fish resources, and entanglement in fishing nets. As the population has declined drastically in the past 70 years, the gharial is listed as  Critically Endangered  on the  IUCN Red List   (source wikipedia) . Read more about Gharial in  Wikipedia .  The gharial is one of the longest of all living crocodilians, measuring up to 6.25 m (20.5 ft), though it should be noted that this is an extreme upper limit, as the average adult gharial is only 3.5 to 4.5 m (11 to 15 ft) in size.With 110 sharp, interdigitated teeth in its long, thin snout, it is well adapted to catchin...

FAMINE IN AFRICA

Tags :   Life, Video, Youtube, Famine, Africa This Post Was Published On My Steemit Blog .  Earned : $00.00 SBD Converted to USD @0.9132$ Rate = $00.00 USD .  First Time heard about Steemit ? Click Here To Know...

Visiting deep inside the Sundarbans & spent days with Bawali - Episode #09

In the last October-November I visited Sundarbans, the world's one of the largest mangrove forest. It was also declared as world heritage site by UNESCO in 1997. In this forest a numerous wildlife species exist - birds, reptiles, fishes, amphibians and also the king of the forest "Royal Bengal Tiger". The ganges dolphins & crocodiles are also living in the canals of Sundarbans. Chital is a one kind of spotted deer living in this forest. The rural life in the area of this coastal forest is also very attractive. They basically maintain their lives by collecting honey, woods and fishes. In the native language they are called as Bawali. I spent some days with them. Here I share some of my tour photographs of Sundarbans and Bawali -- Bawalis are preparing to cook in the jungle Look at the sky through green tree branches and leaves in the jungle Deep Inside The Mangrove forest Sundarbans Camera : SONY Model : DSC-W710 Location : Sundarbans, West Bengal, India Sna...
Back to Top