Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Block chain consensus method

A blockchain and consensus technology, applied in the blockchain field, can solve problems such as low efficiency, Validator is easy to do evil, illegal, etc., and achieve high efficiency.

Active Publication Date: 2018-06-01
HANGZHOU FUZAMEI TECH CO LTD +1
View PDF7 Cites 39 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the blockchain using the POW consensus method, miners with higher computing power are more likely to dig blocks, which is less efficient, but has the highest credibility, and nodes are not easy to do evil, but Due to the low efficiency, it is very likely to generate some illegal blocks with less transaction volume or no transactions at all; in the blockchain using the POS consensus method, the Validator with higher Stake weight is more likely It is more efficient to obtain voting income, but due to the profit-seeking nature, Validator is easy to do evil, resulting in "nothing at stake" attacks

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Block chain consensus method
  • Block chain consensus method
  • Block chain consensus method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] Embodiment 1: This embodiment specifically illustrates the steps of the blockchain consensus method, as follows:

[0028] The roles of the consensus method include: Validator, Validator Set, Vg, fund account and mortgage account;

[0029]Validator is a node that votes on the block. Each Validator holds a certain stake. Validators include honest Validators and dishonest Validators. The number of Validators is 3f+1, where f is a positive integer, and non-honest Validators The number of validators is not greater than f; Validator Set is a collection of all validators participating in voting, and the validator set needs to be determined before each round of consensus; during each round of consensus, a validator is randomly selected from the validator set to generate a block, and the selected validator is Vg , Vg is also used to package transactions, generate Merkle trees, and broadcast lists of Merkle roots and transaction hashes; the fund account is used to store the secur...

Embodiment 2

[0042] Embodiment 2: This embodiment exemplifies the process of generating blocks by the consensus method of the block chain, such as figure 1 , figure 2 and image 3 :

[0043] After the previous block is packaged and written into the blockchain, a new round of consensus is started to generate a new block. The steps for generating a block by the consensus method are as follows:

[0044] Step S1: Determine the Validator Set, assuming f=1, there are at least 4 Validators in the system (3f+1=4); among them, 1 Validator is selected as Vg, in fact, there are 1 Vg and 3 Validators in the system ;

[0045] Step S2: if figure 1 , in the Pre-Prepare process, randomly select a Validator from the Validator Set as Vg, Vg packs the collected transactions, generates a Merkle tree from the transaction list, and then broadcasts the list of Merkle roots and transaction hashes as a Pre-Prepare message To the other 3 Validators in the Validators Set;

[0046] Step S3: if figure 2 , in ...

Embodiment 3

[0049] Embodiment 3: This embodiment exemplifies the process of judging legality, such as Figure 4 :

[0050] After the block chain system generates Block(H), when the next round of consensus generates Block(H+1), N Validators will be randomly selected to vote on the validity of Block(H); if the Validators have different Opinions, then continue to randomly select different Validators to vote until there are N votes from the Validators holding a certain opinion, at which point the legitimacy of Block(H) can be determined.

[0051] The blockchain system sets N to be 5:

[0052] If all 5 Validators think Block(H) is legal, then Block(H) is legal;

[0053] If 5 Validators have different opinions, if 3 Validators think that Block(H) is legal, and 2 Validators think that Block(H) is illegal, then continue to randomly select 2 different Validators to vote for Block(H); these 2 Validators Among them, if 2 Validators think that Block(H) is legal, at this time there are 5 Validators...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a block chain consensus method. The method comprises Validators, a Validator set, a Vg, a fund account and a hypothecated account. In the consensus method, a margin mechanismis introduced, users can become the Validators to vote only after margin is paid, and once a certain Validator votes dishonestly, a system fines the margin of the Validator or even disqualifies the Validator. After the margin mechanism is introduced, the evil cost of the Validators is higher than the non-evil cost, the nothing-at-stake problem is solved, and the high efficiency of the system is also guaranteed. After a block chain system generates blocks, N Validators are randomly selected during next round of consensus to vote for legality of the next block, and if the Validators have different opinions, voting continues till the legality of the next block can be judged.

Description

technical field [0001] The invention relates to the technical field of block chains, and relates to a consensus method of block chains. Background technique [0002] The existing blockchain public chain consensus methods mainly include POW consensus method and POS consensus method. In the blockchain using the POW consensus method, miners with higher computing power are more likely to dig blocks, which is less efficient, but has the highest credibility, and nodes are not easy to do evil, but Due to the low efficiency, it is very likely to generate some illegal blocks with less transaction volume or no transactions at all; in the blockchain using the POS consensus method, the Validator with higher Stake weight is more likely It is more efficient to obtain voting benefits, but due to its profit-seeking nature, Validator is easy to do evil, resulting in "nothing at stake" attacks. The essential reason for the "nothing at stake" attack is that in the POS method, if the block ch...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30G06Q40/04
CPCG06F16/2255G06F16/2471G06F16/27G06Q40/04
Inventor 吴思进王志文
Owner HANGZHOU FUZAMEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products