What is blockchain consensus mechanism
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
as a data structure that stores data in chronological order, blockchain can support different consensus mechanisms. Consensus mechanism is an important component of blockchain technology. The goal of blockchain consensus mechanism is to make all honest nodes keep consistent blockchain view, and satisfy two properties at the same time:
1) consistency. The prefix part of the blockchain saved by all honest nodes is exactly the same
2) effectiveness. The information released by one honest node will be recorded by all other honest nodes in their own blockchain.
one sentence introction: the more you do, the more you get
2. POS proof of stake
in a word: the more you hold, the more you get< Pbft: practical Byzantine fault tolerance
3. Pbft: practical Byzantine fault tolerance
Introction: it provides (n-1) / 3 fault tolerance on the premise of ensuring the activity and safety< Dbft: Byzantine fault tolerant algorithm authorized by delegated BFT
Introction: dbft mechanism adopted by ant is that bookkeepers are selected by rights and interests, and then bookkeepers reach a consensus through Byzantine fault tolerant algorithm
5. Pool verification pool
is based on traditional distributed consistency technology and data verification mechanism
chainnova is a blockchain company. I feel it's very good. Although I don't know any hash algorithm, I still know a little bit.
pos: POS is a consensus algorithm in the public chain, which can be used as a replacement of pow algorithm. POW is a mechanism to ensure the security of bitcoin, Ethereum and many other blockchains, but POW algorithm is criticized for destroying the environment and wasting power in the process of mining. POS tries to solve these problems by replacing the concept of mining with a different mechanism
POS mechanism can be described as a kind of virtual mining. POS mainly relies on the token in the blockchain itself. In pow, a user may buy a computer for 1000 dollars, join the network to mine and proce new blocks, and get a reward. In POS, users can buy tokens of equal value with us $1000 and put them into the POS mechanism as deposit, so that users have the opportunity to generate new blocks and get rewards. In pow, if users spend $2000 on hardware equipment, they will of course get twice the computing power to mine, thus getting twice the reward. Similarly, if you invest twice as much token as the deposit in the POS mechanism, you have twice as much chance to get the right to generate new blocks.
blockchain is a decentralized distributed ledger system. Due to the high network delay in the 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".
consensus mechanism , in short, is an algorithm to reach a consensus on the sequence of things in a period of time
on the blockchain, the consensus mechanism is like the law of a country, maintaining the normal operation of the blockchain world. On the blockchain, everyone has an account book that records all transactions on the chain. When a new transaction is generated on the chain, everyone receives this information at a different time. Some people who want to do bad things may publish some wrong information at this time. At this time, one person needs to verify the information received by all people, Finally, publish the most correct information
At present, there are three common consensus mechanisms:1. Proof of work - Pow is one of the most well-known consensus mechanisms. As a literal explanation, POW means that the more work you do, the more profit you get. The job here is to guess the number, who can guess the only number the fastest, who can be the information publicist
Proof of stake POS is also a kind of consensus proof, which is similar to stock certificate and voting system, so it is also called "stock certificate algorithm". The final information is publicized by the person with the most token3. Practical Byzantine fault tolerance (pbft) is also a common consensus proof. It's different from the previous two. Pbft is based on calculation, and there is no token reward. All the people in the chain participate in the voting, and when less than (n-1) / 3 nodes oppose, they will get the right to publicize the information