A Consensus Mechanism is a necessity for blockchain protocols as it allows the blockchain to achieve agreements across a decentralised network of nodes/computers. The consensus mechanism ensures that the blockchain is functioning efficiently and securely, in real-time so that every transaction taking place is legitimate. While both Proof-of-Work (PoW) and Proof-of-Stake (PoS) consensus mechanisms run differently, they both offer unique pros and cons.