Why do the resultant hash after mining has a leading no of zeroes in Blockchain verification

0 votes

I have only recently started delving into the concepts of Blockchain and still trying to get a hang on the process of Mining. In my understanding, a miner has to find a certain nonce, that is a random number, which should produce a hash on combining with the "challenge string" that includes:

- the transactions he want to include in the block

- and the previous block hash

The hash is basically a value having certain number of leading zeroes and this hash becomes the identifier of the block. The other nodes in the network run the said nonce through a hash function, say SHA256, and if it returns the same hash, the block is verified and added to the Blockchain.

My question is, when combining that "challenge string" and the CORRECT nonce, why does the corresponding hash of those values start with the prefix of zeros? How does that work?

Aug 10, 2018 in Blockchain by sabby
• 4,370 points
3,800 views

1 answer to this question.

0 votes

This is chosen by the DIFFICULTY EQUATION. In Bitcoin, the difficulty is algorithmically chosen based on the compute on the bitcoin network. This typically only goes up, but should the compute go down the dificulty will also go down. The algorithm adjusts dificulty to keep transaction verification time around 10 minutes.

The job of a Miner is to guess the nonce until he finds a hash that matches the set difficulty (say, 16 leading zeroes)

So, it is a pure guessing game. GPUs are very good at generating random numbers very quickly. That is why miners around the world are using top class GPUs to mine the bitcoin transactions.

answered Aug 10, 2018 by Christine
• 15,790 points

Related Questions In Blockchain

+1 vote
1 answer

How do i change the names of validating peers in IBM Bluemix blockchain?

IBM Bluemix Blockchain service Hyperledger Fabric v0.6 will ...READ MORE

answered Apr 11, 2018 in Blockchain by Perry
999 views
0 votes
1 answer

How do I send back ethers to the sender of the tokens in a smart contract?

Whenever a smart contract receives ether via ...READ MORE

answered May 30, 2018 in Blockchain by Perry
• 17,100 points
3,624 views
0 votes
1 answer
0 votes
1 answer

What is the previous block hash of block #4390176 in Ethereum Blockchain

1,226,797,074,502,984,598,563 Hope this helps! To know more, Enroll with Blockchain ...READ MORE

answered Sep 7, 2020 in Blockchain by Sayali
9,406 views
+1 vote
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,460 points
1,460 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,947 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,470 views
0 votes
1 answer

How to make sure transactions take no fee in a private Ethereum blockchain?

In a private ethereum network you have ...READ MORE

answered Mar 26, 2018 in Blockchain by Christine
• 15,790 points

edited Mar 26, 2018 by Christine 1,594 views
+1 vote
1 answer

I would like to create a blockchain network which will stay at the same level of complexity, is it possible?

You can very easily create a cryptocurrency having a ...READ MORE

answered Apr 4, 2018 in Blockchain by Christine
• 15,790 points
877 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP