Position: Home page » Blockchain » The role of distributed consensus in blockchain

The role of distributed consensus in blockchain

Publish: 2021-05-07 23:17:21
1. blockchain is a decentralized distributed ledger system, which can be used to register and issue digital assets, property rights certificates, points, etc., and transfer, pay and trade in a point-to-point manner. Compared with the traditional centralized ledger system, blockchain system has the advantages of complete disclosure, tamper proof, multiple payment prevention, and does not rely on any trusted third party
e to the high network delay in peer-to-peer network, the transaction order observed by each node can not be completely consistent. Therefore, the blockchain system needs to design a mechanism to reach a consensus on the sequence of transactions that occur in the same time. This algorithm to reach consensus on the order of transactions in a time window is called consensus mechanism
-- chainknow
2. Chongqing jinwowo analysis distributed consensus algorithm:
the blockchain system uses the distributed consensus algorithm to generate and update data, which eliminates the possibility of illegal tampering with data from the technical level, thus replacing the third-party intermediary institutions in traditional applications to ensure trust and transaction security, and recing the time cost, human cost and resource consumption caused by maintaining credit.
3. How to reach a consensus on decentralized networks
in the blockchain system, there is no centralized bookkeeping institution like a bank, so it is very important to ensure the consistency of each transaction on all bookkeeping nodes, that is, to make the whole network reach a consensus. The consensus mechanism solves this problem
at present, the main consensus mechanisms are workload proof mechanism POW and equity proof mechanism POS
POW determines your chances of getting bookkeeping rights by evaluating your workload. The greater the workload, the more likely you will get this bookkeeping opportunity
POS determines your chances of getting bookkeeping rights by evaluating the number and ration of tokens you hold. This is similar to the stock dividend system, holding a relatively large number of shares can get more dividends
the principle of dpos is similar to that of POS, except that some "deputies to the National People's Congress" are selected. The main difference from POS is that the node elects several agents, which are verified and recorded by the agents
with the development of technology, more advanced consensus mechanisms may emerge in the future.
4. Sludge specific resistance is a comprehensive index of sludge filtration characteristics. Its physical meaning is: the resistance of unit mass of sludge in unit filtration area when it is filtered under a certain pressure. The purpose of this value is to compare the filtration performance of different sludge (or the same sludge with different amount of mixture). The larger the sludge specific resistance is, the worse the filtration performance is. The curve showing the relationship between the gas flow rate treated by the adsorption bed and the pollutant concentration in the outlet gas is called breakthrough curve. For details of this concept, please refer to line 9 from the bottom on page 278 of air pollution control engineering, Second Edition, published by higher ecation press~
5. Jinwowo network analysis: consensus mechanism is how to reach a consensus among all accounting nodes to determine the validity of a record, which is not only a means of identification, but also a means of preventing tampering.
6.

1、 The types of mobile phones are not exactly the same: g9700 belongs to 4G / 3G mobile phones; G9730 belongs to 5g mobile phone

Second, the screen size and resolution are different: the main screen size of g9700 is 5.8 inches, the narrow frame is 3.42mm, and the screen proportion is high 84.49%, the main screen resolution is 2280 x 1080 pixels; G9730 home screen size 6.1 inches, narrow frame 04mm, screen ratio The resolution of the main screen is 3040x1440 pixels

Third, the camera configuration is different: g9700 has three cameras, including two rear cameras, which are 16 million pixels + 12 million pixels, and the front camera is 10 million pixels; G9730 has four cameras, one more 12 megapixel rear camera than g9700

Fourth, the overall size and weight of the mobile phone are different: the size of g9700 mobile phone is 142.2x69.9x7.9mm, the weight is not the same 150g The size of g9730 mobile phone is 149.9x70.4x7.8mm, and the weight of g9730 mobile phone is 157g

(5) the color of mobile phone is different: g9700 mobile phone has four colors: bright jade white, carbon crystal black, glass green and lime yellow; G9730 has one less lime yellow color than g9700


7. The reasons are as follows: 1. The United States does not allow the suspect to be punished personally, that is to say, if the person does not speak, there is no way! American suspects have the right to silence. Therefore, no one can help him if he doesn't speak. 2. In the United States, there is always a law of egg pain, which can be used to account for the whereabouts of the victims and demand a light sentence! That's why the suspect didn't speak. I didn't hurt anyone, no body! So this can be a lighter sentence. 3. What's more painful is that there is no death penalty in the state where Zhang Yingying went. The reason why the case is not closed is that there are no bodies! According to the law of the United States, it may be the one who got off the bus half way and lost himself!! Because there's no body! Therefore, only Chinese law is just!
8. What do pow, POS and dpow mean
when it comes to blockchain, we must talk about its consensus mechanism. If we don't understand the consensus mechanism of blockchain, we can't understand the real meaning of blockchain. So, what about the consensus mechanism of today's blockchain
what is the consensus mechanism
what is consensus? Take its literal meaning, that is & quot; Common understanding & quot
people are different, not only in stature, appearance and ability, but also in culture, views, ideas, interests and so on
consensus, in short, is the consensus reached by members of a group in a certain aspect
we have learned that trust is a major pain point in the operation of society. Banks have their own credit system. In the past, the financial system only served a few entrepreneurs, because the establishment of credit system cost a lot. Later, Alipay had sesame credit. Credit has already been related to many aspects of life, credit card size, spending amount of flowers, sesame credit and high going abroad can be avoided. We are enjoying the convenience of credit
the essence of blockchain is decentralization, and the core of decentralization is consensus mechanism. The consensus mechanism on blockchain mainly solves the problems of who constructs the block and how to maintain the unity of blockchain
the goal of the blockchain consensus mechanism is to make all honest nodes save consistent blockchain views, while meeting two properties:
1) consistency: the prefix part of the blockchain saved by all honest nodes is exactly the same
2) effectiveness: the information released by an honest node will be recorded in its own blockchain by all other honest nodes
the confidence of blockchain is mainly reflected in the fact that users distributed in the blockchain do not need to trust the other party of the transaction or a centralized organization, and only need to trust the software system under the blockchain protocol to realize the transaction
what is the consensus mechanism? What do pow, POS and dpow mean
the necessity of consensus mechanism
in a distributed system, multiple hosts form a network cluster through asynchronous communication. In such an asynchronous system, state replication between hosts is needed to ensure that each host can reach a consensus. Error messages may appear in asynchronous systems and propagate continuously, so it is necessary to define fault-tolerant protocols in default unreliable asynchronous networks to ensure that all hosts reach a safe and reliable state consensus, which is the necessity of consensus mechanism
the premise of such self-confidence is the consensus mechanism of the blockchain, that is, in a market of mutual distrust, the sufficient and necessary condition for each node to reach an agreement is that each node will spontaneously and honestly abide by the pre-set rules in the agreement to judge the authenticity of each record for the sake of maximizing its own interests, Finally, the records judged to be true are recorded in the blockchain. Attachments-2018-08-9yy7vrha5b738e3d96021. JPG
in other words, if each node has its own independent interests and competes with each other, it is almost impossible for these nodes to conspire to cheat you, especially when they have public reputation in the network. Blockchain technology is the use of a set of mathematical algorithms based on consensus to establish & quot; Trust & quot; Network, so as to create new credit through technical endorsement rather than centralized credit institutions
Introction to several consensus mechanisms in today's blockchain
there are many consensus mechanisms in blockchain, but none of them is perfect, or suitable for all application scenarios
POW workload proof
each node in the whole system provides computing power (referred to as computing power) for the whole system. Through a competitive mechanism, the node with the best computing work can be rewarded by the system, that is, to complete the allocation of newly generated currency. It is simply understood that more work pays more. Currency blockchains such as bitcoin and LTC apply POW mechanism
advantages
completely decentralize the nodes to get in and out freely, the algorithm is simple, easy to realize, and the cost of destroying the system is huge. As long as the computing power of the network destroyer does not exceed 50% of the total computing power of the network, the transaction status of the network can reach an agreement
disadvantages
waste energy, which is the biggest disadvantage. It is difficult to shorten the block confirmation time, for example, bitcoin can only do 7 transactions per second, It is not suitable for commercial application. A new blockchain must find a different hash algorithm, or it will face bitcoin's computing power attack. It has high requirements on the performance of the nodes, and the network environment is prone to bifurcation. It needs to wait for multiple confirmations, and can not reach the final agreement
POS proof of equity
also known as proof of equity, which is similar to you deposit your property in the bank, This model will allocate interest to you according to the amount and time of cryptocurrency you hold< Advantages
low requirements for node performance and short consensus time
disadvantages
there is no final consistency, so checkpoint mechanism is needed to make up for the finality
dpow is an evolutionary scheme of pos. in conventional POW and POS, any newly added block needs to be confirmed by all nodes of the whole network, which greatly affects the efficiency
dpos is similar to the voting mechanism of modern board of directors, which elects representatives to vote and make decisions. The N selected accounting nodes are used for the creation, verification, signature and mutual supervision of new blocks, which greatly reces the time and computational cost of block creation and confirmation
advantages
greatly rece the number of nodes participating in verification and accounting, which can achieve second level consensus verification
disadvantages
sacrifice the concept of decentralization, which is not suitable for public chain
pbft practical Byzantine fault tolerance
practical Byzantine fault tolerance mechanism is a kind of adoption & quot; Permission to vote, minority subject to majority & quot; The consensus mechanism allows Byzantine fault tolerance, allows strong supervision nodes to participate, has the ability of authority classification, higher performance and lower energy consumption, and each round of bookkeeping will be jointly elected by the whole network nodes, allowing 33% of nodes to do evil, and the fault tolerance rate is 33%. Practical Byzantine fault tolerance is especially suitable for the application scenario of alliance chain<
advantages
will deviate from centralization, the existence of cryptocurrency and reward mechanism will proce Matthew effect, making the poor poorer and the rich richer in the community, achieving high consensus efficiency and realizing high-frequency trading
disadvantages
when only 33% of the nodes in the system are running, the system will stop running
dbft authorizes Byzantine fault tolerance
this mechanism is to use rights to select bookkeeper, Then bookkeepers reach a consensus through Byzantine fault-tolerant algorithm. The core of Byzantine fault tolerance mechanism is to ensure the system's finality to the maximum extent, so that the blockchain can be applied to real financial application scenarios
advantages
Professional bookkeeper can tolerate any type of error, bookkeeping is completed by multiple people, each block has finality, no bifurcation, the reliability of the algorithm has strict mathematical proof
disadvantages
when one-third or more bookkeepers stop working, the system will not be able to provide services, when one-third or more bookkeepers jointly commit crimes, The system may be bifurcated
pool verification pool
based on traditional distributed consistency technology and data verification mechanism
advantages
it can work without cryptocurrency. Based on the mature distributed consistency algorithms (pasox, raft), it realizes second level consensus verification
disadvantages
the degree of decentralization is not as good as bitcoin, which is more suitable for the multi center business model with multi participation
Paxos
this is a traditional distributed consensus algorithm, which is a consensus mechanism based on election leaders. The leader node has absolute authority, and allows strong supervision node to participate, which has high performance and low resource consumption. Generally, all nodes have wired access mechanism, but there is no malicious node in the election process, which is not fault-tolerant< In Paxos algorithm, nodes are divided into three types:
proposer: put forward a proposal and wait for everyone's approval. The client often plays the role
acceptor: responsible for voting on the proposal. Usually, the server plays this role
learner: is informed of the result of the case settlement, and unifies with it, and does not participate in the voting process. Maybe the client or server
Paxos can ensure that the system can reach a consensus when more than 50% of the normal nodes exist
REBO consensus mechanism
REBO consensus algorithm enables a group of nodes to form a consensus based on the special node list. The initial special node list is like a club. To accept a new member, it must be voted by 51% of the members of the club. Consensus follows the & quot; 51% rights;, Outsiders have no influence. Since the club starts with centralization, it will always be, and if it starts to corrupt, shareholders can do nothing. Like bitcoin and peercoin, the reborn system separates shareholders from their voting rights, so it is more centralized than other systems
peercoin
peercoin (PPC) is a combination of proof of pow workload and proof of POS equity. POW is mainly used to issue currency. In the future, with the increase of mining difficulty, the output will decrease, and the system security will be mainly maintained by POS
in the blockchain network, e to different application scenarios, different goals are designed, and different blockchain systems adopt different consensus algorithms. Each consensus algorithm is not perfect and has its own advantages and limitations
blockchain solves the problems of transmitting trusted information and value transfer on untrusted channels, while consensus mechanism solves the problem of how blockchain achieves consistency in distributed scenarios
although the blockchain is still in the early stage of development, and the instry development is still facing some obstacles, the society has recognized the value of the blockchain enough, the pace of blockchain development will never stop, and the instry development will certainly find a way to break through the obstacles.
Hot content
Inn digger Publish: 2021-05-29 20:04:36 Views: 341
Purchase of virtual currency in trust contract dispute Publish: 2021-05-29 20:04:33 Views: 942
Blockchain trust machine Publish: 2021-05-29 20:04:26 Views: 720
Brief introduction of ant mine Publish: 2021-05-29 20:04:25 Views: 848
Will digital currency open in November Publish: 2021-05-29 19:56:16 Views: 861
Global digital currency asset exchange Publish: 2021-05-29 19:54:29 Views: 603
Mining chip machine S11 Publish: 2021-05-29 19:54:26 Views: 945
Ethereum algorithm Sha3 Publish: 2021-05-29 19:52:40 Views: 643
Talking about blockchain is not reliable Publish: 2021-05-29 19:52:26 Views: 754
Mining machine node query Publish: 2021-05-29 19:36:37 Views: 750