Producing a proof of work can be a random process with low probability, so that a lot of trial and error is required on average before a valid proof of work is generated.
Bitcoin uses the Hashcash proof of work. What is Bitcoin Mining Difficulty? The Computationally-Difficult Problem Bitcoin mining a block is difficult because the SHA hash of a block’s header must be lower than or equal to the target in order for the block to be accepted by the network.
This problem can be simplified for explanation purposes: The hash of a block must start with a certain number of zeros. The probability of calculating a hash that starts with many zeros is very low, therefore many attempts must be made.
In order to generate a new hash each round, a nonce is incremented. See Proof of work for more information. The Bitcoin Network Difficulty Metric The Bitcoin mining network difficulty is the measure of how difficult it is to find a new block compared to the easiest it can ever be.
It is recalculated every blocks to a value such that the previous blocks would have been generated in exactly two weeks had everyone been mining at this difficulty.
This will yield, on average, one block every ten minutes. As more miners join, the rate of block creation will go up. As the rate of block generation goes up, the difficulty rises to compensate which will push the rate of block creation back down.
Any blocks released by malicious miners that do not meet the required difficulty target will simply be rejected by everyone on the network and thus will be worthless. The Block Reward When a block is discovered, the discoverer may award themselves a certain number of bitcoins, which is agreed-upon by everyone in the network.
Currently this bounty is 25 bitcoins; this value will halve everyblocks. See Controlled Currency Supply.