CN111737350B - Distributed system-based consensus mechanism selection method and device - Google Patents

Distributed system-based consensus mechanism selection method and device Download PDF

Info

Publication number
CN111737350B
CN111737350B CN202010565274.0A CN202010565274A CN111737350B CN 111737350 B CN111737350 B CN 111737350B CN 202010565274 A CN202010565274 A CN 202010565274A CN 111737350 B CN111737350 B CN 111737350B
Authority
CN
China
Prior art keywords
consensus
algorithm
distributed system
consensus algorithm
data
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
CN202010565274.0A
Other languages
Chinese (zh)
Other versions
CN111737350A (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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CN202010565274.0A priority Critical patent/CN111737350B/en
Publication of CN111737350A publication Critical patent/CN111737350A/en
Application granted granted Critical
Publication of CN111737350B publication Critical patent/CN111737350B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Multi Processors (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention discloses a consensus mechanism selection method and device based on a distributed system. Initializing a distributed system according to a preset consensus algorithm, wherein the initialized distributed system comprises a plurality of block chain nodes achieving consensus; adding the consensus algorithm to be added into the initialized distributed system according to the preset consensus algorithm; adding the service to be added into the initialized distributed system according to a preset consensus algorithm; and switching the initialized consensus algorithm in the distributed system according to the service type. By adopting the method and the device, the consensus mechanism can be selected according to different service scenes, and the performance of the distributed system is improved.

Description

Distributed system-based consensus mechanism selection method and device
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to a method and an apparatus for selecting a consensus mechanism based on a distributed system.
Background
The consensus mechanism is a way to describe how multiple nodes reach consensus in a distributed system. The consensus refers to that each node in the distributed system stores a data backup of the whole system, when new data is added to the system, each node needs to approve the validity of the data, and the approval process is the consensus. The distributed system adopts a consensus algorithm in design because the data of all nodes are to be synchronized. The various distributed systems are different in consensus design because the problems to be solved by the system are different, for example, the consensus algorithm of the common chain is used for preventing the problem that a small part of nodes are disliked, and the consensus algorithm of the alliance chain is used for improving the consensus efficiency. In the practical application of the distributed system, the common algorithm and the distributed system are in strong binding relation, so that different services on a single distributed system and running are required to adopt the same common algorithm. Thus, for business scenarios with high performance requirements, an inefficient consensus algorithm becomes a bottleneck for the system.
Disclosure of Invention
The invention aims to provide a consensus mechanism selection method and device based on a distributed system, which can select the consensus mechanism according to different service scenes and improve the performance of the distributed system.
In order to achieve the above object, the present invention provides the following solutions:
a distributed system-based consensus mechanism selection method, comprising:
acquiring a preset consensus algorithm;
initializing a distributed system according to the preset consensus algorithm; the initialized distributed system comprises a plurality of block chain nodes which reach consensus;
acquiring a consensus algorithm to be added;
adding the consensus algorithm to be added into the initialized distributed system according to the preset consensus algorithm;
acquiring a service to be added;
adding the service to be added into the initialized distributed system according to the preset consensus algorithm;
acquiring a service type;
and switching the consensus algorithm in the initialized distributed system according to the service type.
Optionally, the adding the consensus algorithm to be added to the initialized distributed system according to the preset consensus algorithm specifically includes:
sending the consensus algorithm to be added as first consensus configuration data to each blockchain node in the initialized distributed system;
the block link point inputs the first to-be-recognized configuration data into a common-recognized data generating function of the preset common-recognized algorithm to obtain first to-be-recognized data;
inputting the first data to be identified into a data verification function of the preset identification algorithm for verification; and if the verification is passed, adding the consensus algorithm to be added in the blockchain node.
Optionally, the adding the service to be added to the initialized distributed system according to the preset consensus algorithm specifically includes:
sending the service to be added as second consensus configuration data to each block chain node in the initialized distributed system;
the block link point inputs the second to-be-recognized configuration data into a recognition data generating function of the preset recognition algorithm to obtain second to-be-recognized data;
inputting the second data to be consensus into a data verification function of the preset consensus algorithm for verification; and if the verification is passed, adding the service to be added in the blockchain node.
Optionally, the switching the consensus algorithm in the initialized distributed system according to the service type specifically includes:
determining a consensus algorithm to be switched according to the service type;
sending the consensus algorithm to be switched as third consensus configuration data to each blockchain node in the initialized distributed system;
the block link point inputs the third to-be-recognized configuration data into a recognition data generating function of the preset recognition algorithm to obtain third to-be-recognized data;
inputting the third to-be-identified data into a data verification function of the preset identification algorithm for verification; and if the block chain node passes the verification, switching the consensus algorithm of the block chain node into the consensus algorithm to be switched.
The invention also provides a consensus mechanism selecting device based on the distributed system, which comprises:
the preset consensus algorithm acquisition module is used for acquiring a preset consensus algorithm;
the initialization module is used for initializing the distributed system according to the preset consensus algorithm; the initialized distributed system comprises a plurality of block chain nodes which reach consensus;
the consensus algorithm acquisition module is used for acquiring a consensus algorithm to be added;
the consensus algorithm adding module is used for adding the consensus algorithm to be added into the initialized distributed system according to the preset consensus algorithm;
the service acquisition module to be added is used for acquiring the service to be added;
the service adding module is used for adding the service to be added into the initialized distributed system according to the preset consensus algorithm;
the service type acquisition module is used for acquiring the service type;
and the consensus algorithm switching module is used for switching the consensus algorithm in the initialized distributed system according to the service type.
Optionally, the consensus algorithm adding module specifically includes:
the first to-be-added consensus configuration data sending unit is used for sending the to-be-added consensus algorithm as first to-be-added consensus configuration data to all block chain nodes in the initialized distributed system;
the first to-be-recognized data generating unit is used for inputting the first to-be-recognized configuration data into a to-be-recognized data generating function of the preset to-be-recognized algorithm to obtain first to-be-recognized data;
the consensus algorithm adding unit is used for inputting the first to-be-consensus data into a data verification function of the preset consensus algorithm for verification; and if the verification is passed, adding the consensus algorithm to be added in the blockchain node.
Optionally, the service adding module specifically includes:
the second to-be-consensus configuration data sending unit is used for sending the to-be-added service as second to-be-consensus configuration data to each block chain node in the initialized distributed system;
the second to-be-recognized data generating unit is used for inputting the second to-be-recognized configuration data into a recognition data generating function of the preset recognition algorithm to obtain second to-be-recognized data;
the business adding unit is used for inputting the second data to be identified into a data verification function of the preset identification algorithm for verification; and if the verification is passed, adding the service to be added in the blockchain node.
Optionally, the consensus algorithm switching module specifically includes:
the consensus algorithm determining unit to be switched is used for determining the consensus algorithm to be switched according to the service type;
the third to-be-consensus configuration data sending unit is used for sending the to-be-switched consensus algorithm as third to-be-consensus configuration data to all block chain nodes in the initialized distributed system;
the third to-be-recognized data generating unit is used for inputting the third to-be-recognized configuration data into a recognition data generating function of the preset recognition algorithm to obtain third to-be-recognized data;
the consensus algorithm switching unit is used for inputting the third to-be-consensus data into a data verification function of the preset consensus algorithm for verification; and if the block chain node passes the verification, switching the consensus algorithm of the block chain node into the consensus algorithm to be switched.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides a method and a device for selecting a consensus mechanism based on a distributed system, wherein the distributed system is initialized according to a preset consensus algorithm, and the initialized distributed system comprises a plurality of block chain nodes achieving consensus; adding a consensus algorithm to be added into the distributed system according to a preset consensus algorithm; adding the service to be added into the distributed system according to a preset consensus algorithm; the consensus algorithm in the distributed system is switched according to the service type, so that the selection of the consensus mechanism can be carried out according to different service scenes, and the performance of the distributed system is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings that are needed in the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a selection method of a consensus mechanism based on a distributed system in an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating initialization of a distributed system according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating the addition of an identification algorithm in an embodiment of the present invention;
fig. 4 is a schematic diagram of service addition in an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating switching of the algorithm in accordance with an embodiment of the present invention;
fig. 6 is a block diagram of a selection device based on a consensus mechanism of a distributed system in an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention aims to provide a consensus mechanism selection method and device based on a distributed system, which can select the consensus mechanism according to different service scenes and improve the performance of the distributed system.
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
Examples
Fig. 1 is a flowchart of a consensus mechanism selection method based on a distributed system in an embodiment of the present invention. As shown in fig. 1, a consensus mechanism selection method based on a distributed system includes:
step 101: and acquiring a preset consensus algorithm.
Step 102: initializing a distributed system according to a preset consensus algorithm; the initialized distributed system includes a plurality of agreed upon blockchain nodes.
Fig. 2 is an initialization schematic diagram of a distributed system according to an embodiment of the present invention, as shown in fig. 2, each node has two parts, namely a consensus process pool and a consensus algorithm pool, and there is only one node consensus process. The preset consensus algorithm is consensus algorithm 1, each node starts a node consensus process in a consensus process pool, each node selects the consensus algorithm 1 for consensus, and data of each node is synchronous, so that the initialization of the distributed system is completed.
Step 103: and acquiring a consensus algorithm to be added.
Step 104: and adding the consensus algorithm to be added into the initialized distributed system according to the preset consensus algorithm.
Step 104 specifically includes:
sending the consensus algorithm to be added as first consensus configuration data to each block chain node in the initialized distributed system; the block link point inputs the first to-be-recognized configuration data into a common-recognized data generating function of a preset common-recognized algorithm to obtain the first to-be-recognized data; inputting first to-be-recognized data into a data verification function of a preset consensus algorithm for verification; and if the verification is passed, adding a consensus algorithm to be added in the blockchain node.
Fig. 3 is a schematic diagram of adding a consensus algorithm in an embodiment of the present invention, as shown in fig. 3, a certain node (for example, node 2) adds a consensus algorithm 2 to a pool of consensus algorithms, and the consensus algorithm is used as configuration data to be consensus sent to other nodes (node 1, node 3, node 4) through a node consensus process to perform consensus. When the consensus is completed, the pool of consensus algorithms for all nodes includes consensus algorithm 2.
Step 105: and acquiring the service to be added.
Step 106: and adding the service to be added into the initialized distributed system according to a preset consensus algorithm.
Step 106, specifically includes:
the service to be added is used as second consensus configuration data to be sent to all block chain nodes in the initialized distributed system; the block chain link point inputs the second to-be-recognized configuration data into a recognition data generating function of a preset recognition algorithm to obtain the second to-be-recognized data; inputting second data to be identified into a data verification function of a preset identification algorithm for verification; and if the verification is passed, adding the service to be added in the blockchain node.
Fig. 4 is a schematic diagram of service addition in the embodiment of the present invention, as shown in fig. 4, a node (for example, node 1) needs the entire distributed system to support the consensus of the service S1 together due to the addition of the new service S1, and selects the consensus algorithm 2 as the consensus algorithm of the service S1. The addition of this service S1 is sent as configuration information to be consensus to other nodes via a node consensus process. When the consensus is completed, each node starts the consensus process of the service S1 in the respective consensus process pool, and determines the consensus algorithm as consensus algorithm 2.
Step 107: and acquiring the service type.
Step 108: and switching the initialized consensus algorithm in the distributed system according to the service type.
Step 108 specifically includes:
determining a consensus algorithm to be switched according to the service type; sending the consensus algorithm to be switched as third consensus configuration data to each block chain node in the initialized distributed system; the block chain link point inputs the third to-be-recognized configuration data into a recognition data generating function of a preset recognition algorithm to obtain third to-be-recognized data; inputting the third to-be-recognized data into a data verification function of a preset recognition algorithm for verification; and if the verification is passed, switching the consensus algorithm of the block chain node into the consensus algorithm to be switched.
Fig. 5 is a schematic diagram of switching the consensus algorithm in the embodiment of the present invention, and as shown in fig. 5, the consensus algorithm to be added is consensus algorithm 3. When a node (for example, node 4) switches the consensus algorithm of the service S1 to the consensus algorithm 3 according to the service requirement, the node sends the modification as configuration data to be consensus to other nodes through a node consensus process. When all nodes reach consensus, the consensus algorithm of the consensus process of all node services S1 is switched to consensus algorithm 3.
Fig. 6 is a block diagram of a selection device based on a consensus mechanism of a distributed system according to an embodiment of the present invention. As shown in fig. 6, a consensus mechanism selecting device based on a distributed system includes:
the preset consensus algorithm acquisition module 201 is configured to acquire a preset consensus algorithm.
An initialization module 202, configured to initialize the distributed system according to a preset consensus algorithm; the initialized distributed system includes a plurality of agreed upon blockchain nodes.
And the consensus algorithm obtaining module 203 to be added is configured to obtain a consensus algorithm to be added.
And the consensus algorithm adding module 204 is configured to add the consensus algorithm to be added to the initialized distributed system according to a preset consensus algorithm.
The consensus algorithm adding module 204 specifically includes:
the first to-be-consensus configuration data sending unit is used for sending a to-be-added consensus algorithm as first to-be-consensus configuration data to all block chain nodes in the initialized distributed system;
the first to-be-recognized data generating unit is used for inputting the first to-be-recognized configuration data into a to-be-recognized data generating function of a preset to-be-recognized algorithm to obtain first to-be-recognized data;
the consensus algorithm adding unit is used for inputting first to-be-consensus data into a data verification function of a preset consensus algorithm for verification; and if the verification is passed, adding a consensus algorithm to be added in the blockchain node.
And the service to be added obtaining module 205 is configured to obtain a service to be added.
And the service adding module 206 is configured to add the service to be added to the initialized distributed system according to a preset consensus algorithm.
The service adding module 206 specifically includes:
the second to-be-consensus configuration data sending unit is used for sending the to-be-added service as second to-be-consensus configuration data to all the block chain nodes in the initialized distributed system;
the second to-be-recognized data generating unit is used for inputting second to-be-recognized configuration data into a recognition data generating function of a preset recognition algorithm to obtain second to-be-recognized data;
the business adding unit is used for inputting the second data to be identified into a data verification function of a preset identification algorithm for verification; and if the verification is passed, adding the service to be added in the blockchain node.
The service type obtaining module 207 is configured to obtain a service type.
And the consensus algorithm switching module 208 is configured to switch the consensus algorithm in the initialized distributed system according to the service type.
The consensus algorithm switching module 208 specifically includes:
the to-be-switched consensus algorithm determining unit is used for determining a to-be-switched consensus algorithm according to the service type;
the third to-be-consensus configuration data sending unit is used for sending the to-be-switched consensus algorithm as third to-be-consensus configuration data to all block chain nodes in the initialized distributed system;
the third to-be-recognized data generating unit is used for inputting the third to-be-recognized configuration data into a recognition data generating function of a preset recognition algorithm to obtain third to-be-recognized data;
the consensus algorithm switching unit is used for inputting the third to-be-consensus data into a data verification function of a preset consensus algorithm for verification; and if the verification is passed, switching the consensus algorithm of the block chain node into the consensus algorithm to be switched.
For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to assist in understanding the methods of the present invention and the core ideas thereof; also, it is within the scope of the present invention to be modified by those of ordinary skill in the art in light of the present teachings. In summary, the present description should not be construed as limiting the invention.

Claims (6)

1. A distributed system-based consensus mechanism selection method, comprising:
acquiring a preset consensus algorithm;
initializing a distributed system according to the preset consensus algorithm; the initialized distributed system comprises a plurality of block chain nodes achieving consensus, wherein each node is provided with a consensus process pool and a consensus algorithm pool, and one node has only one consensus process;
acquiring a consensus algorithm to be added;
adding the consensus algorithm to be added to the initialized distributed system according to the preset consensus algorithm, wherein the method specifically comprises the following steps:
sending the consensus algorithm to be added as first consensus configuration data to each blockchain node in the initialized distributed system;
the block link point inputs the first to-be-recognized configuration data into a common-recognized data generating function of the preset common-recognized algorithm to obtain first to-be-recognized data;
inputting the first data to be identified into a data verification function of the preset identification algorithm for verification; if the verification is passed, adding the consensus algorithm to be added in the blockchain node;
acquiring a service to be added;
adding the service to be added into the initialized distributed system according to the preset consensus algorithm;
acquiring a service type;
and switching the consensus algorithm in the initialized distributed system according to the service type.
2. The distributed system-based consensus mechanism selection method according to claim 1, wherein the adding the service to be added to the initialized distributed system according to the preset consensus algorithm specifically comprises:
sending the service to be added as second consensus configuration data to each block chain node in the initialized distributed system;
the block link point inputs the second to-be-recognized configuration data into a recognition data generating function of the preset recognition algorithm to obtain second to-be-recognized data;
inputting the second data to be consensus into a data verification function of the preset consensus algorithm for verification; and if the verification is passed, adding the service to be added in the blockchain node.
3. The distributed system-based consensus mechanism selection method according to claim 2, wherein the switching the initialized consensus algorithm in the distributed system according to the service type specifically comprises:
determining a consensus algorithm to be switched according to the service type;
sending the consensus algorithm to be switched as third consensus configuration data to each blockchain node in the initialized distributed system;
the block link point inputs the third to-be-recognized configuration data into a recognition data generating function of the preset recognition algorithm to obtain third to-be-recognized data;
inputting the third to-be-identified data into a data verification function of the preset identification algorithm for verification; and if the block chain node passes the verification, switching the consensus algorithm of the block chain node into the consensus algorithm to be switched.
4. A distributed system-based consensus mechanism selection apparatus, comprising:
the preset consensus algorithm acquisition module is used for acquiring a preset consensus algorithm;
the initialization module is used for initializing the distributed system according to the preset consensus algorithm; the initialized distributed system comprises a plurality of block chain nodes achieving consensus, wherein each node is provided with a consensus process pool and a consensus algorithm pool, and one node has only one consensus process;
the consensus algorithm acquisition module is used for acquiring a consensus algorithm to be added;
the consensus algorithm adding module is configured to add the consensus algorithm to be added to the initialized distributed system according to the preset consensus algorithm, and specifically includes:
the first to-be-added consensus configuration data sending unit is used for sending the to-be-added consensus algorithm as first to-be-added consensus configuration data to all block chain nodes in the initialized distributed system;
the first to-be-recognized data generating unit is used for inputting the first to-be-recognized configuration data into a to-be-recognized data generating function of the preset to-be-recognized algorithm to obtain first to-be-recognized data;
the consensus algorithm adding unit is used for inputting the first to-be-consensus data into a data verification function of the preset consensus algorithm for verification; if the verification is passed, adding the consensus algorithm to be added in the blockchain node;
the service acquisition module to be added is used for acquiring the service to be added;
the service adding module is used for adding the service to be added into the initialized distributed system according to the preset consensus algorithm;
the service type acquisition module is used for acquiring the service type;
and the consensus algorithm switching module is used for switching the consensus algorithm in the initialized distributed system according to the service type.
5. The distributed system-based consensus mechanism selection device according to claim 4, wherein the service adding module specifically comprises:
the second to-be-consensus configuration data sending unit is used for sending the to-be-added service as second to-be-consensus configuration data to each block chain node in the initialized distributed system;
the second to-be-recognized data generating unit is used for inputting the second to-be-recognized configuration data into a recognition data generating function of the preset recognition algorithm to obtain second to-be-recognized data;
the business adding unit is used for inputting the second data to be identified into a data verification function of the preset identification algorithm for verification; and if the verification is passed, adding the service to be added in the blockchain node.
6. The distributed system-based consensus mechanism selection device according to claim 5, wherein the consensus algorithm switching module specifically comprises:
the consensus algorithm determining unit to be switched is used for determining the consensus algorithm to be switched according to the service type;
the third to-be-consensus configuration data sending unit is used for sending the to-be-switched consensus algorithm as third to-be-consensus configuration data to all block chain nodes in the initialized distributed system;
the third to-be-recognized data generating unit is used for inputting the third to-be-recognized configuration data into a recognition data generating function of the preset recognition algorithm to obtain third to-be-recognized data;
the consensus algorithm switching unit is used for inputting the third to-be-consensus data into a data verification function of the preset consensus algorithm for verification; and if the block chain node passes the verification, switching the consensus algorithm of the block chain node into the consensus algorithm to be switched.
CN202010565274.0A 2020-06-19 2020-06-19 Distributed system-based consensus mechanism selection method and device Active CN111737350B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010565274.0A CN111737350B (en) 2020-06-19 2020-06-19 Distributed system-based consensus mechanism selection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010565274.0A CN111737350B (en) 2020-06-19 2020-06-19 Distributed system-based consensus mechanism selection method and device

Publications (2)

Publication Number Publication Date
CN111737350A CN111737350A (en) 2020-10-02
CN111737350B true CN111737350B (en) 2023-05-23

Family

ID=72650287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010565274.0A Active CN111737350B (en) 2020-06-19 2020-06-19 Distributed system-based consensus mechanism selection method and device

Country Status (1)

Country Link
CN (1) CN111737350B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114296831A (en) * 2021-12-30 2022-04-08 迅鳐成都科技有限公司 Dynamic loading method, device and system for block chain consensus algorithm and storage medium
CN116614311B (en) * 2023-07-18 2023-11-03 中移(苏州)软件技术有限公司 Mirror image signature method, device, service node, terminal and readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107341702B (en) * 2017-03-08 2020-06-23 创新先进技术有限公司 Service processing method and device
CN108647230B (en) * 2018-03-29 2021-10-08 深圳市网心科技有限公司 Distributed storage method, electronic device, and storage medium
CN110430045B (en) * 2019-07-17 2021-10-01 上海朝夕网络技术有限公司 Random number generation method based on distributed consensus algorithm
CN110365695A (en) * 2019-07-24 2019-10-22 中国工商银行股份有限公司 The block chain data interactive method and device of changeable common recognition algorithm

Also Published As

Publication number Publication date
CN111737350A (en) 2020-10-02

Similar Documents

Publication Publication Date Title
CN111737350B (en) Distributed system-based consensus mechanism selection method and device
CN111083228B (en) Identification number generation method and device and electronic equipment
CN110276060B (en) Data processing method and device
CN110022216A (en) Efficient asynchronous Byzantium's common recognition method, network communication platform of low communication complexity
CN105677673B (en) Method for processing business, apparatus and system
CN109460358B (en) Configuration management method and system based on Cmdb
CN110837505B (en) State data storage method, state data synchronization device and storage medium
CN112785408A (en) Account checking method and device based on Hash
CN111640018B (en) Block chain transaction existence verification method and device
CN113641455B (en) Message conversion method and platform
CN111427918A (en) Transaction detail data comparison method and device
CN111127088A (en) Method, device, computer equipment and storage medium for realizing final consistency
US20080154461A1 (en) Apparatus, system and method for allowing prescribed components in the system to be started with minimal delay
CN117294757B (en) Complex service splitting execution method, system, equipment and medium based on block chain
CN111061813B (en) Method, apparatus and computing device for data synchronization in blockchain network
CN111738853A (en) Transaction optimization method and device based on block chain distributed system
CN110990360A (en) File synchronization method based on network storage device and related components
CN113610527B (en) Alliance chain transaction method, device, system, terminal equipment and storage medium
CN110727475B (en) Intelligent service calling method based on configuration
CN114510540A (en) Data processing method, calculation storage separation system and block chain network architecture
CN112148797B (en) Distributed data access method and device based on block chain and storage node
CN114386983A (en) Scenario payment management method, system and device and readable storage medium
CN110958240A (en) Message subscription system and method
CN113206882B (en) Consensus method, computer device and storage medium
CN110401643A (en) Publish synchronous method, device, electronic equipment and the storage medium of behavior

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