The workers (or miners) are tasked with uncovering new coins and do this by computing a complex algorithm.
Each worker is a powerful computer that runs the blockchain software and helps to keep it running by participating in the relay of information.
Anyone can run a worker, you just download the blockchain software and leave a certain port open (the drawback is that it consumes energy and storage space – the bitcoin network at time of writing takes up about 150GB).
The workers take a transaction (or block) and add it to the blockchain. They do this by solving a complex mathematical puzzle
and including the answer in the block. The puzzle that needs solving is to find a number that, when combined with the data in the block and passed through a hash
function, produces a result that is within a certain range. In this exmaple the puzzle is to find a hash that starts "00f0". Real blockchains, like Bitcoin, have a much harder puzzle to solve.
The number that solves the puzzle is called a “nonce”, which is a concatenation of “number used once.”
The more compute power you have, the more likely you are to find the nonce and claim the reward.