Movatterモバイル変換


[0]ホーム

URL:


CN112968883B - Block chain heterogeneous consensus method with high safety and terminal - Google Patents

Block chain heterogeneous consensus method with high safety and terminal
Download PDF

Info

Publication number
CN112968883B
CN112968883BCN202110141137.9ACN202110141137ACN112968883BCN 112968883 BCN112968883 BCN 112968883BCN 202110141137 ACN202110141137 ACN 202110141137ACN 112968883 BCN112968883 BCN 112968883B
Authority
CN
China
Prior art keywords
node
block
decision
consensus
fragment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110141137.9A
Other languages
Chinese (zh)
Other versions
CN112968883A (en
Inventor
斯雪明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Fulian Technology Co ltd
Original Assignee
Fujian Fulian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Fulian Technology Co ltdfiledCriticalFujian Fulian Technology Co ltd
Priority to CN202110141137.9ApriorityCriticalpatent/CN112968883B/en
Publication of CN112968883ApublicationCriticalpatent/CN112968883A/en
Application grantedgrantedCritical
Publication of CN112968883BpublicationCriticalpatent/CN112968883B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention provides a block chain heterogeneous consensus method with high safety and a terminal, wherein the method comprises the following steps: screening out a unique node as a decision node of a block in each round of consensus process; receiving the sub-message blocks sent by each fragment through the decision node, and respectively verifying the sub-message blocks sent by each fragment; merging the sub-message blocks which pass the verification to obtain a merged message block; respectively sending the message blocks to the decision nodes of each segment through the decision nodes of the block; if first signature information sent back by the fragmentation decision node exceeding a preset number threshold is received, judging that the message block passes verification; and the first signature information is the signature information which is sent back after the decision node of the fragment verifies the message block and passes the verification. The invention can prevent the block chain safety problem caused by hacker attack to a certain extent and improve the safety of the block chain.

Description

Block chain heterogeneous consensus method with high safety and terminal
The scheme is a divisional application taking a patent application with an application number of 201811128351.5, an application date of 2018, 9 and 27 as a parent, and named as 'a heterogeneous consensus method and terminal of block chains'.
Technical Field
The invention relates to the technical field of block chains, in particular to a block chain heterogeneous consensus method and a terminal with high safety.
Background
The consensus mechanism is one of the core technologies of blockchains. The consensus mechanism is a mechanism for users who are not trusted with each other in the blockchain to achieve trust, and is a basis for record transmission, verification and replication in the blockchain. The current consensus mechanisms mainly include workload proofs (PoW), equity proofs (PoS), delegated equity proofs (DPoS), and Practical Byzantine Fault-tolerant algorithms (PBFT), as well as variations of these 4 consensus mechanisms. Of course, the current novel distributed ledger technology, for example, the novel distributed ledger technology represented by Directed Acyclic Graph (DAG), has a self-contained consensus mechanism. Existing consensus mechanisms are more or less problematic. For example, the PoW consensus mechanism has the defects of resource waste, long consensus time, and consensus monopoly and natural 51% attack; the PoS consensus mechanism has the defects of long-chain attack, consensus monopoly and difficult consensus proving; the DPoS consensus mechanism has the defects of centralization, long-chain attack and difficult consensus certification; the PBFT consensus mechanism has the defect that the consensus time exponentially increases along with the number of consensus nodes; the novel DAG-based self-contained consensus distributed account book technology has the problems of weak safety and consensus centralization.
Security is the most important attribute of the consensus mechanism. The consensus mechanism is the core of the blockchain, and the security of the consensus mechanism directly determines the security of the whole blockchain system. Therefore, enhancing the security of the consensus mechanism is the key to enhance the security of the whole blockchain system. Most of the current consensus mechanisms ignore or only consider a part of the security for usability, or just consider the security against the damage of the internal people of the system, and it can be said that the current consensus mechanisms only consider the security against the hacking.
Most of the current block chains adopt single consensus or a consensus mechanism with multiple consensus sequences overlapping, for example, a consensus mechanism with a block chain system adopting PoW + PBFT, and most of the overlapping consensus mechanisms use PoW as a preliminary consensus and then adopt other consensus mechanisms. The consensus mechanism of this model does not fundamentally solve the above-mentioned drawbacks faced by the consensus mechanism.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the invention provides a block chain heterogeneous consensus method with high safety and a terminal, which can prevent the block chain safety problem caused by hacker attack to a certain extent and improve the block chain safety.
In order to solve the technical problem, the invention provides a block chain heterogeneous consensus method with high safety, which comprises the following steps:
s1: screening out a unique node as a decision node of a block in each round of consensus process;
s2: receiving the sub-message block sent by each fragment through the decision node, and respectively verifying the sub-message block sent by each fragment;
s3: merging the sub-message blocks which pass the verification to obtain a merged message block;
s4: respectively sending the message blocks to the decision nodes of each segment through the decision nodes of the block;
s5: if first signature information sent back by the fragmentation decision node exceeding a preset number threshold is received, judging that the message block passes verification; and the first signature information is the signature information which is sent back after the decision node of the fragment verifies the message block and passes the verification.
The invention also provides a high-security block chain heterogeneous consensus terminal, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the following steps:
s1: screening out a unique node as a decision node of a block in each round of consensus process;
s2: receiving the sub-message block sent by each fragment through the decision node, and respectively verifying the sub-message block sent by each fragment;
s3: merging the sub-message blocks which pass the verification to obtain a merged message block;
s4: respectively sending the message blocks to the decision nodes of each segment through the decision nodes of the block;
s5: if first signature information sent back by the fragmentation decision node exceeding a preset number threshold is received, judging that the message block passes verification; and the first signature information is the signature information corresponding to the verification passing after the verification of the message block is passed by the fragmented decision node.
The invention has the beneficial effects that:
the invention provides a block chain heterogeneous consensus method and a terminal with high safety, wherein in each round of consensus process, a unique node is selected as a decision node of a block, a sub-message block sent by the decision node of each fragment is verified through the decision node, the sub-message blocks passing the verification are combined to obtain a combined message block, the message block is respectively sent to the decision node corresponding to each fragment for verification, when the number passing the verification is greater than a preset number threshold value, the message block is indicated to pass the verification, and the message block can be broadcasted; by the method, a new decision node of the block is selected in each round of consensus process, so that an attacker cannot judge a leader of the decision (a decision node of the block), the whole consensus process cannot be controlled, meanwhile, the consensus algorithm adopted by each block is different, the attacker cannot control all the blocks through one attack strategy, the whole consensus process cannot be controlled, the attacker needs to control most of the nodes of the system in the consensus process, the attack difficulty is increased undoubtedly, the problem that the key fault of the block decision is caused by the fact that a hacker attacks one block node in a block chain is solved, and the safety of the block chain is improved.
Drawings
Fig. 1 is a schematic step diagram of a block chain heterogeneous consensus method with high security according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a block chain heterogeneous consensus terminal with high security according to an embodiment of the present invention;
description of reference numerals:
1. a memory; 2. a processor.
Detailed Description
In order to explain technical contents, objects and effects of the present invention in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
Referring to fig. 1, the present invention provides a block chain heterogeneous consensus method with high security, comprising the following steps:
s1: screening out a unique node as a decision node of a block in each round of consensus process;
s2: receiving the sub-message block sent by each fragment through the decision node, and respectively verifying the sub-message block sent by each fragment;
s3: merging the sub-message blocks which pass the verification to obtain a merged message block;
s4: respectively sending the message blocks to the decision nodes of each segment through the decision nodes of the block;
s5: if first signature information sent back by the fragmentation decision node exceeding a preset number threshold is received, judging that the message block passes verification; and the first signature information is the signature information which is sent back after the decision node of the fragment verifies the message block and passes the verification.
From the above description, it can be seen that the present invention provides a block chain heterogeneous consensus method with high security, in each round of consensus process, a unique node is selected as a decision node for a block, sub-message blocks sent by the decision node of each segment are verified by the decision node, the sub-message blocks that pass verification are merged to obtain merged message blocks, the message blocks are sent to the decision node corresponding to each segment for verification, when the number that passes verification is greater than a preset number threshold, the message block is indicated to pass verification, and the message block can be broadcasted; by the method, a new decision node of the block is selected in each round of consensus process, so that an attacker cannot judge a leader of the decision, the whole consensus process cannot be controlled, the consensus algorithm adopted by each fragment is different, the attacker cannot control all the fragments through one attack strategy, the whole consensus process cannot be controlled, the attacker wants to control most nodes of a system in the consensus process, the attack difficulty is increased undoubtedly, the problem that the key fault of the block decision is caused by the fact that a hacker attacks one fragment node in a block chain is solved, and the safety of the block chain is improved.
Further, S1 specifically is:
in each round of consensus process, calculating a competition value corresponding to each node to be selected through a preset first formula to obtain a plurality of competition values; each node to be selected is a decision node corresponding to each fragment;
screening out competition values meeting preset conditions from the competition values to obtain a plurality of first competition values;
publishing a node corresponding to each first competition value and a public key used by the node for data decryption;
within a preset time, obtaining the minimum value of all published first competition values to obtain a first minimum competition value;
and screening the node corresponding to the first minimum competition value as a decision node of the block.
As can be seen from the above description, by the above method, in each round of consensus process, the node corresponding to the minimum competition value is screened out as the decision node of the block, so that an attacker cannot determine the decision node in the round of consensus process in advance, and the security in the block chain consensus process is improved; the node corresponding to each competition value and the public key used by the node for data decryption are published, so that the fragmented decision nodes can conveniently verify the signature information of the sub-message blocks through the public key.
Further, the first formula specifically is:
Figure BDA0002928634400000051
wherein, the Ci The sk is the competition value of the ith node to be selectedi Representing the private key used for encrypting data on the node to be selected, r representing the number of rounds of the current consensus process, Qr A random number corresponding to the r-th round of consensus process is represented (i.e. a random number is generated in each round of consensus process),
Figure BDA0002928634400000052
representation using the private key ski For r and Qr Carry out data signature H1 Is a hash function.
As can be seen from the above description, by the above method, the calculated corresponding competition values are different for each node to be selected in each round of consensus process, so that the fragmented decision nodes obtained in each round of consensus process are randomly generated, and the probability that the fragmented decision nodes are attacked can be greatly reduced.
Further, S2 specifically is:
receiving, by a decision node of the block, a sub-message block sent by each tile;
the block is composed of a plurality of fragmented sub-message blocks.
Verifying the correctness of the signature information of the sub message blocks sent by the corresponding fragment decision nodes through the public key of the decision node of each fragment; the signature information is obtained by the decision node of the fragment through signature by a private key stored on the decision node.
According to the description, by the method, the sub-message blocks sent by the decision node of each fragment can be effectively verified, and the safety of the consensus process is improved; meanwhile, the public key of the decision node of each fragment can be obtained through the published node and the public key for data decryption on the node;
further, S4 specifically is:
and the decision node controlling the block respectively sends the message block to the decision node of each fragment through a practical Byzantine fault-tolerant algorithm.
From the above description, it can be ensured that the message block is sent to the decision node of the first segment, and the fault tolerance of the system is improved.
Further, the block chain heterogeneous consensus method with high safety further includes:
distributing the newly added nodes to corresponding fragments through a preset second formula;
the second formula is x = sToi (add)i ) % n, wherein i is the serial number of the node, x is the serial number of the fragment to be distributed by the node i, addi represents the address of the node i, and sToi represents a function of converting the address sequence into an integer; specifically, the function that converts the address sequence into integers uses the strtol function in the C-standard library.
Further, the block chain heterogeneous consensus method with high safety further includes:
preset consensus set Co = { Co = } Co1 ,Co2 ,…,Com I.e. preset m consensus algorithms, where Cok K =1,2,.., m, representing a consensus algorithm with a rank number k;
if a new fragment is generated in the block chain, the sequence number of the consensus algorithm adopted by the new fragment is
Figure BDA0002928634400000061
Figure BDA0002928634400000062
Wherein said g represents the sequence number of a new fragment, said->
Figure BDA0002928634400000063
And expressing a hash value corresponding to the new fragmentation decision node, wherein the hash value is calculated through a first formula, and the percentage expresses remainder operation.
Referring to fig. 2, the block chain heterogeneous common-knowledge terminal with high security provided by the present invention includes a memory 1, a processor 2 and a computer program stored in the memory 1 and capable of running on the processor 2, wherein the processor 2 implements the following steps when executing the program:
s1: screening out a unique node as a decision node of a block in each round of consensus process;
s2: receiving the sub-message block sent by each fragment through the decision node, and respectively verifying the sub-message block sent by each fragment;
s3: merging the sub-message blocks which pass the verification to obtain a merged message block;
s4: respectively sending the message blocks to the decision nodes of each segment through the decision nodes of the block;
s5: if first signature information sent back by the fragmentation decision node exceeding a preset number threshold is received, judging that the message block passes verification; and the first signature information is the signature information corresponding to the verification passing after the verification of the message block is passed by the fragmented decision node.
Further, the block chain heterogeneous consensus terminal with high security includes that S1 specifically:
in each round of consensus process, calculating a competition value corresponding to each node to be selected through a preset first formula to obtain a plurality of competition values; each node to be selected is a decision node corresponding to each fragment;
screening out competition values meeting preset conditions from the competition values to obtain a plurality of first competition values;
publishing a node corresponding to each first competition value and a public key used by the node for data decryption;
within a preset time, acquiring the minimum value of all published first competition values to obtain a first minimum competition value;
and screening the node corresponding to the first minimum competition value as a decision node of the block.
Further, the block chain heterogeneous consensus terminal with high security specifically includes:
Figure BDA0002928634400000071
wherein, the Ci The sk is the competition value of the ith node to be selectedi Representing a private key used for encrypting data on the node to be selected, r representing the number of rounds of the current consensus process, Qr Represents the random number corresponding to the r-th consensus process,
Figure BDA0002928634400000072
representation with the private key ski For r and Qr Carry out data signature H1 Is a hash function.
Further, the block chain heterogeneous consensus terminal with high security, where S2 specifically is:
receiving, by a decision node of the block, a sub-message block sent by each tile;
verifying the correctness of the signature information of the sub message blocks sent by the corresponding fragmentation decision nodes through the public key of the decision node of each fragmentation; the signature information is obtained by the decision node of the fragment through signature by a private key stored on the decision node.
Further, the block chain heterogeneous consensus terminal with high security includes that S4:
and controlling the decision node of the block to respectively send the message block to the decision node of each fragment through a practical Byzantine fault-tolerant algorithm.
Further, the block chain heterogeneous consensus method with high safety further includes:
distributing the newly added nodes to corresponding fragments through a preset second formula;
the second formula is x = sToi (add)i ) % n, wherein i is the serial number of the node, x is the serial number of the fragment to be distributed by the node i, addi represents the address of the node i, and sToi represents a function of converting the address sequence into an integer; specifically, the function that converts the address sequence into integers uses the strtol function in the C-standard library.
Further, the block chain heterogeneous consensus method with high safety further includes:
preset consensus set Co = { Co = } Co1 ,Co2 ,…,Com I.e. preset m consensus algorithms), where Cok K =1, 2.. Multidot.m, representing a consensus algorithm with rank number k;
if a new fragment is generated in the block chain, the sequence number of the consensus algorithm adopted by the new fragment is
Figure BDA0002928634400000073
Figure BDA0002928634400000081
Wherein g denotes the sequence number of a new slice, which &>
Figure BDA0002928634400000082
And the hash value corresponding to the new fragmentation decision node is represented, and the percentage represents the remainder operation.
Referring to fig. 1, a first embodiment of the present invention is:
the invention provides a block chain heterogeneous consensus method with high safety, which comprises the following steps:
distributing the newly added nodes to corresponding fragments through a preset formula;
the formula is x = sToi (add)i ) % n, wherein i is the serial number of the node, x is the serial number of the fragment to be distributed by the node i, addi represents the address of the node i, and sToi represents a function for converting the address sequence into an integer; specifically, the function that converts the address sequence into integers uses the strtol function in the C-standard library.
Preset consensus algorithm set Co = { Co =1 ,Co2 ,…,Com I.e. preset m consensus algorithms, where Cok K =1, 2.. Multidot.m, representing a consensus algorithm with rank number k;
if a new fragment is generated in the block chain, the sequence number of the consensus algorithm adopted by the new fragment is
Figure BDA0002928634400000083
Figure BDA0002928634400000084
Wherein g denotes the sequence number of a new slice, which &>
Figure BDA0002928634400000085
And the hash value corresponding to the new fragmentation decision node is represented, and the percentage represents the remainder operation.
Screening out a unique node as a decision node of a block in each round of consensus process;
in each round of consensus process, screening out a unique node as a decision node of a block, specifically:
in each round of consensus process, calculating a competition value corresponding to each node to be selected through a preset first formula to obtain a plurality of competition values; each node to be selected is a decision node corresponding to each fragment; screening out a competition value meeting a preset condition from the plurality of competition values (namely screening out a competition value smaller than a preset competition value threshold value, wherein the selection of the threshold value is related to the number of the nodes to be selected participating in competition and the number of the nodes to be selected which need to be selected and taken out, and can be set according to actual requirements), and obtaining a plurality of first competition values;
publishing a node corresponding to each first competition value and a public key used for data decryption by the node;
within a preset time, acquiring the minimum value of all published first competition values to obtain a first minimum competition value;
and screening the node corresponding to the first minimum competition value as a decision node of the block.
Wherein the first formula specifically is:
Figure BDA0002928634400000091
wherein, the Ci The sk is a competition value of the ith node to be selectedi Representing a private key used for encrypting data on the node to be selected, r representing the number of rounds of the current consensus process, Qr A random number corresponding to the r-th round of consensus process is represented,
Figure BDA0002928634400000092
representation with the private key ski To r and Qr Carry out data signature H1 Performing hash operation on the signed data for a hash function;
calculating a competition value corresponding to each node to be selected through a preset first formula to obtain a plurality of competition values, specifically:
and calculating to obtain a hash value corresponding to each node to be selected through a first formula, and converting the hash value into a two-system number to obtain a plurality of binary numbers, wherein the binary numbers are the competition values, and each competition value corresponds to a node to be selected.
Receiving the sub-message block sent by each fragment through the decision node, and respectively verifying the sub-message block sent by each fragment;
the method comprises the following steps that a decision node receives a sub-message block sent by each fragment, and verifies the sub-message block sent by each fragment respectively, wherein the decision node specifically comprises the following steps:
receiving, by a decision node of the block, a sub-message block sent by each tile; the sub-message block is a block generated in each fragment, and the block contains a plurality of messages as the concept of the block on a common block chain;
the decision nodes of the control block verify the correctness of the signature information of the sub message block sent by the corresponding fragment decision node through the public key of the decision node of each fragment; the signature information is obtained by the decision node of the fragment through signature by a private key stored on the decision node.
Merging the sub-message blocks which pass the verification to obtain a merged message block;
respectively sending the message blocks to the decision nodes of each segment through the decision nodes of the block;
the sending of the message block to the decision node of each segment by the decision node of the block specifically includes:
and the decision node controlling the block respectively sends the message block to the decision node of each fragment through a practical Byzantine fault-tolerant algorithm.
If the fragmented decision nodes receive first signature information sent back by the fragmented decision nodes exceeding a preset number threshold, judging that the message block passes verification; after the verification is passed, the message block is broadcasted to the network; after the decision node with the first signature information as the fragment verifies the message block (the verification is to verify the signature data contained in the message block and verify the message format in the message block), the returned verification passes through the corresponding signature information; wherein the number threshold is the product of the number of all fragmentation decision nodes and 2/3.
Referring to fig. 2, the second embodiment of the present invention is:
the invention provides a high-safety block chain heterogeneous consensus terminal, which comprises a memory 1, a processor 2 and a computer program which is stored in the memory 1 and can run on the processor 2, wherein all the steps of the first embodiment are realized when the processor 2 executes the program.
In conclusion, the invention provides a block chain heterogeneous consensus method and a terminal with high safety, wherein in each round of consensus process, a unique node is selected as a decision node of a block, a sub-message block sent by the decision node of each fragment is verified through the decision node, the sub-message blocks passing the verification are combined to obtain a combined message block, the message block is respectively sent to the decision node corresponding to each fragment for verification, when the number passing the verification is greater than the preset number threshold value, the message block is indicated to pass the verification, and the message block can be broadcasted; by the method, a new decision node of the block is selected in each round of consensus process, so that an attacker cannot judge a leader of the decision, the whole consensus process cannot be controlled, the consensus algorithm adopted by each fragment is different, the attacker cannot control all the fragments through one attack strategy, the whole consensus process cannot be controlled, the attacker wants to control most nodes of a system in the consensus process, the attack difficulty is increased undoubtedly, the problem that the key fault of the block decision is caused by the fact that a hacker attacks one fragment node in a block chain is solved, and the safety of the block chain is improved.
The above description is only an embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent modifications made by the present invention and the contents of the accompanying drawings, which are directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (6)

1. A block chain heterogeneous consensus method with high safety is characterized by comprising the following steps:
s1: screening out a unique node as a decision node of a block in each round of consensus process, wherein the block is composed of a plurality of fragmented sub-message blocks, and consensus algorithms adopted by each fragment are different;
the S1 specifically comprises the following steps:
in each round of consensus process, calculating a competition value corresponding to each node to be selected through a preset first formula to obtain a plurality of competition values; each node to be selected is a decision node corresponding to each fragment;
screening out competition values meeting preset conditions from the competition values to obtain a plurality of first competition values;
publishing a node corresponding to each first competition value and a public key used by the node for data decryption;
within a preset time, acquiring the minimum value of all published first competition values to obtain a first minimum competition value;
screening the node corresponding to the first minimum competition value as a decision node of a block;
the first formula is specifically:
Figure FDA0004055150880000011
wherein, the Ci The sk is a competition value of the ith node to be selectedi Representing a private key used for encrypting data on the node to be selected, r representing the number of rounds of the current consensus process, Qr Represents the random number corresponding to the r-th consensus process,
Figure FDA0004055150880000012
representation using the private key ski For r and Qr Carry out data signature H1 Is a hash function;
s2: receiving the sub-message blocks sent by the decision nodes of each fragment through the decision nodes of the block, and respectively verifying the sub-message blocks sent by the decision nodes of each fragment;
s3: merging the sub-message blocks which pass the verification to obtain a merged message block;
s4: respectively sending the message blocks to the decision nodes of each segment through the decision nodes of the block;
s5: if first signature information sent back by the fragmentation decision nodes exceeding a preset number threshold is received, judging that the message block passes verification; and the first signature information is the signature information which is sent back after the decision node of the fragment verifies the message block and passes the verification.
2. The method as claimed in claim 1, wherein the verifying the sub message block sent by the decision node of each segment in S2 specifically includes:
verifying the correctness of the signature information of the sub message blocks sent by the corresponding fragment decision nodes through the public key of the decision node of each fragment; and the signature information is obtained by the decision node of the fragment signing through a private key stored on the decision node.
3. The method for block chain heterogeneous consensus with high security according to claim 1, wherein S4 specifically is:
and the decision node controlling the block respectively sends the message block to the decision node of each fragment through a practical Byzantine fault-tolerant algorithm.
4. The method for block chain heterogeneous consensus with high security as claimed in claim 1, further comprising:
distributing the newly added nodes to corresponding fragments through a preset second formula;
the second formula is x = sToi (add)i ) % n, wherein i is the serial number of the node, x is the serial number of the fragment to be allocated by the node i, addi represents the address of the node i, and sToi represents a function of converting the address sequence into an integer.
5. The method for block chain heterogeneous consensus with high security according to claim 1, further comprising:
preset consensus set Co = { Co = } Co1 ,Co2 ,…,Com In which Co isk K =1,2,.., m, representing a consensus algorithm with a rank number k;
if a new fragment is generated in the block chain, the sequence number of the consensus algorithm adopted by the new fragment is
Figure FDA0004055150880000021
Wherein g denotes the sequence number of a new slice, which &>
Figure FDA0004055150880000022
And the hash value corresponding to the new fragmentation decision node is represented, and the percentage represents the remainder operation.
6. A block chain heterogeneous consensus terminal with high security comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the following steps:
s1: in each round of consensus process, screening out a unique node as a decision node of a block, wherein the block consists of a plurality of fragmented sub-message blocks, and consensus algorithms adopted by each fragment are different;
the S1 specifically comprises the following steps:
in each round of consensus process, calculating a competition value corresponding to each node to be selected through a preset first formula to obtain a plurality of competition values; each node to be selected is a decision node corresponding to each fragment;
screening out competition values meeting preset conditions from the competition values to obtain a plurality of first competition values;
publishing a node corresponding to each first competition value and a public key used by the node for data decryption;
within a preset time, obtaining the minimum value of all published first competition values to obtain a first minimum competition value;
screening the node corresponding to the first minimum competition value as a decision node of a block;
the first formula is specifically:
Figure FDA0004055150880000031
wherein, the Ci The sk is the competition value of the ith node to be selectedi Representing the private key used for encrypting data on the node to be selected, r representing the number of rounds of the current consensus process, Qr A random number corresponding to the r-th round of consensus process is represented,
Figure FDA0004055150880000032
representation using the private key ski For r and Qr Carry out data signature H1 Is a hash function;
s2: receiving the sub-message blocks sent by the decision nodes of each fragment through the decision nodes of the block, and respectively verifying the sub-message blocks sent by the decision nodes of each fragment;
s3: merging the sub-message blocks which pass the verification to obtain a merged message block;
s4: respectively sending the message blocks to the decision nodes of each segment through the decision nodes of the block;
s5: if first signature information sent back by the fragmentation decision nodes exceeding a preset number threshold is received, judging that the message block passes verification; and the first signature information is the signature information which is sent back after the decision node of the fragment verifies the message block and passes the verification.
CN202110141137.9A2018-09-272018-09-27Block chain heterogeneous consensus method with high safety and terminalActiveCN112968883B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110141137.9ACN112968883B (en)2018-09-272018-09-27Block chain heterogeneous consensus method with high safety and terminal

Applications Claiming Priority (2)

Application NumberPriority DateFiling DateTitle
CN201811128351.5ACN109379343B (en)2018-09-272018-09-27 A heterogeneous consensus method and terminal for blockchain
CN202110141137.9ACN112968883B (en)2018-09-272018-09-27Block chain heterogeneous consensus method with high safety and terminal

Related Parent Applications (1)

Application NumberTitlePriority DateFiling Date
CN201811128351.5ADivisionCN109379343B (en)2018-09-272018-09-27 A heterogeneous consensus method and terminal for blockchain

Publications (2)

Publication NumberPublication Date
CN112968883A CN112968883A (en)2021-06-15
CN112968883Btrue CN112968883B (en)2023-04-07

Family

ID=65402778

Family Applications (3)

Application NumberTitlePriority DateFiling Date
CN202110141137.9AActiveCN112968883B (en)2018-09-272018-09-27Block chain heterogeneous consensus method with high safety and terminal
CN201811128351.5AActiveCN109379343B (en)2018-09-272018-09-27 A heterogeneous consensus method and terminal for blockchain
CN202110141138.3AActiveCN112968884B (en)2018-09-272018-09-27Block chain heterogeneous consensus method and terminal for preventing hacker attack

Family Applications After (2)

Application NumberTitlePriority DateFiling Date
CN201811128351.5AActiveCN109379343B (en)2018-09-272018-09-27 A heterogeneous consensus method and terminal for blockchain
CN202110141138.3AActiveCN112968884B (en)2018-09-272018-09-27Block chain heterogeneous consensus method and terminal for preventing hacker attack

Country Status (1)

CountryLink
CN (3)CN112968883B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110619020B (en)*2019-09-022022-04-01杭州趣链科技有限公司Block chain fragmentation method based on machine learning
CN111478878B (en)*2020-02-282022-10-21新华三技术有限公司Anti-attack method and device
CN112202775B (en)*2020-09-292021-06-22北京理工大学 A consensus mechanism architecture and method for directed acyclic graph structure blockchain
CN112990568B (en)*2021-03-112022-09-20华北电力大学 A construction method of blockchain consensus mechanism under the scenario of comprehensive energy intelligent transaction
CN113297310B (en)*2021-06-152023-03-21广东工业大学Method for selecting block chain fragmentation verifier in Internet of things
CN113411407B (en)*2021-06-252022-03-18北京邮电大学 Fragmented car networking system based on blockchain technology
CN113779642B (en)*2021-09-022024-05-28国网北京市电力公司 Data processing method, device, system and electronic equipment
CN115426125B (en)*2022-01-282024-12-06中国科学院计算技术研究所 A block validity verification method for blockchain sharding system

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106656974A (en)*2016-10-172017-05-10江苏通付盾科技有限公司Block chain grouping consensus method and system
CN107276765A (en)*2017-07-042017-10-20中国联合网络通信集团有限公司The processing method and processing device known together in block chain
CN107909369A (en)*2017-10-132018-04-13布比(北京)网络技术有限公司Based on the common recognition method, apparatus merchandised across chain and storage medium
CN107968708A (en)*2017-11-102018-04-27财付通支付科技有限公司 Method, device, terminal and server for generating signature

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP3862947A1 (en)*2016-03-032021-08-11NEC Laboratories Europe GmbHMethod for managing data in a network of nodes
CN107438003B (en)*2016-05-272022-08-09索尼公司Electronic device, method for electronic device, and information processing system
CN106789908B (en)*2016-11-232019-09-06江苏通付盾科技有限公司Block common recognition method for building up and system in block chain
CN106780032A (en)*2016-12-162017-05-31杭州云象网络技术有限公司A kind of block chain interchain assets transfer method under multichain scene
US20180220278A1 (en)*2017-02-012018-08-02BriefTrace Ltd.System and method for securing and verifying information from transportation monitors
CN111917864B (en)*2017-02-222023-08-22创新先进技术有限公司Service verification method and device
CN107341702B (en)*2017-03-082020-06-23创新先进技术有限公司 Method and device for business processing
CN108241968B (en)*2017-03-262020-08-14杭州复杂美科技有限公司Method for leading processor to participate block chain consensus
CN107678865A (en)*2017-09-202018-02-09中国银行股份有限公司The verification method and system of block chain based on transaction packet
CN108182635A (en)*2017-12-182018-06-19深圳前海微众银行股份有限公司Block chain common recognition method, system and computer readable storage medium
CN108320155B (en)*2017-12-212020-09-11中国科学院信息工程研究所Method for realizing block chain consensus mechanism
CN108521328B (en)*2018-03-262020-08-28杭州秘猿科技有限公司Block chain consensus method and device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106656974A (en)*2016-10-172017-05-10江苏通付盾科技有限公司Block chain grouping consensus method and system
CN107276765A (en)*2017-07-042017-10-20中国联合网络通信集团有限公司The processing method and processing device known together in block chain
CN107909369A (en)*2017-10-132018-04-13布比(北京)网络技术有限公司Based on the common recognition method, apparatus merchandised across chain and storage medium
CN107968708A (en)*2017-11-102018-04-27财付通支付科技有限公司 Method, device, terminal and server for generating signature

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于聚合签名的共识算法优化方案;苑超,徐蜜雪,斯雪明;《计算机科学》;20180228;第45卷(第02期);第53-56页*

Also Published As

Publication numberPublication date
CN112968884B (en)2023-03-24
CN112968884A (en)2021-06-15
CN109379343B (en)2020-12-18
CN109379343A (en)2019-02-22
CN112968883A (en)2021-06-15

Similar Documents

PublicationPublication DateTitle
CN112968883B (en)Block chain heterogeneous consensus method with high safety and terminal
Li et al.Blockchain-based public auditing for big data in cloud storage
JP2024088765A (en) Pseudo-random number generation in blockchain
EP3861494A1 (en)A consensus method and framework for a blockchain system
CN109905247B (en)Block chain based digital signature method, device, equipment and storage medium
CN109743182B (en) Blockchain-based smart contract approval method and system
Au et al.PERM: Practical reputation-based blacklisting without TTPs
JP2017091148A (en) Block chain generation device, block chain generation method, block chain verification device, block chain verification method and program
CN110286849B (en)Data processing method and device of data storage system
CN109981690B (en)Anti-tamper timing data secret transmission method based on block chain intelligent contract
Li et al.Efficient message authentication with revocation transparency using blockchain for vehicular networks
Xue et al.STBC: A novel blockchain-based spectrum trading solution
CN113904854A (en)Block chain data encryption method and device based on quotient secret algorithm
CN114640462B (en) Blockchain privacy protection method, device, electronic device and storage medium
JP6911231B1 (en) Reliability verification system for digital asset data packets
CN112163240A (en)Block chain based distributed government affair architecture unifying method and system
CN113094743A (en)Power grid data storage method based on improved Byzantine consensus algorithm
CN112039837A (en) A method of electronic evidence preservation based on blockchain and secret sharing
CN110545261A (en)Consensus algorithm applied to block chain network
CN109274674B (en)Block chain heterogeneous consensus method with high security and terminal
CN112073173A (en)Illegal signer determination system facing block chain PKI
CN114329566B (en) Method and system for generating random numbers on blockchain based on threshold encryption
CN113988831B (en) A transfer method based on alliance chain
JP2020061696A (en) Blockchain management system, blockchain management method, and blockchain management program
GB2587541A (en)A consensus method and framework for a blockchain system

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp