At the core of any cryptocurrency, is a network of computers that ensure the safety and validity of each transaction in a blockchain and helps to gain the necessary agreement among distributed operations or multi-agent systems, such as cryptocurrencies, on a single data value or a single network state. This network is known as a consensus mechanism.
The safety and validity of each transaction were ensured by the consensus protocol, which is an essential component of any Blockchain network.