Consensus algorithm

An algorithm that allows the computers of users in a network of computers to reach a consensus on what data is incorrect and what is correct.

Consensus algorithms can be used, for example, to prevent network errors and attacks. The best-known consensus algorithm include proof of work and proof of stake.