**Consensus mechanism of wisdom chain document repository**

Time:2020-12-1

At present, there is a consensus mechanism in the global public chain infrastructure, which stipulates how to compete for accounting among nodes. At present, the most mainstream consensus mechanisms are ow, POS, dpos, pbft and dbft, with different emphasis on speed, security and centralization. However, some public chains choose to use the hybrid consensus mechanism. For example, ZIL adopts the hybrid consensus mechanism of pow + pbft, and wisdom chain adopts the hybrid consensus mechanism of dpos + pow. What are the advantages of using the hybrid consensus mechanism?

First of all, the early bitcoin and Ethereum adopted a single consensus mechanism, which resulted in their slow running speed and being unable to be used in the business environment. Although EOS uses the consensus mechanism of dpos, all transactions are recorded by the super node on the chain, which has greatly improved the efficiency, but it has lost another major feature of blockchain – the security brought by decentralization Integrity.

Therefore, the public chain with a single consensus mechanism is doomed to have both efficiency, security and decentralization.

Advantages of hybrid mechanism

The biggest advantage of hybrid mechanism is that it can learn from each other’s strengths. Hybrid consensus means that two or more consensus mechanisms are applied to the underlying architecture of the same blockchain public chain. Reasonable use of mixed consensus can make up for the defects of low efficiency, loss of security protection or sacrifice of centralization degree caused by single consensus mechanism.

Wisdom chain’s ideas in this regard are quite creative. It adopts the dpos + POW hybrid mechanism, and the two accounts run at the same time to make up for the disadvantage of any single consensus mechanism. Dpos mechanism has high efficiency. It is responsible for selecting legal transactions from the transaction storage pool, packaging them into blocks, and then broadcasting them to the network through P2P protocol. The implied POW requires miners to complete a certain amount of work proof to prevent the main chain from branching. At the same time, the elimination mechanism is established. If the nodes make false accounts or biased records within 30 seconds, they will be eliminated. As a result, speed, security and decentralization are taken into account.

Of course, there are still some problems to be solved in the hybrid consensus mechanism, but any technology is not achieved overnight, and it is impossible to have a smooth journey. However, the wisdom chain team made a detailed and in-depth thinking on the key technical difficulties and put forward feasible technical solutions. In the future, with the popularization of blockchain technology, the problem of hybrid consensus mechanism will surely be solved one by one.

Recommended Today

Practice of query operation of database table (Experiment 3)

Following the previous two experiments, this experiment is to master the use of select statements for various query operations: single table query, multi table connection and query, nested query, set query, to consolidate the database query operation.Now follow Xiaobian to practice together!Based on the data table (student, course, SC, teacher, TC) created and inserted in […]