#Trump100Days To achieve consensus in blockchain, there are mechanisms called Proof of Work and Proof of Stake. The idea of PoW was first proposed in 1993 by Moni Naor and Cynthia Dwork as a mechanism to combat DoS attacks and spam.
PoW requires network participants to perform complex computational tasks to prove that they have spent a certain amount of computational resources (time, energy). In crypto, for example, this means that whoever solves the problem first gets the right to add a new block to the blockchain and is rewarded with a certain amount of cryptocurrency.
At the core of PoW is the mining process. Miners compete to solve mathematical problems, and the first one to find a solution can add a block to the chain and receive a reward in the form of cryptocurrency. Technically, this process involves finding a value that, when passed through a hash function along with the data of the previous block and the transaction network, will yield a hash that meets certain difficulty criteria.