A block chain consensus device and algorithm

A blockchain and consensus technology, applied in secure communication devices, computing, transmission systems, etc., can solve problems such as little improvement in security, slow processing speed, weak security, etc., to increase the cost of doing evil, improve effectiveness, The effect of enhancing security

Active Publication Date: 2018-12-18
夸克链科技(深圳)有限公司
View PDF4 Cites 27 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

With the increase of blockchain applications, the transaction performance requirements of the blockchain become higher. The mainstream consensus algorithms such as PoW are not competent. The transaction performance of PBFT and DPoS is intermediate and the security is acceptable. Raft has the fastest processing speed but is safe in theory. Weak
[0004] Patent application number: 201710062689.4 A blockchain consensus mechanism based on the Raft algorithm, including steps: storing the consensus node information of the blockchain on the blockchain, a

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
  • A block chain consensus device and algorithm
  • A block chain consensus device and algorithm
  • A block chain consensus device and algorithm

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] Such as figure 1 As shown, a blockchain consensus device includes a contract module 1, a voting module 2, a block generation module 3, and a storage module 4. The contract module 1 is used to execute smart contracts. Through smart contracts, ordinary nodes can become consensus nodes. Module 2 is used to elect a leader node from the nodes participating in the consensus by voting. Block generation module 3 means that the leader node packs block unit data and puts the block unit data into the blockchain. Storage module 4 It is used to store the data information placed in the area chain.

[0035] It should be noted that ordinary nodes become consensus nodes through the smart contract in contract module 1, and then consensus nodes select the leader node from all participating consensus nodes through voting module 2. The leader node is responsible for generating block units, and then the leader node The block generation module 3 is used to package the generated block unit data, ...

Embodiment 2

[0038] Such as figure 2 As shown, a blockchain consensus algorithm includes the following steps:

[0039] (1) The creation of consensus nodes: there are smart contracts in the blockchain, and ordinary nodes can become consensus nodes through smart contracts;

[0040] (2) Select the leader node: adopt the Raft algorithm to select the leader node from the consensus nodes;

[0041] (3) The leader node packs the transaction request in the transaction queue into a block unit to form a block unit;

[0042] (4) The leader node sends the formed block unit to several other consensus nodes for confirmation and signature. If the number of confirmed signatures is less than half of the total number of consensus nodes, a new block unit cannot be formed. If the number of confirmed signatures is greater than the total number of consensus nodes Half of that, then a new block unit can be formed;

[0043] (5) The leader node packs the new block unit and puts it in the regional chain, and broadcasts it o...

Embodiment 3

[0049] Such as image 3 As shown, the specific steps for ordinary nodes to become consensus nodes through smart contracts are:

[0050] a. Ordinary nodes send asset mortgage tokens to contract module 1;

[0051] b. After the contract module 1 receives the asset mortgage token, it will review it;

[0052] c. If the audited asset mortgage certificate meets the requirements, the ordinary node will be awarded as a consensus node. If the audited asset mortgage certificate does not meet the requirements, the ordinary node will not be awarded the consensus node.

[0053] The nodes participating in the consensus need to mortgage certain assets, which increases the cost of doing evil and prompts the consensus nodes to take responsibility when voting in consensus, thereby improving the effectiveness of voting.

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 discloses a block chain consensus device, including a contract module, voting module, block-out module and storage module, the contract module is configured to execute an intelligent contract, common nodes can be converted into consensus nodes through intelligent contracts, the voting module is used for electing a leader node by voting from the nodes participating in the consensus, the block-out module means that the leader node packs the block unit data and puts the block unit data into the block chain, the storage module is used for storing the data information put into the area chain, and the invention also provides a block chain consensus algorithm. The invention creatively integrates the raft algorithm and the DPoS consensus algorithm, provides an efficient and safe consensus device and algorithm, meets the requirement of the application of the block chain with high transaction speed, and enhances the security of the consensus without lowering the performance of theraft consensus.

Description

Technical field [0001] The present invention relates to the fields of Internet information processing technology and computer technology, in particular to a blockchain consensus device and algorithm. Background technique [0002] Blockchain technology is a distributed Internet database technology, also known as distributed ledger technology. It has the characteristics of decentralization, openness and transparency, non-tampering, trustworthiness, collective maintenance, and traceability. Based on these characteristics, blockchain not only takes root in the financial industry, but also blossoms everywhere in other industries, promoting the transformation of production relations. [0003] To write data into the blockchain, it needs to go through a consensus process. The so-called consensus is that multiple blockchain nodes calculate and verify the incoming data and write it to the blockchain through one of the nodes. Consensus algorithms can only do two of the three among the numbe...

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): H04L12/24H04L29/08H04L9/32G06Q40/04
CPCG06Q40/04H04L9/3247H04L41/30H04L67/10
Inventor 陈晋飞杨高赟王旭胡振生陈华毅
Owner 夸克链科技(深圳)有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products