CN113992335A - Self-adaptive multi-consensus block chain processing method and system - Google Patents

Self-adaptive multi-consensus block chain processing method and system Download PDF

Info

Publication number
CN113992335A
CN113992335A CN202111616680.6A CN202111616680A CN113992335A CN 113992335 A CN113992335 A CN 113992335A CN 202111616680 A CN202111616680 A CN 202111616680A CN 113992335 A CN113992335 A CN 113992335A
Authority
CN
China
Prior art keywords
node
block chain
blockchain
evaluation value
service 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.)
Granted
Application number
CN202111616680.6A
Other languages
Chinese (zh)
Other versions
CN113992335B (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.)
Guangzhou Minxing Digital Technology Co.,Ltd.
Original Assignee
Guangzhou Minhang Blockchain 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 Guangzhou Minhang Blockchain Technology Co ltd filed Critical Guangzhou Minhang Blockchain Technology Co ltd
Priority to CN202111616680.6A priority Critical patent/CN113992335B/en
Publication of CN113992335A publication Critical patent/CN113992335A/en
Application granted granted Critical
Publication of CN113992335B publication Critical patent/CN113992335B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a self-adaptive multi-consensus block chain processing method and a system. The method comprises the steps that a block chain receiving node receives service data sent by a block chain sending node; the block chain receiving node verifies the validity of the service data, and calculates the overall performance evaluation value according to the block chain link point information and the service data after the verification is passed; and dynamically selecting a corresponding consensus mechanism from multiple consensus mechanisms by the block chain receiving node according to the calculated overall performance evaluation value. By adopting the technical scheme, the selection of the consensus mechanism can be adjusted in real time according to the difference of the nodes and the difference of the service data, the performance requirement of the consensus mechanism used by each block link point is comprehensively considered, the most appropriate consensus mechanism is selected for safety authentication, and the flexibility of authentication by using the consensus mechanism is improved.

Description

Self-adaptive multi-consensus block chain processing method and system
Technical Field
The present invention relates to the field of data processing, and in particular, to a method and a system for adaptive multi-consensus block chain processing.
Background
Blockchains are a term of art in information technology. In essence, the system is a shared database, and the data or information stored in the shared database has the characteristics of 'unforgeability', 'whole-course trace', 'traceability', 'public transparency', 'collective maintenance', and the like. Based on the characteristics, the block chain technology lays a solid 'trust' foundation, creates a reliable 'cooperation' mechanism and has wide application prospect.
A blockchain, which is a data structure that stores data in time sequence, may support different consensus mechanisms. The consensus mechanism is an important component of the blockchain technique. The goal of the blockchain consensus mechanism is to have all honest nodes maintain a consistent blockchain view while satisfying two properties: consistency, namely prefix parts of block chains stored by all honest nodes are completely the same; validity, i.e. the information released by a honest node, will eventually be recorded in its blockchain by all other honest nodes. However, the existing blockchain node generally only sets one consensus mechanism to perform authentication of all information, and each consensus mechanism has its own advantages and disadvantages, and the setting of one consensus mechanism is undoubtedly a waste of information calculation resources.
Disclosure of Invention
The invention provides a self-adaptive multi-consensus block chain processing method, which comprises the following steps:
a block chain receiving node receives service data sent by a block chain sending node;
the block chain receiving node verifies the validity of the service data, and calculates the overall performance evaluation value according to the block chain link point information and the service data after the verification is passed;
and dynamically selecting a corresponding consensus mechanism from multiple consensus mechanisms by the block chain receiving node according to the calculated overall performance evaluation value.
The method for processing a self-adaptive multi-consensus blockchain as described above, wherein verifying the validity of the service data specifically includes: searching other block chain sub-nodes of other storage authentication data blocks related to the storage block chain sending node according to the block chain link point identification in the service data of the block chain sending node, then sending data acquisition requests to the block chain sub-nodes, and receiving data returned by the block chain sub-nodes; and then, carrying out summary verification on the link point data of each block.
The adaptive multi-consensus block chain processing method as described above, wherein the calculating of the overall performance evaluation value specifically includes the following sub-steps:
acquiring node attributes of a receiving node of a block chain, analyzing received service data, and acquiring the node attributes of a sending node of the block chain from the service data;
respectively calculating a node safety evaluation value, a performance processing value and a resource consumption rate according to the block chain receiving node attribute and the block chain sending node attribute;
and comprehensively calculating the node safety evaluation value, the performance processing value and the resource consumption rate to obtain the overall performance evaluation value.
An adaptive multi-consensus blockchain processing method as described above, wherein calculating
Figure 127859DEST_PATH_IMAGE001
Obtaining an overall performance evaluation value; wherein the content of the first and second substances,
Figure 317531DEST_PATH_IMAGE002
which represents the overall performance evaluation value of the system,
Figure 748513DEST_PATH_IMAGE003
a weight factor representing a security assessment value of the node,
Figure 111361DEST_PATH_IMAGE004
a weighting factor that represents a performance handling value,
Figure 678609DEST_PATH_IMAGE005
and the weight factor represents the resource consumption rate, S is the node safety evaluation value, P is the node performance processing value, and X is the node resource consumption rate.
The adaptive multi-consensus blockchain processing method as described above, wherein a performance evaluation threshold range of each consensus mechanism is preset in each blockchain node, and a corresponding consensus mechanism is searched from the performance evaluation threshold range according to the calculated overall performance evaluation value of each data transmitter, and is used as a currently optimal consensus mechanism for security authentication.
The application also provides a self-adaptive multi-consensus block chain, which is characterized by comprising a plurality of block chain nodes, wherein a multi-consensus mechanism is arranged in each block chain node; the block chain link points specifically comprise a block chain receiving node and a block chain sending node;
the block chain sending node is used for organizing the service data and sending the service data to the block chain receiving node;
the block chain receiving node is used for receiving the service data sent by the block chain sending node; verifying the validity of the service data, and calculating an overall performance evaluation value according to the block link point information and the service data after the verification is passed; and the system is used for dynamically selecting a corresponding consensus mechanism from multiple consensus mechanisms according to the calculated overall performance evaluation value.
The adaptive multi-consensus block chain as described above, wherein the block chain receiving node includes a service data verification module, configured to verify validity of service data, and specifically configured to search, according to a block chain link point identifier in the service data of the block chain sending node, other block chain child nodes storing other storage authentication data blocks associated with the block chain sending node, then send a data acquisition request to the block chain child nodes, and receive data returned by the block chain child nodes; and then, carrying out summary verification on the link point data of each block.
The adaptive multi-consensus blockchain as described above, wherein the blockchain receiving node includes an overall performance evaluation value calculation module, which is specifically configured to obtain a node attribute of the blockchain receiving node, analyze the received service data, and obtain a node attribute of the blockchain sending node from the service data; respectively calculating a node safety evaluation value, a performance processing value and a resource consumption rate according to the block chain receiving node attribute and the block chain sending node attribute; and comprehensively calculating the node safety evaluation value, the performance processing value and the resource consumption rate to obtain the overall performance evaluation value.
An adaptive multi-consensus blockchain as described above, wherein overall performance evaluationThe value calculation module is particularly used for calculating
Figure 39183DEST_PATH_IMAGE006
Obtaining an overall performance evaluation value; wherein the content of the first and second substances,
Figure 223039DEST_PATH_IMAGE007
which represents the overall performance evaluation value of the system,
Figure 858420DEST_PATH_IMAGE008
a weight factor representing a security assessment value of the node,
Figure 545753DEST_PATH_IMAGE009
a weighting factor that represents a performance handling value,
Figure 77229DEST_PATH_IMAGE010
and the weight factor represents the resource consumption rate, S is the node safety evaluation value, P is the node performance processing value, and X is the node resource consumption rate.
The adaptive multi-consensus block chain as described above, wherein the block chain receiving node includes a consensus mechanism selection module, configured to preset a performance evaluation threshold range of each consensus mechanism in each block chain node, search a corresponding consensus mechanism from the performance evaluation threshold range according to the calculated overall performance evaluation value of each data sender, and perform security authentication with the consensus mechanism as a currently optimal consensus mechanism.
The invention has the following beneficial effects: by adopting the technical scheme, the selection of the consensus mechanism can be adjusted in real time according to the difference of the nodes and the difference of the service data, the performance requirement of the consensus mechanism used by each block link point is comprehensively considered, the most appropriate consensus mechanism is selected for safety authentication, and the flexibility of authentication by using the consensus mechanism is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a flowchart of a method for processing an adaptive multi-consensus blockchain according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of an adaptive multi-consensus blockchain according to a second embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
As shown in fig. 1, an embodiment of the present invention provides a method for adaptive multi-consensus blockchain processing, including:
step 110, receiving service data sent by a blockchain sending node by a blockchain receiving node;
the block chain comprises a plurality of block chain nodes, and a multi-consensus mechanism is set in each block chain node, wherein the multi-consensus mechanism comprises but is not limited to a POW workload proving mechanism, a POS stock right proving mechanism, a DPOS authorized stock right proving mechanism, a PBFT practical Byzantine fault tolerance mechanism and a POI importance degree proving mechanism. Different consensus mechanisms have different advantages and disadvantages, for example, the algorithm of the POW working certification mechanism is simple and easy to realize that the occupied storage space is small but the resource waste is heavy, the POS stock right certification mechanism has low resource consumption but low security performance, the DPOS authorized stock right certification mechanism has high calculation efficiency but low security performance, and the PBFT practical byzantine fault-tolerant mechanism has high security performance but low fault-tolerant rate. And a plurality of virtual processors are arranged in each block chain node to process the service data of other block chain nodes.
Step 120, verifying the validity of the service data by the block link receiving node, and calculating an overall performance evaluation value according to the block link node information and the service data after the verification is passed;
specifically, the calculating of the overall performance evaluation value specifically includes the following sub-steps:
step 121, obtaining node attributes of the blockchain receiving nodes, analyzing the received service data, and obtaining the node attributes of the blockchain sending nodes from the service data;
in the embodiment of the application, in order to ensure the security of data in each block chain node, the security authentication data of each block chain node is generally sent to a plurality of block chain sub-nodes in a block manner, after a block chain receiving node receives service data sent by the block chain sending node, other block chain sub-nodes of other storage authentication data blocks related to the block chain sending node are found according to block chain node identifiers in the service data, then data acquisition requests are sent to the block chain sub-nodes, data returned by the block chain sub-nodes are received, and then all the block chain sub-nodes are subjected to summary verification; the data returned by each block chain child node comprises the attribute of each block chain link node; wherein the block link point attribute includes but is not limited to a node security feature value, a data security feature value.
After the block chain receiving node acquires the data returned by each block chain child node, the authorization condition of each block chain self-connection list in the block chain receiving node is determined, and the number of authorized nodes and the number of unauthorized nodes are acquired.
Step 122, respectively calculating a node safety evaluation value, a performance processing value and a resource consumption rate according to the block chain receiving node attribute and the block chain sending node attribute;
the node safety assessment value is calculated using the following formula:
Figure 217223DEST_PATH_IMAGE011
wherein S represents a node safety evaluation value;
Figure 688918DEST_PATH_IMAGE012
the influence weight of the node attribute on the safety evaluation value is taken as the weight;
Figure 434020DEST_PATH_IMAGE013
the influence weight of the service data on the safety evaluation value is obtained;
Figure 198714DEST_PATH_IMAGE014
representing the node security characteristic value of the jth authorized node, wherein the value of J is 1 to J, and J is the number of authorized nodes;
Figure 826004DEST_PATH_IMAGE015
representing a node security characteristic value of an R-th unauthorized node, wherein the value of R is 1 to R, and R is the number of unauthorized nodes;
Figure 6450DEST_PATH_IMAGE016
an impact factor representing a node security feature value of the jth authorized node,
Figure 668375DEST_PATH_IMAGE017
an impact factor representing a node security feature value of an r-th unauthorized node; e = 2.718;
Figure 603970DEST_PATH_IMAGE018
the data security characteristic value of the ith block chain node is obtained;
Figure 921819DEST_PATH_IMAGE019
and the data length of the ith block chain node is represented, the value of i is 1 to N, N is the number of the link points of the request receiver block, and J + R = N.
Calculating a node performance processing value by adopting the following formula;
Figure 702693DEST_PATH_IMAGE020
wherein the content of the first and second substances,
Figure 484705DEST_PATH_IMAGE021
representing the performance processing value of the block chain receiving node to each block chain child node service data;
Figure 528884DEST_PATH_IMAGE022
representing the use frequency degree value of the kth virtual processor in the block chain node, wherein the value of K is 1 to K, and K is the total number of the virtual processors in the block chain node;
Figure 396346DEST_PATH_IMAGE023
representing the amount of data of the jth sub-task processed by the kth processor, j having a value from 1 to
Figure 479446DEST_PATH_IMAGE024
Figure 53647DEST_PATH_IMAGE024
The number of subtasks in the task processed by the kth virtual processor;
Figure 331045DEST_PATH_IMAGE025
representing the total data amount of the task corresponding to the kth virtual processor;
Figure 357906DEST_PATH_IMAGE026
representing a data processing rate of a kth virtual processor;
Figure 11742DEST_PATH_IMAGE027
representing the data processing completion time length of a task corresponding to the kth virtual processor;
Figure 440449DEST_PATH_IMAGE028
indicating the time length of the k-th virtual processor for processing other tasks in the process of processing the corresponding task.
Calculating the node resource consumption rate by adopting the following formula:
Figure 623169DEST_PATH_IMAGE029
wherein the content of the first and second substances,
Figure 465223DEST_PATH_IMAGE030
is the node resource consumption rate;
Figure 594853DEST_PATH_IMAGE031
the operation state parameter of the kth virtual processor is K, the value of K is 1 to K, K is the total number of the virtual processors, and if the virtual processors are in the operation state, the K is the total number of the virtual processors
Figure 940383DEST_PATH_IMAGE032
If the virtual processor is in the non-running state, then
Figure 762846DEST_PATH_IMAGE033
Figure 826617DEST_PATH_IMAGE034
Indicating the memory occupancy of the kth virtual processor,
Figure 494359DEST_PATH_IMAGE035
representing the influence factor of the memory occupancy rate on the node resource consumption rate;
Figure 694396DEST_PATH_IMAGE036
indicating the hard disk occupancy of the kth virtual processor,
Figure 251541DEST_PATH_IMAGE037
representing the influence factor of the hard disk occupancy rate on the node resource consumption rate;
Figure 474712DEST_PATH_IMAGE038
representing the CPU utilization of the kth virtual processor,
Figure 274041DEST_PATH_IMAGE039
and the influence factor of the CPU utilization rate on the node resource consumption rate is shown.
Step 123, comprehensively calculating the node safety evaluation value, the performance processing value and the resource consumption rate to obtain an overall performance evaluation value;
specifically, calculating
Figure 531847DEST_PATH_IMAGE040
Obtaining an overall performance evaluation value; wherein the content of the first and second substances,
Figure 492850DEST_PATH_IMAGE041
which represents the overall performance evaluation value of the system,
Figure 468896DEST_PATH_IMAGE042
a weight factor representing a security assessment value of the node,
Figure 540757DEST_PATH_IMAGE043
a weighting factor that represents a performance handling value,
Figure 715387DEST_PATH_IMAGE044
a weighting factor representing a resource consumption rate.
Referring back to step 130 in fig. 1, the blockchain receiving node selects a corresponding consensus mechanism from multiple consensus mechanisms according to the calculated overall performance evaluation value;
specifically, a performance evaluation threshold range of each consensus mechanism is preset in each block chain node, a corresponding consensus mechanism is searched from the performance evaluation threshold range according to the calculated overall performance evaluation value of each data sending party, and the consensus mechanism is used as the currently optimal consensus mechanism for security authentication. The method and the device dynamically calculate the corresponding overall performance evaluation value according to the node information of different nodes and different transmitted service data, and then select the optimal consensus mechanism from the multiple consensus mechanisms set by the nodes according to the overall performance evaluation value.
Example two
As shown in fig. 2, a second embodiment of the present application provides an adaptive multi-consensus blockchain 20, which includes a plurality of blockchain nodes, where each blockchain node is provided with a multi-consensus mechanism; a data transmitting party in the block chain node is used as a block chain transmitting node 21, and a data receiving party in the block chain node is used as a block chain receiving node 22;
the block chain sending node 21 is used for organizing the service data and sending the service data to the block chain receiving node;
the block chain receiving node 22 is configured to receive service data sent by the block chain sending node; verifying the validity of the service data, and calculating an overall performance evaluation value according to the block link point information and the service data after the verification is passed; and the system is used for dynamically selecting a corresponding consensus mechanism from multiple consensus mechanisms according to the calculated overall performance evaluation value.
Specifically, the blockchain receiving node 22 includes a service data verifying module 221, configured to verify validity of the service data, and specifically configured to search, according to a blockchain link point identifier in the service data of the blockchain transmitting node, other blockchain child nodes of other storage authentication data blocks associated with the storage-block-chain transmitting node, then send a data acquisition request to the blockchain child nodes, and receive data returned by the blockchain child nodes; and then, carrying out summary verification on the link point data of each block.
The blockchain receiving node 22 includes an overall performance evaluation value calculation module 222, which is specifically configured to acquire a node attribute of the blockchain receiving node, analyze the received service data, and acquire a node attribute of the blockchain sending node from the service data; respectively calculating a node safety evaluation value, a performance processing value and a resource consumption rate according to the block chain receiving node attribute and the block chain sending node attribute; and comprehensively calculating the node safety evaluation value, the performance processing value and the resource consumption rate to obtain the overall performance evaluation value.
Specifically, the overall performance evaluation value calculation module 222 specifically includes a safety evaluation value calculation sub-module 2221, a performance processing value operator module 2222, and a resource consumption rate calculation sub-module 2223;
among them, the safety evaluation value calculating submodule 2221 is used for calculating the safety evaluation value by the formula
Figure 50553DEST_PATH_IMAGE045
Calculating a node safety evaluation value, wherein S represents the node safety evaluation value;
Figure 310633DEST_PATH_IMAGE046
the influence weight of the node attribute on the safety evaluation value is taken as the weight;
Figure 389447DEST_PATH_IMAGE047
the influence weight of the service data on the safety evaluation value is obtained;
Figure 684163DEST_PATH_IMAGE048
representing the node security characteristic value of the jth authorized node, wherein the value of J is 1 to J, and J is the number of authorized nodes;
Figure 924651DEST_PATH_IMAGE049
representing a node security characteristic value of an R-th unauthorized node, wherein the value of R is 1 to R, and R is the number of unauthorized nodes;
Figure 937606DEST_PATH_IMAGE050
an impact factor representing a node security feature value of the jth authorized node,
Figure 554533DEST_PATH_IMAGE051
an impact factor representing a node security feature value of an r-th unauthorized node; e = 2.718;
Figure 960148DEST_PATH_IMAGE052
the data security characteristic value of the ith block chain node is obtained;
Figure 433854DEST_PATH_IMAGE053
and the data length of the ith block chain node is represented, the value of i is 1 to N, N is the number of the link points of the request receiver block, and J + R = N.
A performance processing value operator module 2222 for formulating
Figure 606210DEST_PATH_IMAGE054
Calculating a node performance processing value; wherein the content of the first and second substances,
Figure 89144DEST_PATH_IMAGE055
representing block chain receiving node to each block chain child node serviceA performance handling value of the data;
Figure 30555DEST_PATH_IMAGE056
representing the use frequency degree value of the kth virtual processor in the block chain node, wherein the value of K is 1 to K, and K is the total number of the virtual processors in the block chain node;
Figure 940742DEST_PATH_IMAGE057
representing the amount of data of the jth sub-task processed by the kth processor, j having a value from 1 to
Figure 600393DEST_PATH_IMAGE024
Figure 621439DEST_PATH_IMAGE024
The number of subtasks in the task processed by the kth virtual processor;
Figure 682936DEST_PATH_IMAGE058
representing the total data amount of the task corresponding to the kth virtual processor;
Figure 764024DEST_PATH_IMAGE059
representing a data processing rate of a kth virtual processor;
Figure 442130DEST_PATH_IMAGE060
representing the data processing completion time length of a task corresponding to the kth virtual processor;
Figure 204550DEST_PATH_IMAGE061
indicating the time length of the k-th virtual processor for processing other tasks in the process of processing the corresponding task.
Resource consumption rate calculation submodule 2223 for calculating the resource consumption rate by the formula
Figure 182870DEST_PATH_IMAGE062
Calculating the node resource consumption rate; wherein the content of the first and second substances,
Figure 372543DEST_PATH_IMAGE063
is the node resource consumption rate;
Figure 570569DEST_PATH_IMAGE064
the operation state parameter of the kth virtual processor is K, the value of K is 1 to K, K is the total number of the virtual processors, and if the virtual processors are in the operation state, the K is the total number of the virtual processors
Figure 871100DEST_PATH_IMAGE065
If the virtual processor is in the non-running state, then
Figure 703927DEST_PATH_IMAGE066
Figure 861239DEST_PATH_IMAGE067
Indicating the memory occupancy of the kth virtual processor,
Figure 717199DEST_PATH_IMAGE068
representing the influence factor of the memory occupancy rate on the node resource consumption rate;
Figure 883738DEST_PATH_IMAGE069
indicating the hard disk occupancy of the kth virtual processor,
Figure 774334DEST_PATH_IMAGE070
representing the influence factor of the hard disk occupancy rate on the node resource consumption rate;
Figure 368126DEST_PATH_IMAGE071
representing the CPU utilization of the kth virtual processor,
Figure 711383DEST_PATH_IMAGE072
and the influence factor of the CPU utilization rate on the node resource consumption rate is shown.
The overall performance evaluation value calculation module 222 is specifically used for calculating
Figure 416034DEST_PATH_IMAGE073
Obtaining an overall performance evaluation value; wherein the content of the first and second substances,
Figure 161136DEST_PATH_IMAGE074
which represents the overall performance evaluation value of the system,
Figure 925830DEST_PATH_IMAGE075
a weight factor representing a security assessment value of the node,
Figure 756382DEST_PATH_IMAGE076
a weighting factor that represents a performance handling value,
Figure 999145DEST_PATH_IMAGE077
a weighting factor representing a resource consumption rate.
Further, the blockchain receiving node 22 includes a consensus mechanism selecting module 223, configured to preset a performance evaluation threshold range of each consensus mechanism in each blockchain node, search for a corresponding consensus mechanism from the performance evaluation threshold range according to the calculated overall performance evaluation value of each data sending party, and perform security authentication with the consensus mechanism as the currently optimal consensus mechanism.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.

Claims (10)

1. An adaptive multi-consensus blockchain processing method, comprising:
a block chain receiving node receives service data sent by a block chain sending node;
the block chain receiving node verifies the validity of the service data, and calculates the overall performance evaluation value according to the block chain link point information and the service data after the verification is passed;
and dynamically selecting a corresponding consensus mechanism from multiple consensus mechanisms by the block chain receiving node according to the calculated overall performance evaluation value.
2. The method of claim 1, wherein verifying the validity of service data comprises: searching other block chain sub-nodes of other storage authentication data blocks related to the storage block chain sending node according to the block chain link point identification in the service data of the block chain sending node, then sending data acquisition requests to the block chain sub-nodes, and receiving data returned by the block chain sub-nodes; and then, carrying out summary verification on the link point data of each block.
3. The adaptive multi-consensus block chain processing method of claim 1, wherein calculating the overall performance-assessment value comprises the following sub-steps:
acquiring node attributes of a receiving node of a block chain, analyzing received service data, and acquiring the node attributes of a sending node of the block chain from the service data;
respectively calculating a node safety evaluation value, a performance processing value and a resource consumption rate according to the block chain receiving node attribute and the block chain sending node attribute;
and comprehensively calculating the node safety evaluation value, the performance processing value and the resource consumption rate to obtain the overall performance evaluation value.
4. The adaptive multi-consensus blockchain processing method of claim 3, wherein computing
Figure 245503DEST_PATH_IMAGE001
Obtaining an overall performance evaluation value; wherein the content of the first and second substances,
Figure 400541DEST_PATH_IMAGE002
which represents the overall performance evaluation value of the system,
Figure 669848DEST_PATH_IMAGE003
a weight factor representing a security assessment value of the node,
Figure 48877DEST_PATH_IMAGE004
a weighting factor that represents a performance handling value,
Figure 708529DEST_PATH_IMAGE005
a weighting factor that represents the rate of consumption of the resource,Sas the node safety evaluation value, for example,Pthe values are processed for the node's performance,Xis the node resource consumption rate.
5. The adaptive multi-consensus blockchain processing method according to claim 1, wherein a performance evaluation threshold range of each consensus mechanism is preset in each blockchain node, and the corresponding consensus mechanism is searched from the performance evaluation threshold range according to the calculated overall performance evaluation value of each data transmitter, and is used as a currently optimal consensus mechanism for security authentication.
6. A self-adaptive multi-consensus block chain is characterized by comprising a plurality of block chain nodes, wherein a multi-consensus mechanism is arranged in each block chain node; the block chain link points specifically comprise a block chain receiving node and a block chain sending node;
the block chain sending node is used for organizing the service data and sending the service data to the block chain receiving node;
the block chain receiving node is used for receiving the service data sent by the block chain sending node; verifying the validity of the service data, and calculating an overall performance evaluation value according to the block link point information and the service data after the verification is passed; and the system is used for dynamically selecting a corresponding consensus mechanism from multiple consensus mechanisms according to the calculated overall performance evaluation value.
7. The adaptive multi-consensus blockchain of claim 6, wherein the blockchain receiving node comprises a service data verification module, configured to verify validity of the service data, and in particular configured to search, according to a blockchain link point identifier in the service data of the blockchain transmitting node, other blockchain child nodes storing other storage authentication data blocks associated with the blockchain transmitting node, then send data acquisition requests to the blockchain child nodes, and receive data returned by the blockchain child nodes; and then, carrying out summary verification on the link point data of each block.
8. The adaptive multi-consensus blockchain of claim 6, wherein the blockchain receiving node comprises an overall performance evaluation value calculation module, specifically configured to obtain a node attribute of the blockchain receiving node, analyze the received service data, and obtain a node attribute of the blockchain sending node from the service data; respectively calculating a node safety evaluation value, a performance processing value and a resource consumption rate according to the block chain receiving node attribute and the block chain sending node attribute; and comprehensively calculating the node safety evaluation value, the performance processing value and the resource consumption rate to obtain the overall performance evaluation value.
9. The adaptive multi-consensus blockchain of claim 8, wherein the global performance merit value calculation module is specifically configured to calculate
Figure 463995DEST_PATH_IMAGE006
Obtaining an overall performance evaluation value; wherein the content of the first and second substances,
Figure 89274DEST_PATH_IMAGE007
which represents the overall performance evaluation value of the system,
Figure 108045DEST_PATH_IMAGE008
a weight factor representing a security assessment value of the node,
Figure 317310DEST_PATH_IMAGE009
a weighting factor that represents a performance handling value,
Figure 814150DEST_PATH_IMAGE010
to representAnd (3) weighting factors of the resource consumption rate, wherein S is a node safety evaluation value, P is a node performance processing value, and X is the node resource consumption rate.
10. The adaptive multi-consensus blockchain of claim 6, wherein the blockchain receiving node comprises a consensus mechanism selection module, configured to preset a performance evaluation threshold range of each consensus mechanism in each blockchain node, search a corresponding consensus mechanism from the performance evaluation threshold range according to the calculated overall performance evaluation value of each data sender, and perform security authentication with the consensus mechanism as a currently optimal consensus mechanism.
CN202111616680.6A 2021-12-28 2021-12-28 Self-adaptive multi-consensus block chain processing method and system Active CN113992335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111616680.6A CN113992335B (en) 2021-12-28 2021-12-28 Self-adaptive multi-consensus block chain processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111616680.6A CN113992335B (en) 2021-12-28 2021-12-28 Self-adaptive multi-consensus block chain processing method and system

Publications (2)

Publication Number Publication Date
CN113992335A true CN113992335A (en) 2022-01-28
CN113992335B CN113992335B (en) 2022-03-25

Family

ID=79734663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111616680.6A Active CN113992335B (en) 2021-12-28 2021-12-28 Self-adaptive multi-consensus block chain processing method and system

Country Status (1)

Country Link
CN (1) CN113992335B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114884977A (en) * 2022-05-09 2022-08-09 深圳嘉业产业发展有限公司 Data sharing method and system based on block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107169765A (en) * 2017-05-11 2017-09-15 电子科技大学 A kind of method adjusted into Mobile state of being known together based on business degree of belief to block chain
CN107276765A (en) * 2017-07-04 2017-10-20 中国联合网络通信集团有限公司 The processing method and processing device known together in block chain
CN108647967A (en) * 2018-05-10 2018-10-12 北京京东尚科信息技术有限公司 Select the method, apparatus and common recognition node of block chain common recognition mechanism
CN109947740A (en) * 2019-01-25 2019-06-28 北京邮电大学 The performance optimization method and device of block catenary system
US20210119768A1 (en) * 2019-10-20 2021-04-22 Lendingclub Corporation Proof of dynamic quorum for blockchain consensus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107169765A (en) * 2017-05-11 2017-09-15 电子科技大学 A kind of method adjusted into Mobile state of being known together based on business degree of belief to block chain
CN107276765A (en) * 2017-07-04 2017-10-20 中国联合网络通信集团有限公司 The processing method and processing device known together in block chain
CN108647967A (en) * 2018-05-10 2018-10-12 北京京东尚科信息技术有限公司 Select the method, apparatus and common recognition node of block chain common recognition mechanism
CN109947740A (en) * 2019-01-25 2019-06-28 北京邮电大学 The performance optimization method and device of block catenary system
US20210119768A1 (en) * 2019-10-20 2021-04-22 Lendingclub Corporation Proof of dynamic quorum for blockchain consensus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114884977A (en) * 2022-05-09 2022-08-09 深圳嘉业产业发展有限公司 Data sharing method and system based on block chain

Also Published As

Publication number Publication date
CN113992335B (en) 2022-03-25

Similar Documents

Publication Publication Date Title
Bobba et al. Detecting false data injection attacks on dc state estimation
Zhu et al. Dynamic audit services for outsourced storages in clouds
Marti et al. Limited reputation sharing in P2P systems
CN107169499B (en) Risk identification method and device
Jia et al. Anti-D chain: A lightweight DDoS attack detection scheme based on heterogeneous ensemble learning in blockchain
CN112804358B (en) Method and device for transferring data in cross-link mode based on relay equipment network
CN112631550A (en) Block chain random number generation method, device, equipment and computer storage medium
CN108154048B (en) Asset information processing method and device
CN113992335B (en) Self-adaptive multi-consensus block chain processing method and system
US20190097806A1 (en) System and Methods for Resolving Data Discrepancies in a Distributed System with Blockchain Controls
CN104348624A (en) Method and device for authenticating credibility through Hash operation
US9811447B2 (en) Generating a fingerprint representing a response of an application to a simulation of a fault of an external service
Tong et al. Privacy-preserving data integrity verification for secure mobile edge storage
CN111966967A (en) Copyright storage method and system based on block chain technology and CDN
Shen et al. Enhancing collusion resilience in reputation systems
CN117633112A (en) System event processing method, device and storage medium
CN113609533A (en) Integrity auditing method for smart power grid data
CN112348371A (en) Cloud asset security risk assessment method, device, equipment and storage medium
Clark et al. Self-adaptive service level agreement monitoring in cloud environments
Wu et al. Scaling proof-of-authority protocol to improve performance and security
CN112804066A (en) Method and device for transferring message in cross-link mode based on relay equipment
CN113052509A (en) Model evaluation method, model evaluation apparatus, electronic device, and storage medium
JP7302668B2 (en) Level estimation device, level estimation method, and level estimation program
CN115481108B (en) Management method and system for same data among different departments
CN117335960B (en) Block chain-based carbon data sharing access method and device in zero trust network

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
CP03 Change of name, title or address

Address after: Unit 705-06, 7th Floor, No. 166 Huangpu Park West Road, Huangpu District, Guangzhou City, Guangdong Province, 510799

Patentee after: Guangzhou Minxing Digital Technology Co.,Ltd.

Address before: 510700 rooms 605 and 606, No. 118, banhe Road, Huangpu District, Guangzhou, Guangdong

Patentee before: Guangzhou Minhang blockchain Technology Co.,Ltd.

CP03 Change of name, title or address