Blockchain consensus mechanism is a procedure to reach an agreement in the network.Consensus mechanism is required in decentralized world to prevent chaos and ensure decision-making.Proof-of-Work is a consensus mechanism where miners solve complex puzzles to add blocks in blockchain.The fastest miner who solves the puzzle first gets their block added to the blockchain.