Consensus Mechanism
A Consensus mechanism is a fault-tolerant mechanism that is used in computer and blockchain systems to achieve the necessary agreement on a single data value or a single state of the network among distributed processes or multi-agent systems, such as with cryptocurrencies.
Types of Consensus Mechanism
Proof of work describes a system that requires a not-insignificant but feasible amount of effort in order to deter dos(denial-of-service) attacks and other malicious attacks. It requires to solve a computational challenging puzzle in order to create new blocks in Blockchain.
Proof-of-Stake mechanism achieve consensus by requiring users to stake an amount of their tokens so as to have a chance of being selected to validate blocks of transactions, and get rewarded for doing so. Priority is given to miners who have purchased the most stake in the blockchain system.
This form of consensus mirrors the election of members in governing bodies. Witnesse, those who validate transactions, are elected.
This kind of consensus mechanism is useful in decentralized file storage applications like storj.io, filecoin, where nodes prove they have legitimate capacity in their hardware. Sometimes also referred as PoStorage or PoCapacity.
A better alternative to PoW, consuming lesser computational resources. Each participating node needs to wait for a random amount of time and very first node to wake up from sleep gets a chance to create new block, which is then propagated through network. Requires Trusted Execution Environments ( TEE ) like Intel SGX, which are isolated part of memory, can only be accessed using certain set of instructions.