The consensus mechanism (also known as the consensus protocol/algorithm) is to ensure that all nodes on the block are synchronized with each other (reach agreement) the rule of". In other words, it is a protocol that allows node validators to agree on which transactions can be added to the block without having to trust each other.
According to different application scenarios of blockchain, there are many consensus mechanisms, such as PoW, PoS, DPoS, PoA, etc. Although these mechanisms differ in terms of energy usage, security, and scalability, they all work to ensure that transaction records on nodes are trustworthy and secure.
For the two most common types of consensus mechanisms at present, please check the related entries: "What is Proof of Work PoW" and "What is Proof of Stake PoS".
You may also be interested in the following:
- What is blockchain?
- What is the blockchain impossible triangle?