Heterogeneous consensus method of block chain, and terminal
A block chain and consensus technology, applied in the field of block chain, to achieve the effect of increasing difficulty and improving security
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0083] Please refer to figure 1 , Embodiment 1 of the present invention is:
[0084] The present invention provides a heterogeneous consensus method of block chain, comprising the following steps:
[0085] Allocate the newly added nodes to the corresponding shards through the preset formula;
[0086] Described formula is x=sToi (add i )%n, wherein the i is the sequence number of the node, x is the sequence number of the fragment to be allocated by the node i, addi represents the address of the node i, and sToi represents the function of converting the address sequence into an integer; specifically, the address sequence is converted into Integer functions make use of the strtol function in the C standard library.
[0087] The set of preset consensus algorithms Co={Co 1 ,Co 2 ,...,Co m} (that is, preset m consensus algorithms), where Co k ,k=1,2,...,m, indicating the consensus algorithm with the sequence number k;
[0088] If a new shard is generated in the blockchain, t...
Embodiment 2
[0109] Please refer to figure 2 , the second embodiment of the present invention is:
[0110] The present invention provides a block chain heterogeneous consensus terminal, including a memory 1, a processor 2, and a computer program stored on the memory 1 and operable on the processor 2, when the processor 2 executes the program Realize all steps of embodiment one.
[0111] To sum up, the present invention provides a block chain heterogeneous consensus method and terminal. In each round of consensus process, a unique node is selected as the decision-making node of the block, and each fragment is Verifies the sub-message blocks sent by the decision-making node of each shard, and merges the sub-message blocks that pass the verification to obtain the merged message block, and sends the message blocks to the decision-making nodes corresponding to each shard for verification. When the number is greater than the preset number threshold, it means that the message block has passed ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com