What is the consensus mechanism of popular science to blockchain

The "Coin All 101" series is a series of blockchain science popularized columns for new entry users, allowing zero-based partners to get started easily.

When you read some blockchain related materials, you will always see the term " consensus mechanism ", as well as English abbreviations such as PoW, PoS, DPoS . So let's talk today, what exactly is the consensus mechanism of the blockchain, and what does PoW, PoS, DPoS represent.

What is the consensus mechanism of the blockchain

Blockchain is often referred to as a tool for transmitting trust, and the trust behind this trust is the consensus mechanism . The blockchain can be regarded as a distributed ledger with the participation of the whole people. Then we need to formulate a set of rules that everyone agrees to accept to solve the problems of "how to record effectively" and "who chooses to record." Is the consensus mechanism of the blockchain.

To facilitate understanding, let us give an example. Six people in a dormitory are going to have dinner. After discussion, they choose to eat hot pot, so eating hot pot is a consensus formed by everyone . In the negotiation mode, the minority obeys the majority is the consensus mechanism for everyone to determine where to eat .

In the blockchain world, due to its decentralized nature, there is no central bookkeeping institution like a bank to ensure that all bookkeeping contents on the chain are consistent, so how to make the entire network reach consensus Vital. The consensus mechanism is used to solve this problem. It can be said that the consensus mechanism is the core of a distributed system .

In the consensus mechanism, PoW, PoS, and DPoS represent the three main accounting rules of the blockchain network. Their functions are very large and directly related to the distribution of accounting rights and related benefits. The three main consensus mechanisms are introduced below.

Second, the current three main consensus mechanisms

PoW (Proof-of-Work) workload proof mechanism

A proof of work is a certificate that confirms the amount of work you have done. The proof-of-work mechanism is to prove your contribution value through the workload , and then determine the bookkeeping right and reward according to the size of the contribution value.

In the blockchain world, this proof process relies on computers to perform mathematical operations. It can be simply understood that, when everyone answers the same question together, the person who calculates first has the right to keep accounts and can get the corresponding reward, which is the digital token generated by the network. This is also the process of BTC output. In the BTC network, whoever solves the problem first can get BTC as a reward.

The advantages of PoW are: first, the accounting rights and rewards are determined by the workload, fairness and fairness , and fair competition between nodes (users); and second, complete decentralization , which does not require a centralized management agency, The system can operate on its own accord.

The disadvantages are waste of energy and inefficiency . Participants calculate the same subject together, but only one person can finally get the right to book. All others do nothing. However, a large amount of power resources will be consumed in this process. For example, BTC is generated using the PoW consensus mechanism, which consumes billions of dollars of electricity each year. In addition, the number of nodes on the chain is huge. Based on the point-to-point characteristics, when the first person who answers the question announces and claims the accounting rights to the entire network, this process is very time-consuming, so under the PoW mechanism The efficiency of reaching consensus on the entire network is extremely poor.

PoS (Proof-of-Stake) Proof-of-Stake Mechanism

Proof of equity is based on the system's related equity—tokens, as a consideration for dividends and selection of bookkeepers . The longer the number of tokens held, the longer the number of token days (the number of token days = the number of holdings * the holding time), the easier it is to be selected as a user representative for bookkeeping. Because the token is the holder's equity in the blockchain system, this method is called equity-based certification, which is similar to the stock dividend system.

The advantage of PoS is that first, it consumes less energy , compared to PoW, it does not require a lot of energy consumption; second, the cost of evil is high , and if you want to attack the network, you must have 51% of the number of token days, not only a lot of It is difficult to hold a long enough token, and thirdly, it takes a short time to reach a consensus . If the network environment is good, millisecond speed can be achieved.

There are two disadvantages of PoS. First, tokens tend to be centralized , because the distribution of income depends on the amount and time of holding the tokens. In order to obtain more tokens, the tokens will gradually be concentrated; Secondly, if the liquidity becomes worse , there will be income distribution when the token is held, and the holder will not have the motivation to cash out, which will result in the poor liquidity of the token.

DPoS (DelegatedProof-of-Stake)

DPoS is generated on the basis of PoS. Under the PoS mechanism, people who hold a small number of tokens rarely have the opportunity to be elected bookkeepers. In order to be able to obtain the right to book, they discussed the use of the DPoS mechanism, that is, by voting, the producers were selected to perform their rights and obligations on their behalf . On behalf of the nodes take turns in bookkeeping to obtain dividends, and the node gets a portion of the total bookkeeping (mining) revenue as a reward, which is distributed to voting users. If the producer is incompetent, he may be voted out at any time. The voting weight and distribution income are calculated according to the percentage of the total number of crypto tokens held. The voting result of 51% of shareholders is irreversible and binding.

In fact, the DPoS mechanism is similar to a joint-stock company in reality. Ordinary shareholders cannot enter the board of directors to participate in the management of the company. They must form a board of directors by voting for representatives, and elect people who can represent their rights and interests based on voting weight. In the chain, an agent is elected to keep accounts.

The biggest advantage of DPoS is that the number of bookkeeping nodes is greatly reduced and the bookkeeping efficiency is high . The disadvantage is that the degree of decentralization is weakened, and accounting is performed by the selected representatives, and there is a certain degree of centralized control.

Third, the conclusion

At present, no consensus mechanism is perfect, and each has its own shortcomings. With the continuous development of blockchain technology, the consensus mechanism will continue to be optimized, and the future is expected.

We will continue to update Blocking; if you have any questions or suggestions, please contact us!

Share:

Was this article helpful?

93 out of 132 found this helpful

Discover more

Blockchain

Behind Alipay and WeChat Joint "Sniper" Coin: Competition in cryptocurrency stocks

Text | Mutual Chain Pulse · Liang Shan Hua Rong Zhao Changpeng and He Yi did not expect that the road to returni...

Blockchain

Long text: the change of the encrypted asset exchange and the risk challenge

Encrypted asset exchanges, like traditional exchanges, are products that develop to a certain period of time. With th...

Blockchain

Coinbase UK's 2018 net profit margin was 4.3%, up 2 points from 2017

Do you think Coinbase makes money? On April 18, according to Cindesk , according to Reuters speculation and calculati...

Market

Exclusive Interview with Yuga Labs We are more like Tencent of Web3, constantly changing the rules of NFT games

During the Token2049 conference, BlockBeats reporter had a conversation with Daniel Alegre, the CEO of Yuga Labs, dis...

Blockchain

The coin was stolen for the first time, and the 7000BTC was missing.

On the morning of May 8, the world-renowned cryptocurrency exchange currency announced that the currency security was...

Blockchain

FTX Founder SBF The Astonishing Fall of the Former Cryptocurrency King

In the development process of a new technology, there will always be a moment when the hype is so common that it is t...