Example of proof of work
Here's an example of how Bitcoin uses proof of work to maintain the integrity of its blockchain.
When Bitcoin transactions occur, they go through a security verification and are grouped into a block to be mined. Bitcoin's proof-of-work algorithm then generates a hash for the block. The algorithm Bitcoin uses is called SHA-256, and it always generates hashes with 64 characters.
Miners race to be the first to generate a target hash that's below the block hash. The winner gets to add the latest block of transactions to Bitcoin's blockchain. They also receive Bitcoin rewards in the form of newly minted coins and transaction fees. Bitcoin has a fixed maximum supply of 21 million coins, but, after that, miners will continue receiving transaction fees for their service.
The proof-of-work algorithm used by Bitcoin aims to add a new block every 10 minutes. To do that, it adjusts the difficulty of mining Bitcoin depending on how quickly miners are adding blocks. If mining is happening too quickly, the hash computations get harder. If it's going too slowly, they get easier.
Related investing topics