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,350 points
60 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 10, 2018 in Blockchain by Perry
114 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,020 points
465 views
0 votes
1 answer
0 votes
1 answer

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

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

answered Aug 6, 2018 in Blockchain by ariaholic
• 7,340 points
93 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
173 views
0 votes
1 answer
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 127 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
63 views