header banner

What Do Cryptocurrency and Blockchain Consensus Mechanisms Mean?

What Is a Consensus Mechanism?

A consensus mechanism is a program used in blockchain systems to achieve distributed agreement about the ledger's state. Generally, it is implemented in a network with many processes and users. Cryptocurrencies, blockchains, and distributed ledgers benefit from their use because the consensus mechanism replaces much slower human verifiers and auditing.

For instance, the Bitcoin blockchain uses a mechanism called Proof-of-Work (PoW), which requires computational power to solve an encrypted puzzle, called the hash. After the hash is solved by one miner (or a group working together), Bitcoin's PoW requires that every node on the network verifies the data that has been changed by checking:

  • The data structure
  • The block header hash
  • The block timestamp
  • The block size
  • The first transaction

It then completes a long transaction verification checklist. This verification takes much less time than the process of solving the hash, which is called mining, and is orders of magnitude less time-consuming than human verification.

Key Takeaways

  • A consensus mechanism is any method used to achieve agreement, trust, and security across a decentralized computer network.
  • In the context of blockchains and cryptocurrencies, proof-of-work (PoW) and proof-of-stake (PoS) are two of the most prevalent consensus mechanisms.
  • Consensus mechanisms play an essential part of securing information by encrypting it and using automated group verification.

History of Consensus Mechanisms

When computers and networks began gaining popularity in the 1980s and 90s, shared databases were created so that multiple users could access the information they stored. Most had a centralized database with permissions that users accessed from different stations. This setup evolved into centralized networks with administrators who granted user rights and maintained the integrity of the data.

These shared databases became known as distributed ledgers because they recorded information and were networked for many users in different locations to access. One of the most significant issues that needed addressing was that of preventing data tampering and unauthorized access, whether it was malicious or not. A method to automate distributed database management was required to ensure data was not changed.

This need led to the creation of distributed autonomous consensus, where programs on a network agreed on a database's state using cryptographic techniques. Agreement was designed to be reached using encryption algorithms to create long strings of alphanumeric numbers—called a hash—which were then verified by programs running on the network. A hash only changes if the information input into the hashing algorithm is changed, so the programs were designed to compare hashes to ensure they matched.

When each program running on the network created a matching alphanumeric string, the data was said to be agreed upon by consensus of the network. Thus, consensus mechanisms were made, with credit generally given to Satoshi Nakamoto, the anonymous Bitcoin creator. However, many people worked on consensus mechanisms for years before Nakamoto released the whitepaper that made Bitcoin famous.

Data and computer scientists such as Moni Naor, Cynthia Dwork, Adam Beck, Nick Szabo, and many others worked on and contributed to developing networked consensus mechanisms.

Types of Consensus Mechanisms

There are different kinds of consensus mechanism algorithms, each of which works on different principles.

The proof of work (PoW) is a common consensus algorithm used by the most popular cryptocurrency networks like Bitcoin and Litecoin. It requires a participant node to prove that the work done and submitted by them qualifies them to receive the right to add new transactions to the blockchain. However, the bitcoin mining mechanism requires high energy consumption and long processing times.

The proof of stake (PoS) is another common consensus algorithm that evolved as a low-cost, low-energy consuming alternative to the PoW algorithm. It involves allocating responsibility in maintaining the public ledger to a participant node in proportion to the number of virtual currency tokens held. However, this has the drawback that it incentivizes hoarding instead of spending.

Proof of History (PoH) was developed by the Solana Project. It is similar to Proof of Elapsed Time (PoET), which encodes the passage of time itself cryptographically to achieve consensus without expending many resources.

While PoW and PoS are by far the most prevalent in the blockchain space, there are other consensus algorithms like Proof of Capacity (PoC) which allow sharing of memory space of the contributing nodes on the blockchain network. The more memory or hard disk space a node has, the more rights it is granted for maintaining the public ledger. Proof of Activity (PoA), used on the Decred blockchain, is a hybrid that makes use of aspects of both PoW and PoS. Proof of Burn (PoB) requires transactors to send small amounts of cryptocurrency to inaccessible wallet addresses, in effect "burning" them out of existence.

Future of Consensus Mechanisms

While used by all cryptocurrencies, consensus mechanisms are just as important in distributed ledger networks used by enterprises. Platforms have been created for business and government use, allowing each entity to choose from modules created for their needs, backed by consensus mechanisms. Hyperledger Fabric, one of the more well-known distributed ledger platforms, provides different consensus mechanisms. For example, one entity might not need proof-of-work, considered byzantine fault tolerant, whereas another might not need that level of consensus.

Cryptocurrency's future may be unknown and volatile, but consensus mechanisms remain an essential part of emerging technology. They ensure data safety and integrity and keep those with nefarious intentions locked out of distributed ledgers.

Which Consensus Mechanism Is Best?

VIDEO: Consensus Mechanisms - Everything You Need To Know About Blockchain and Crypto Consensus Mechanisms
Crypto Sketch 101

The best consensus mechanism is one that fits the needs of the users. Proof of work is thought to be best for Bitcoin, while proof of stake was adopted by Ethereum and is believed to be best by its community. Other mechanisms might work better for enterprises, businesses, or personal uses.

What Is an Example of a Consensus Mechanism?

VIDEO: 12 Consensus Mechanisms + How they Work (Pros/Cons)
Whiteboard Crypto

Proof of stake is one example. In this mechanism, users "stake" their tokens to be given the privilege of conducting work on the blockchain for rewards like transaction fees.

What Are the Types of Consensus Mechanisms?

VIDEO: All Major Blockchain Consensus Algorithms Explained | Consensus Mechanism in Blockchain
Learn with Whiteboard

Several have been created, but only a few have been implemented. Some types besides proof of work and proof of stake are delegated proof of stake, proof of importance, proof of elapsed time, proof of authority, and proof of capacity. Each uses different concepts to validate data changes.

The Bottom Line

Consensus mechanisms have become an essential aspect of distributed ledgers, databases, and blockchains because much of the world is becoming more digital. Ownership of physical assets is being tokenized on ledgers and blockchains, people without access to financial services have access through blockchains, and businesses need data security more than ever.

Consensus mechanisms verify data inputs and outputs, which translates to automatically auditing the digital transactions that are common today—without human oversight or intervention. They create an environment where you don't need to trust that the other party in a transaction is honest because they ensure the information is unalterable and secure.

Investing in cryptocurrencies and other Initial Coin Offerings (“ICOs”) is highly risky and speculative, and this article is not a recommendation by Investopedia or the writer to invest in cryptocurrencies or other ICOs. Since each individual's situation is unique, a qualified professional should always be consulted before making any financial decisions. Investopedia makes no representations or warranties as to the accuracy or timeliness of the information contained herein. As of the date this article was written, the author does not own cryptocurrency.


Article information

Author: Marc Luna

Last Updated: 1704517562

Views: 773

Rating: 3.8 / 5 (42 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Marc Luna

Birthday: 1933-05-13

Address: 53333 Bernard Knoll, Seanfurt, NC 67514

Phone: +4626386646496797

Job: Article Writer

Hobby: Coin Collecting, Painting, Soccer, Reading, Camping, Pottery, Fencing

Introduction: My name is Marc Luna, I am a vibrant, treasured, forthright, proficient, multicolored, ingenious, apt person who loves writing and wants to share my knowledge and understanding with you.