CN113098692B - Synchronous consensus algorithm, system and medium for multiple parties under same prefabrication rule - Google Patents

Synchronous consensus algorithm, system and medium for multiple parties under same prefabrication rule Download PDF

Info

Publication number
CN113098692B
CN113098692B CN202110364836.XA CN202110364836A CN113098692B CN 113098692 B CN113098692 B CN 113098692B CN 202110364836 A CN202110364836 A CN 202110364836A CN 113098692 B CN113098692 B CN 113098692B
Authority
CN
China
Prior art keywords
consensus
target data
initiator
time
participants
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
CN202110364836.XA
Other languages
Chinese (zh)
Other versions
CN113098692A (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.)
Hubei Yangzhong Jushi Information Technology Co ltd
Original Assignee
Hubei Yangzhong Jushi Information 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 Hubei Yangzhong Jushi Information Technology Co ltd filed Critical Hubei Yangzhong Jushi Information Technology Co ltd
Priority to CN202110364836.XA priority Critical patent/CN113098692B/en
Publication of CN113098692A publication Critical patent/CN113098692A/en
Application granted granted Critical
Publication of CN113098692B publication Critical patent/CN113098692B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a synchronous consensus algorithm, a synchronous consensus system and a synchronous consensus medium for multiple parties under the same prefabrication rule, wherein the hardware configuration of an initiator and all consensus participants is matched to be consistent; the initiator acquires target data, calculates a Hash identification value of the target data, and acquires a calculation rule for calculating the target data; the initiation initiates a consensus request to all consensus participants; after receiving the consensus request, the consensus participator confirms the identity of the initiator, reads the calculation rule after confirming passing, executes the calculation rule, and calculates the Hash identification value of the target data; and comparing the Hash identification values calculated twice. The invention is used for solving the problems of a large number of calculation variables, low consensus strength and easy error occurrence of the consensus mechanism in the prior art blockchain network, realizing the purposes of enhancing the credibility and the consensus strength of target data, protecting the rights of the consensus participants and reducing the signature risk of the consensus participants.

Description

Synchronous consensus algorithm, system and medium for multiple parties under same prefabrication rule
Technical Field
The invention relates to the field of blockchains, in particular to a synchronous consensus algorithm, a synchronous consensus system and a synchronous consensus medium for multiple parties under the same prefabrication rule.
Background
The multiparty consensus mechanism is one of the cores of the blockchain technology. The consensus mechanism is a method for performing consensus record and maintenance on target data, cognition, value, ideas and other elements by adopting a logic, manageability and computational method of multiparty consensus in the process of agreeing on a certain aspect by different groups.
In the existing consensus mechanism flow, a single party of an initiator calculates, and the initiator initiates a consensus request to all consensus participants, and after receiving the consensus request, all the consensus participants sign a digital signature on the calculation result of the initiator. In the process that the consensus party signs the calculation result of the initiator, the consensus party does not carry out calculation verification on the calculation result of the initiator, so that the reliability of target data is insufficient, and the consensus strength in the blockchain network is also low. In addition, due to the specificity of the program algorithm, even if the same data is faced, the situation that the calculation results are different exists in different hardware environments or in different software environments, which also leads to errors of data consensus calculation, and such errors possibly existing directly lead to a consensus participant having a larger signature risk, which is unfavorable for further development and progress of a multiparty consensus mechanism in a blockchain technology.
Disclosure of Invention
The invention provides a synchronous consensus algorithm, a synchronous consensus system and a synchronous consensus medium under the same prefabrication rule, which are used for solving the problems that a consensus mechanism in a block chain network in the prior art has a large number of calculated variables, low consensus strength and easy error occurrence, realizing the purposes of enhancing the credibility and the consensus strength of target data, protecting the rights of consensus participants and reducing the signature risk of the consensus participants.
The invention is realized by the following technical scheme:
a synchronous consensus algorithm for multiple parties under the same pre-cast rules, comprising:
s1, matching hardware configurations of an initiator and all consensus participants to be consistent;
s2, the initiator acquires target data, calculates a Hash identification value of the target data, and collects a calculation rule for calculating the target data;
s3, initiating a consensus request to all consensus participants by the initiating party;
s4, after receiving the consensus request, the consensus participant confirms the identity of the initiator, reads the calculation rule after confirming passing, executes the calculation rule, and calculates a Hash identification value of the target data;
s5, comparing the Hash identification value of the target data calculated by the consensus party with the Hash identification value of the target data calculated by the initiator: if the comparison results are the same, signing the target data; if the comparison results are different, the target data is not signed.
Aiming at the problems that a consensus mechanism in a blockchain network in the prior art has a large number of calculation variables, low consensus strength and easy error occurrence, the invention firstly provides a synchronous consensus algorithm of multiple parties under the same prefabrication rule, and the algorithm firstly matches the hardware configuration of an initiator and all consensus participants to keep the hardware configuration consistent, so as to overcome the calculation result error caused by different hardware environments in the prior art; then, the initiator acquires target data, a Hash identification value of the target data is calculated for standby according to the acquired target data, and the initiator acquires a calculation rule for calculating the target data; after the calculation of the initiator is completed, a consensus request is initiated to all consensus participants, and after the consensus request is received by the consensus participants, the identity of the initiator is confirmed first, wherein the confirmation method can be realized by adopting any existing identity confirmation method, such as a common encryption algorithm, public key private key encryption and the like; after confirming the identity of the initiator, the consensus participant reads the calculation rule acquired by the initiator, executes the calculation rule and starts to calculate, and finally, the Hash identification value calculated by the consensus participant is obtained; comparing the Hash identification value calculation results of the consensus participant and the initiator, and if the comparison results are the same, indicating that the consensus is successful and signing the target data; if the comparison results are different, the failure of the consensus is indicated, and the target data is not signed. The method for calculating the Hash identification value can be realized by adopting the existing Hash algorithm, and is not described in detail herein. Compared with the prior art, the algorithm has the following specific advantages: (1) In the process of signing the calculation result of the initiator, the consensus participant performs calculation verification on the calculation result of the initiator, so that the credibility of target data is ensured, and the consensus strength in the blockchain network is obviously improved; (2) Matching the hardware configuration in advance, and avoiding the consensus calculation error caused by the hardware environment difference; (3) The method ensures the calculation consistency of target data by both parties by collecting calculation rules by the initiator and reading the calculation rules by the consensus participants, and the consensus participants complete the verification process and sign after successful verification, thereby fully protecting the rights of the consensus participants and reducing the signature risk of the consensus participants.
Further, in step S2, the initiator stores the calculation rule into a database, and sets a calculation rule data reading interface, where the calculation rule data reading interface is used for reading the calculation rule by a consensus participant. The scheme sets the database for storing the calculation rules acquired by the initiator and provides the calculation rule data reading interface for each consensus party, thereby ensuring the consistency of the calculation rules acquired by all the consensus parties and ensuring the accurate operation of the multi-party consensus mechanism.
Further, the computing rules include a hardware environment, a software environment, a time synchronization method, a target data reading interface, and an algorithm program.
Further, in step S4, the method for executing the calculation rule is as follows:
s11, checking the hardware state of the device according to the requirement of the hardware environment in the calculation rule;
s12, checking software version information according to the requirement of the software environment in the calculation rule;
s13, executing a time synchronization method and synchronizing time;
s14, reading target data by using a target data reading interface, and calculating a Hash identification value of the target data through an algorithm program.
When the consensus participant executes the calculation rule, firstly, the hardware state is secondarily confirmed, the interference of the hardware environment difference on the calculation result is further eliminated, then, the software environment is confirmed, the software version information is checked, and the consensus calculation error caused by different software or version generation difference is avoided; and then, a time synchronization method is executed, the time of all the consensus participants is synchronized with the time of the initiator, and finally, the algorithm program is utilized to calculate the read target data. Wherein the algorithm program is preferably an existing hash algorithm. The calculation rule of the scheme comprises a time synchronization method ignored by a large number of prior art, because the inventor finds that in the process of a large number of researches, in the operation process of the existing multiparty consensus mechanism, the time mismatch between the initiation request of one party and the receiving request of the other party is easy to be caused by the time dyssynchrony of the initiator and the consensus participant, even the condition of prior initiation and subsequent initiation occurs, and when the follow-up tracing is needed, the disorder is easy to occur, and the manual intervention is needed to be corrected or judged; therefore, the scheme uses the consensus participator to execute the time synchronization method to synchronize the time of the consensus participator and the consensus participator, thereby overcoming the defects, ensuring that the disorder phenomenon caused by time mismatch can not occur if the follow-up traceability requirement exists, and reducing the workload of manual intervention.
Further, the time synchronization method includes:
s101, a consensus participation direction initiator initiates a time synchronization request;
s102, after receiving the synchronous request, the initiator sends the current time T of the initiator to the consensus participant;
s103, synchronizing time by the consensus party according to the following formula: t' =t+t 1 +T 2 The method comprises the steps of carrying out a first treatment on the surface of the Wherein T' is the time after synchronization of the consensus participants, T 1 To initiate communication of signals to co-participants, time consuming, T 2 Time-updating all of its time-dependent nodes for the consensus participants is time-consuming.
According to the time synchronization method, the communication time consumption of transmitting signals to the consensus party by the initiating party and the time consumption of time updating of all the nodes related to time by the consensus party are considered, and the effectiveness and accuracy of time synchronization are fully ensured.
A synchronous consensus system of multiple parties under the same prefabrication rule comprises an initiator and consensus participants, wherein the initiator is consistent with the hardware configuration of all the consensus participants; further comprises:
the first calculation module is used for calculating a Hash identification value of the target data acquired by the initiator;
the acquisition module is used for acquiring the calculation rule from the initiator;
the interaction module is used for information interaction between the initiator and the consensus participant; the information interaction comprises the steps that an initiating party initiates a consensus request to all consensus participants, the consensus participants confirm the identity of the initiating party, and the consensus participants read the calculation rules from an acquisition module;
the second calculation module is used for executing the calculation rule by the consensus participant and calculating a Hash identification value of the target data;
the comparison module is used for comparing the Hash identification value of the target data calculated by the first calculation module with the Hash identification value of the target data calculated by the second calculation module.
Further, the computing rules include a hardware environment, a software environment, a time synchronization method, a target data reading interface, and an algorithm program.
Further, the second computing module includes:
the hardware detection unit is used for checking the hardware state of the consensus party according to the requirement of the hardware environment in the calculation rule;
the software detection unit is used for checking the software version information of the consensus party according to the requirement of the software environment in the calculation rule;
the time synchronization unit is used for synchronizing the time of the consensus participant and the initiator;
the Hash calculation unit is used for reading the target data through a target data reading interface in the calculation rule and calculating a Hash identification value of the target data through an algorithm program in the calculation rule.
Further, the time synchronization unit includes:
a first subunit, configured to share a participation direction initiator to initiate a time synchronization request;
the second subunit is used for sending the current time T of the initiator to the consensus participant after the initiator receives the synchronization request;
a third subunit, configured to synchronize time for the consensus party according to the following formula: t' =t+t 1 +T 2 The method comprises the steps of carrying out a first treatment on the surface of the Wherein T' is a co-groupTime after the synchronization of the participants is known, T 1 To initiate communication of signals to co-participants, time consuming, T 2 Time-updating all of its time-dependent nodes for the consensus participants is time-consuming.
A computer readable storage medium comprising a computer program which, when run, controls a device in which the storage medium resides to perform a synchronous consensus algorithm as described above.
Compared with the prior art, the invention has the following advantages and beneficial effects:
1. according to the synchronous consensus algorithm, the synchronous consensus system and the synchronous consensus medium under the same prefabrication rule, the consensus participants perform calculation verification on the calculation result of the initiator in the process of signing the calculation result of the initiator, so that the credibility of target data is ensured, and the consensus strength in the block chain network is remarkably improved.
2. The synchronous consensus algorithm, the synchronous consensus system and the synchronous consensus medium under the same prefabrication rule are matched with the hardware configuration in advance, so that consensus calculation errors caused by hardware environment differences are avoided, and the hardware state is secondarily confirmed; and the software environment is also confirmed, the software version information is checked, and the common-knowledge calculation error caused by different software or version generation difference is avoided.
3. According to the synchronous consensus algorithm, the synchronous consensus system and the medium of multiple parties under the same prefabrication rule, the calculation rule is collected by the initiator, the calculation rule is read by the consensus participants, the calculation consistency of the target data by the two parties is ensured, the verification process is completed by the consensus participants, the signature is carried out after the verification is successful, the rights of the consensus participants are fully protected, and the signature risk of the consensus participants is reduced.
4. The invention relates to a synchronous consensus algorithm, a system and a medium of multiple parties under the same prefabrication rule, wherein the calculation rule comprises a time synchronization method ignored by a large amount of prior art, which overcomes the defects that in the running process of the existing multiparty consensus mechanism, the time of an initiating party and a consensus participator is not synchronous easily to cause the mismatching of the time between the initiating request of one party and the receiving request of the other party, even the condition of the prior initiation and the subsequent initiation occurs, and the subsequent tracing is easy to cause disorder when the tracing is needed, thus the correction or the judgment is needed by manual intervention; the method ensures that the disorder phenomenon caused by time mismatch can not occur if the follow-up tracing requirement exists, and reduces the workload of manual intervention.
Drawings
The accompanying drawings, which are included to provide a further understanding of embodiments of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention. In the drawings:
FIG. 1 is a schematic flow chart of an embodiment of the present invention;
fig. 2 is a schematic diagram of a system according to an embodiment of the invention.
Detailed Description
For the purpose of making apparent the objects, technical solutions and advantages of the present invention, the present invention will be further described in detail with reference to the following examples and the accompanying drawings, wherein the exemplary embodiments of the present invention and the descriptions thereof are for illustrating the present invention only and are not to be construed as limiting the present invention.
Example 1:
a synchronous consensus algorithm for multiple parties under the same prefabrication rules as shown in fig. 1 comprising:
s1, matching hardware configurations of an initiator and all consensus participants to be consistent;
s2, the initiator acquires target data, calculates a Hash identification value of the target data, and collects a calculation rule for calculating the target data;
s3, initiating a consensus request to all consensus participants by the initiating party;
s4, after receiving the consensus request, the consensus participant confirms the identity of the initiator, reads the calculation rule after confirming passing, executes the calculation rule, and calculates a Hash identification value of the target data;
s5, comparing the Hash identification value of the target data calculated by the consensus party with the Hash identification value of the target data calculated by the initiator: if the comparison results are the same, signing the target data; if the comparison results are different, the target data is not signed.
Preferably, in step S2, the initiator stores the calculation rule in a database, and sets a calculation rule data reading interface, where the calculation rule data reading interface is used for reading the calculation rule by a consensus participant.
Example 2:
a synchronous consensus algorithm for multiple parties under the same pre-cast rules as shown in fig. 1, wherein the computing rules comprise a hardware environment, a software environment, a time synchronization method, a target data reading interface and an algorithm program based on the embodiment 1.
The method for executing the calculation rule in step S4 is as follows:
s11, checking the hardware state of the device according to the requirement of the hardware environment in the calculation rule;
s12, checking software version information according to the requirement of the software environment in the calculation rule;
s13, executing a time synchronization method and synchronizing time;
s14, reading target data by using a target data reading interface, and calculating a Hash identification value of the target data through an algorithm program.
The time synchronization method comprises the following steps:
s101, a consensus participation direction initiator initiates a time synchronization request;
s102, after receiving the synchronous request, the initiator sends the current time T of the initiator to the consensus participant;
s103, synchronizing time by the consensus party according to the following formula: t' =t+t 1 +T 2 The method comprises the steps of carrying out a first treatment on the surface of the Wherein T' is the time after synchronization of the consensus participants, T 1 To initiate communication of signals to co-participants, time consuming, T 2 Time-updating all of its time-dependent nodes for the consensus participants is time-consuming.
Example 3:
a synchronous consensus system of multiple parties under the same prefabrication rule is shown in fig. 2, and comprises an initiator and consensus participants, wherein the initiator is consistent with the hardware configuration of all the consensus participants; further comprises:
the first calculation module is used for calculating a Hash identification value of the target data acquired by the initiator;
the acquisition module is used for acquiring the calculation rule from the initiator;
the interaction module is used for information interaction between the initiator and the consensus participant; the information interaction comprises the steps that an initiating party initiates a consensus request to all consensus participants, the consensus participants confirm the identity of the initiating party, and the consensus participants read the calculation rules from an acquisition module;
the second calculation module is used for executing the calculation rule by the consensus participant and calculating a Hash identification value of the target data;
the comparison module is used for comparing the Hash identification value of the target data calculated by the first calculation module with the Hash identification value of the target data calculated by the second calculation module.
In this embodiment, the calculation rule includes a hardware environment, a software environment, a time synchronization method, a target data reading interface, and an algorithm program.
Preferably, the second calculation module includes:
the hardware detection unit is used for checking the hardware state of the consensus party according to the requirement of the hardware environment in the calculation rule;
the software detection unit is used for checking the software version information of the consensus party according to the requirement of the software environment in the calculation rule;
the time synchronization unit is used for synchronizing the time of the consensus participant and the initiator;
the Hash calculation unit is used for reading the target data through a target data reading interface in the calculation rule and calculating a Hash identification value of the target data through an algorithm program in the calculation rule.
Wherein the time synchronization unit includes:
a first subunit, configured to share a participation direction initiator to initiate a time synchronization request;
the second subunit is used for sending the current time T of the initiator to the consensus participant after the initiator receives the synchronization request;
a third subunit for consensusThe participants synchronize time according to the following formula: t' =t+t 1 +T 2 The method comprises the steps of carrying out a first treatment on the surface of the Wherein T' is the time after synchronization of the consensus participants, T 1 To initiate communication of signals to co-participants, time consuming, T 2 Time-updating all of its time-dependent nodes for the consensus participants is time-consuming.
Example 4:
a computer readable storage medium comprising a computer program which, when executed, controls a device in which the storage medium is located to perform a synchronous consensus algorithm as described in embodiments 1 or 2.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the invention, and is not meant to limit the scope of the invention, but to limit the invention to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the invention are intended to be included within the scope of the invention.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.

Claims (8)

1. A synchronous consensus algorithm for multiple parties under the same prefabrication rules, comprising:
s1, matching hardware configurations of an initiator and all consensus participants to be consistent;
s2, the initiator acquires target data, calculates a Hash identification value of the target data, and collects a calculation rule for calculating the target data; the calculation rule comprises a hardware environment, a software environment, a time synchronization method, a target data reading interface and an algorithm program;
s3, initiating a consensus request to all consensus participants by the initiating party;
s4, after receiving the consensus request, the consensus participant confirms the identity of the initiator, reads the calculation rule after confirming passing, executes the calculation rule, and calculates a Hash identification value of the target data;
s5, comparing the Hash identification value of the target data calculated by the consensus party with the Hash identification value of the target data calculated by the initiator: if the comparison results are the same, signing the target data; if the comparison results are different, the target data is not signed.
2. The synchronous consensus algorithm for multiple parties under the same pre-cast rules according to claim 1, wherein in step S2, the initiator stores the calculation rules into a database and sets a calculation rule data reading interface for consensus participants to read the calculation rules.
3. The synchronous consensus algorithm for multiple parties under the same pre-cast rules according to claim 1, wherein in step S4, the method of executing the calculation rule is:
s11, checking the hardware state of the device according to the requirement of the hardware environment in the calculation rule;
s12, checking software version information according to the requirement of the software environment in the calculation rule;
s13, executing a time synchronization method and synchronizing time;
s14, reading target data by using a target data reading interface, and calculating a Hash identification value of the target data through an algorithm program.
4. A synchronization consensus algorithm according to claim 1 or 3, wherein the time synchronization method comprises:
s101, a consensus participation direction initiator initiates a time synchronization request;
s102, after receiving the synchronous request, the initiator sends the current time T of the initiator to the consensus participant;
s103, synchronizing time by the consensus party according to the following formula: t' =t+t 1 + T 2 The method comprises the steps of carrying out a first treatment on the surface of the Wherein T' is the time after synchronization of the consensus participants, T 1 To initiate communication of signals to co-participants, time consuming, T 2 Time-updating all of its time-dependent nodes for the consensus participants is time-consuming.
5. The synchronous consensus system of multiple parties under the same prefabrication rule comprises an initiator and consensus participants, and is characterized in that the initiator is consistent with the hardware configuration of all the consensus participants; further comprises:
the first calculation module is used for calculating a Hash identification value of the target data acquired by the initiator;
the acquisition module is used for acquiring the calculation rule from the initiator; the calculation rule comprises a hardware environment, a software environment, a time synchronization method, a target data reading interface and an algorithm program;
the interaction module is used for information interaction between the initiator and the consensus participant; the information interaction comprises the steps that an initiating party initiates a consensus request to all consensus participants, the consensus participants confirm the identity of the initiating party, and the consensus participants read the calculation rules from an acquisition module;
the second calculation module is used for executing the calculation rule by the consensus participant and calculating a Hash identification value of the target data;
the comparison module is used for comparing the Hash identification value of the target data calculated by the first calculation module with the Hash identification value of the target data calculated by the second calculation module.
6. The synchronous consensus system for multiple parties under the same prefabrication rule as defined in claim 5 wherein the second computing module comprises:
the hardware detection unit is used for checking the hardware state of the consensus party according to the requirement of the hardware environment in the calculation rule;
the software detection unit is used for checking the software version information of the consensus party according to the requirement of the software environment in the calculation rule;
the time synchronization unit is used for synchronizing the time of the consensus participant and the initiator;
the Hash calculation unit is used for reading the target data through a target data reading interface in the calculation rule and calculating a Hash identification value of the target data through an algorithm program in the calculation rule.
7. The synchronous consensus system for multiple parties under the same prefabrication rules according to claim 6, wherein the time synchronization unit comprises:
a first subunit, configured to share a participation direction initiator to initiate a time synchronization request;
the second subunit is used for sending the current time T of the initiator to the consensus participant after the initiator receives the synchronization request;
a third subunit, configured to synchronize time for the consensus party according to the following formula: t' =t+t 1 + T 2 The method comprises the steps of carrying out a first treatment on the surface of the Wherein T' is the time after synchronization of the consensus participants, T 1 To initiate communication of signals to co-participants, time consuming, T 2 Time-updating all of its time-dependent nodes for the consensus participants is time-consuming.
8. A computer readable storage medium comprising a computer program, characterized in that when the computer program is run, it controls a device in which the storage medium is located to execute the synchronous consensus algorithm according to any one of claims 1-4.
CN202110364836.XA 2021-04-06 2021-04-06 Synchronous consensus algorithm, system and medium for multiple parties under same prefabrication rule Active CN113098692B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110364836.XA CN113098692B (en) 2021-04-06 2021-04-06 Synchronous consensus algorithm, system and medium for multiple parties under same prefabrication rule

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110364836.XA CN113098692B (en) 2021-04-06 2021-04-06 Synchronous consensus algorithm, system and medium for multiple parties under same prefabrication rule

Publications (2)

Publication Number Publication Date
CN113098692A CN113098692A (en) 2021-07-09
CN113098692B true CN113098692B (en) 2023-07-28

Family

ID=76673556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110364836.XA Active CN113098692B (en) 2021-04-06 2021-04-06 Synchronous consensus algorithm, system and medium for multiple parties under same prefabrication rule

Country Status (1)

Country Link
CN (1) CN113098692B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789908A (en) * 2016-11-23 2017-05-31 江苏通付盾科技有限公司 Block common recognition method for building up and system in block chain
CN107046542A (en) * 2017-04-24 2017-08-15 杭州云象网络技术有限公司 A kind of method that common recognition checking is realized using hardware in network level
CN108615154A (en) * 2018-05-01 2018-10-02 王锐 A kind of block chain digital signature system and process for using based on hardware encipherment protection
CN111191292A (en) * 2019-12-16 2020-05-22 平安壹钱包电子商务有限公司 Accounting method, accounting device, accounting system and computer-readable storage medium
CN111224782A (en) * 2019-11-22 2020-06-02 腾讯科技(深圳)有限公司 Data verification method based on digital signature, intelligent device and storage medium
US10778428B1 (en) * 2019-05-31 2020-09-15 Allibaba Group Holding Limited Method for restoring public key based on SM2 signature

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789908A (en) * 2016-11-23 2017-05-31 江苏通付盾科技有限公司 Block common recognition method for building up and system in block chain
CN107046542A (en) * 2017-04-24 2017-08-15 杭州云象网络技术有限公司 A kind of method that common recognition checking is realized using hardware in network level
CN108615154A (en) * 2018-05-01 2018-10-02 王锐 A kind of block chain digital signature system and process for using based on hardware encipherment protection
US10778428B1 (en) * 2019-05-31 2020-09-15 Allibaba Group Holding Limited Method for restoring public key based on SM2 signature
CN111224782A (en) * 2019-11-22 2020-06-02 腾讯科技(深圳)有限公司 Data verification method based on digital signature, intelligent device and storage medium
CN111191292A (en) * 2019-12-16 2020-05-22 平安壹钱包电子商务有限公司 Accounting method, accounting device, accounting system and computer-readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于共识机制的LEO低轨卫星网络区域合作认证协议;魏松杰;李帅;莫冰;王佳贺;;计算机研究与发展(10);全文 *

Also Published As

Publication number Publication date
CN113098692A (en) 2021-07-09

Similar Documents

Publication Publication Date Title
CN111466096B (en) System and method for providing immutable records
KR102652551B1 (en) Smart contract execution using distributed coordination
CN109587238B (en) Data processing and synchronizing method, device, equipment and storage medium of block chain
JP6577680B2 (en) Method and system for modified blockchain using digital signature
US20170364552A1 (en) Ensuring Data Integrity of Executed Transactions
CN109361740B (en) Block generation method, device, equipment and medium of block chain
CN109002725B (en) Data processing system based on block chain
CN1960256B (en) Apparatus and program for update of time stamp
JP2020505799A (en) System and method for replay attack detection
CN108900507B (en) Block chain real-name authentication method and system
JP4347082B2 (en) Time correction device, time correction method, and time correction program for event trace data
JP2020505663A (en) System and method for replay attack detection
CN113792347B (en) Federal learning method, device, equipment and storage medium based on block chain
CN110572287B (en) Data disaster tolerance method and device, computer equipment and storage medium
US20210233068A1 (en) Settlement system, settlement method, user device, and settlement program
WO2020087042A1 (en) Blockchain consensus systems and methods involving a time parameter
CN110659907B (en) Method and device for executing intelligent contracts
US20190207766A1 (en) File based transmission validation and failure location identification system
CN115225639B (en) Changing method and device for consensus trusted cluster, computer equipment and medium
WO2022262510A1 (en) Method and apparatus for synchronizing cross-blockchain transactions
CN113098692B (en) Synchronous consensus algorithm, system and medium for multiple parties under same prefabrication rule
CN113094432A (en) Multi-party asynchronous consensus method and system based on same prefabrication rule
CN110706102B (en) Multistage signature method with anonymity for alliance block chain
WO2023082903A1 (en) Method for detecting malicious node in blockchain and blockchain
CN112182009A (en) Data updating method and device of block chain and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant