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

A block chain consensus device and algorithm

A blockchain and consensus technology, applied in secure communication devices, calculations, instruments, etc., can solve problems such as little improvement in security, slow processing speed, weak security, etc., to achieve increased cost of doing evil, balanced efficiency, and easy operation Effect

Active Publication Date: 2021-06-18
夸克链科技(深圳)有限公司
View PDF3 Cites 0 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, and setting the initial state of the consensus node as a follower; based on the Raft algorithm Combined with the block height, the consensus node in the initial leader state is elected. The consensus node in the leader state is used to record transaction events and generate new blocks; when the term of the consensus node in the leader state ends, the consensus node in the leader state will be re-elected. The Raft algorithm is highly integrated with the blockchain, but there is not much improvement in security, and there are still security issues

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 block chain consensus apparatus, including contract module 1, voting module 2, block module 3, and storage module 4, contract module 1 for performing intelligent contracts, can make ordinary nodes a consensus node, vote through intelligent contracts Module 2 is an electing a Leader node in a node that participates in consensus. The outbound module 3 refers to the Leader node package unit data, and puts the block unit data into the block chain, and stores module 4. It is a data information for storing the placement in the regional chain.

[0035] It should be noted that the normal node becomes a consensus node through the intelligent contract in the contract module 1, and then the consensus node selects the Leader node from all participating consensus nodes by the voting module 2, the Leader node is responsible for generating block units, then the Leader node The generated block module 3 will be packaged, and the packaged block unit data is place...

Embodiment 2

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

[0039] (1), the creation of consensus nodes: set a smart contract in the block chain, and the normal node can turn into a consensus node through the intelligent contract;

[0040] (2), select the Leader Node: Use the RAFT algorithm to select the Leader node from the consensus node;

[0041] (3), the Leader node packs the transaction request in the trading queue into block units to form a block unit;

[0042] (4) The Leader node sends the formed block unit to other consensus nodes to confirm the signature. If the number of signatures is less than half of the total number of consensus nodes, the new block unit cannot be formed. If the confirmation number is greater than the total number of consensus nodes In half, you can form a new block unit;

[0043] (5), the Leader node packs the new block unit and puts into the area chain while broadcasting all net;

[0044] (6), the storage modu...

Embodiment 3

[0049] Such as image 3 As shown, the specific steps that the normal node can become a consensus node through the intelligent contract:

[0050] a, send asset mortgage communications to the contract module 1;

[0051] b, the contract module 1 is reviewed after receiving the asset mortgage transfer;

[0052] c. If the asset mortgage communications meet the requirements, the normal node is granted to the consensus node. If the audit asset mortgage communications does not meet the requirements, the normal node is not granted to the consensus node.

[0053] The nodes involved in consensus need to mortgage certain assets, which improves the evil cost, and prompts consensus nodes to take responsibility when they are interview, thereby increasing 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, which includes a contract module, a voting module, a block module and a storage module. The module is used to elect a leader node by voting from the nodes participating in the consensus. The block generation module refers to that the leader node packs the block unit data and puts the block unit data into the block chain. The storage The module is used to store data information put into the area chain, and the invention also provides a block chain consensus algorithm. The present invention creatively integrates the raft algorithm with the DPoS consensus algorithm, provides an efficient and safe consensus device and algorithm, meets the needs of blockchain applications that require high transaction speed, and does not reduce the raft consensus performance In this case, the security of the consensus is enhanced.

Description

Technical field [0001] The present invention relates to the field of Internet information processing techniques and computer technology, and more particularly to a block chain consensus apparatus and algorithm. Background technique [0002] Block chain technology is a distributed Internet database technology, also known as distributed book technology, with decentralization, public transparency, non-tampered, trustful, collective maintenance, traceability. Based on these characteristics, the block chain is not only in the financial industry, but also flowers everywhere in other industries and promotes the change of production relations. [0003] Data should be written to the block chain and need to pass through a consensus process. The so-called consensus, that is, multiple block chain nodes calculate the entered chain data, and written to the block chain via one of the nodes. The consensus algorithm is in the number of consensus nodes, transaction performance, and safety, can onl...

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
Patent Type & Authority Patents(China)
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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products