A computing power network blockchain consensus method, system and storage medium

By selecting a subset of computing nodes in the computing network for verification processing, the problems of high power consumption of server nodes and low utilization of edge computing nodes are solved, efficient utilization of edge computing resources is achieved, and the reliability and security of verification are improved.

CN118802155BActive Publication Date: 2025-10-03CHINA MOBILE GROUP DESIGN INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410122827.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-29
Publication Date
2025-10-03
Estimated Expiration
2044-01-29

AI Technical Summary

Technical Problem

In the existing technology, there are problems such as high power consumption of server nodes in computing power networks and low utilization of edge computing power nodes.

Method used

By obtaining blockchain information and computing power node information, a subset of computing power nodes is selected for verification processing, a consensus result is generated and uploaded to the chain, and computing power nodes are selected using the random information of the terminal block. Normalization processing is performed based on communication delay, computing power value and location coordinates to form a subset of computing power nodes, reducing the performance occupancy of server nodes and improving the utilization rate of edge computing power nodes.

Benefits of technology

It improves the utilization rate of edge computing nodes, reduces the power consumption of server nodes, and enhances the reliability and security of verification processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802155B_ABST
    Figure CN118802155B_ABST
Patent Text Reader

Abstract

The present invention provides a computing power network blockchain consensus method, system and storage medium, relating to the field of blockchain technology. The method comprises: obtaining a set to be verified; obtaining blockchain information and computing power node information; obtaining block random information of a terminal block based on the blockchain information; selecting a computing power node subset based on the computing power node information and the block random information; sending the set to be verified to the computing power node subset for verification processing; obtaining verification results of the computing power nodes, generating a consensus result based on multiple verification results; attaching a signature to the consensus result and packaging it to generate a block to be chained, and adding the block to be chained to the blockchain. Using computing power nodes instead of server nodes to perform verification processing on the set to be verified can improve the utilization rate of edge computing power nodes and reduce the power consumption of server nodes. Using the block random information of the terminal block to select computing power nodes ensures that the selected computing power nodes are random, which is conducive to improving the reliability and security of the verification process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a computing power network blockchain consensus method, system and storage medium. Background Art

[0002] The computing network is a new type of information infrastructure that allocates computing power and flexibly schedules computing, storage, and network resources across the cloud, edge, and end based on business needs. As a new type of secure database, blockchain, due to its immutable and traceable nature, is widely used in various scenarios, including computing networks. While addressing the information security of nodes within the computing network, it also provides external blockchain support services that meet user service levels.

[0003] In the existing technology, most of the computing power requirements of the blockchain implemented by the computing power network are met through servers, which takes up a large amount of the performance of the server nodes and leads to high power consumption of the server nodes. However, since the computing power provided by edge computing nodes is relatively scattered, their call rate in the computing power network is relatively low and they are not fully utilized. Summary of the Invention

[0004] The present invention provides a computing power network blockchain consensus method, system and storage medium to solve the defects of high power consumption of server nodes and low utilization rate of edge computing power nodes in the scenario of computing power network realizing blockchain in the prior art.

[0005] The present invention provides a computing power network blockchain consensus method, comprising:

[0006] Obtaining a set to be verified, the set to be verified including multiple pieces of information to be verified;

[0007] Obtain blockchain information and computing power node information;

[0008] Obtaining random block information of the terminal block according to the blockchain information;

[0009] Selecting a computing power node subset according to the computing power node information and the block random information, where the computing power node subset includes multiple computing power nodes;

[0010] Sending the set to be verified to the subset of computing power nodes for verification processing;

[0011] Obtaining verification results of the computing power nodes, and generating a consensus result based on multiple verification results;

[0012] The consensus result is packaged with a signature to generate a block to be chained, and the block to be chained is added to the blockchain.

[0013] According to a computing power network blockchain consensus method provided by the present invention, selecting a computing power node subset based on the computing power node information and the block random information includes:

[0014] According to the computing power node information, obtain the communication delay, computing power value and location coordinates corresponding to each computing power node;

[0015] Normalizing the communication delay, the computing power value, and the location coordinates to obtain a first attribute parameter, a second attribute parameter, and a third attribute parameter;

[0016] Obtaining a first hash parameter, a second hash parameter, and a third hash parameter according to the block random information;

[0017] Calculating the cluster distance corresponding to each of the computing power nodes according to the first attribute parameter, the second attribute parameter, the third attribute parameter, the first hash parameter, the second hash parameter, and the third hash parameter;

[0018] According to the clustering distance, the corresponding computing power nodes are selected in order from the smallest to form a computing power node subset.

[0019] According to a computing power network blockchain consensus method provided by the present invention, the blockchain information includes multiple graph block sub-chains. Before obtaining the set to be verified, the method further includes:

[0020] Obtaining server group division information, where the server group division information represents the group to which the server node belongs and the graph block chain associated with the group;

[0021] According to the server group division information, confirm the same group of server nodes in the same group and the associated graph block chain;

[0022] Acquire first information to be verified from a network node, and broadcast the first information to be verified to the server nodes in the same group;

[0023] Obtaining second information to be verified broadcasted by the server node in the same group;

[0024] sorting the first information to be verified and the second information to be verified in the order of acquisition;

[0025] The obtaining of the set to be verified includes:

[0026] When the total of the first information to be verified and the second information to be verified is greater than or equal to a first preset threshold, the first information to be verified and the second information to be verified are packaged into a set to be verified, and the set to be verified is broadcasted to the server nodes in the same group;

[0027] Alternatively, the set to be verified broadcasted by the server nodes in the same group is obtained.

[0028] According to a computing power network blockchain consensus method provided by the present invention, after broadcasting the set to be verified to the same group of server nodes, the method further includes:

[0029] Acquire verification opinion information of the server node in the same group, where the verification opinion information indicates whether the server node in the same group agrees to verify the set to be verified;

[0030] According to the verification opinion information, when the number of the verification opinion information is greater than a trigger threshold, aggregating the signatures of the server nodes in the same group that agree to perform verification to form server aggregate signature information;

[0031] The trigger threshold is determined by the number of server nodes in the same group.

[0032] According to a computing power network blockchain consensus method provided by the present invention, sending the set to be verified to the computing power node subset for verification processing includes:

[0033] Sending the set to be verified to the subset of computing power nodes;

[0034] Obtain confirmation information fed back by the computing power node subset;

[0035] Generate first node aggregate signature information based on the confirmation information, where the first node aggregate signature information is used to represent feature information of the set to be verified processed by each of the computing power nodes;

[0036] Send the first node aggregate signature information to the computing power node subset.

[0037] According to a computing power network blockchain consensus method provided by the present invention, between sending the first node aggregate signature information to the computing power node subset and obtaining the verification results of each computing power node, and generating a consensus result based on the multiple verification results, the method further includes:

[0038] Obtaining a verification request from the computing power node, the verification request representing the information to be verified of the computing power node as a verification target and a request for corresponding information required for verification;

[0039] According to the verification request, counting the number of computing nodes corresponding to each piece of information to be verified in the set to be verified;

[0040] When the number of computing nodes requesting verification of the same information to be verified is greater than a second preset threshold, generating second node aggregate signature information, where the second node aggregate signature information represents the signatures of the computing nodes participating in verifying the same information to be verified;

[0041] The second node aggregate signature information and the corresponding verification information are packaged and sent to the corresponding computing power node.

[0042] According to a computing power network blockchain consensus method provided by the present invention, obtaining the verification results of the computing power nodes and generating a consensus result based on multiple verification results include:

[0043] Obtaining the verification result of the computing power node;

[0044] According to the verification results, the number of identical verification results is counted, and the verification results whose number is greater than or equal to a verification threshold are taken as consensus results, where the verification threshold is determined by the number of server nodes in the same group.

[0045] According to a computing power network blockchain consensus method provided by the present invention, the consensus result is packaged with a signature to generate a block to be chained, and the block to be chained is added to the blockchain, including:

[0046] Generate a block to be chained based on the consensus result, the server aggregate signature information, and the second node aggregate signature information;

[0047] The end block corresponding to the graph block sub-chain is used as the first parent block, and the end block of the other graph block sub-chain is used as the second parent block. The block to be chained is added to the first parent block and the second parent block.

[0048] According to a computing power network blockchain consensus method provided by the present invention, after attaching a signature to the consensus result to generate a block to be chained, and adding the block to be chained to the blockchain, the method further includes:

[0049] Recording the first on-chain quantity of the block to be on-chained;

[0050] Obtain the second on-chain quantity of the remaining groups;

[0051] When both the first on-chain quantity and the second on-chain quantity are greater than a preset on-chain value, group reorganization information is obtained, and according to the group reorganization information, the same group of server nodes and the corresponding graph block sub-chains of the same group are updated.

[0052] The present invention also provides a computing power network blockchain consensus system, including multiple server nodes and multiple computing power nodes, and the server nodes are capable of executing the above-mentioned computing power network blockchain consensus method.

[0053] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and runnable on the processor, wherein when the processor executes the program, a computing power network blockchain consensus method as described above is implemented.

[0054] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a computing power network blockchain consensus method as described in any one of the above.

[0055] The present invention provides a computing power network blockchain consensus method, system, and storage medium, which have at least the following beneficial effects: based on the block random information of the terminal block of the blockchain, combined with computing power node information, multiple computing power nodes are selected to form a computing power node subset, the computing power node subset verifies the set to be verified, and the server node generates a consensus result based on the verification result of the computing power node. The consensus result is attached with an aggregate signature, packaged and generated into a block, and uploaded to the blockchain, thereby achieving blockchain on-chain. In this way, using computing power nodes instead of server nodes to verify the set to be verified can improve the utilization rate of edge computing power nodes and reduce the power consumption of server nodes. Using the block random information of the terminal block to select computing power nodes ensures that the selected computing power nodes are random, making it difficult for malicious attackers to bribe the computing power nodes performing verification processing, which is conducive to improving the reliability and security of the verification process. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0057] Figure 1 This is one of the flow charts of a computing power network blockchain consensus method provided by the present invention;

[0058] Figure 2 This is the second flow chart of a computing power network blockchain consensus method provided by the present invention;

[0059] Figure 3 This is the third flow chart of a computing power network blockchain consensus method provided by the present invention;

[0060] Figure 4 This is the fourth flow chart of a computing power network blockchain consensus method provided by the present invention;

[0061] Figure 5 This is the fifth flow chart of a computing power network blockchain consensus method provided by the present invention;

[0062] Figure 6 This is the sixth flow chart of a computing power network blockchain consensus method provided by the present invention;

[0063] Figure 7 It is a schematic diagram of the structure of the blockchain in the present invention;

[0064] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0065] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0066] The following combination Figures 1-6 The present invention describes a computing power network blockchain consensus method, including:

[0067] S100: Obtain a set to be verified, where the set to be verified includes multiple pieces of information to be verified;

[0068] S200: Obtain blockchain information and computing power node information;

[0069] S300: Obtaining random block information of the terminal block according to the blockchain information;

[0070] S400: Selecting a computing power node subset according to the computing power node information and the block random information, where the computing power node subset includes multiple computing power nodes;

[0071] S500: Sending the set to be verified to the computing power node subset for verification processing;

[0072] S600: Obtain verification results of the computing power nodes, and generate a consensus result based on multiple verification results;

[0073] S700: Attach a signature to the consensus result and package it to generate a block to be chained, and add the block to be chained to the blockchain.

[0074] Based on the block randomness information of the blockchain's terminal block and combined with computing node information, multiple computing nodes are selected to form a computing node subset. This subset verifies the set to be verified. The server node generates a consensus result based on the verification results of the computing nodes. The consensus result is then packaged with an aggregate signature, generated into a block, and uploaded to the blockchain. This approach, using computing nodes instead of server nodes to verify the set to be verified, improves edge computing node utilization while reducing server node performance and power consumption. Using the block randomness information of the terminal block to select computing nodes ensures random selection, making it difficult for malicious attackers to bribe the computing nodes performing verification, thereby improving the reliability and security of the verification process.

[0075] The random information of the block may include the hash value in the block, etc. It is understandable that the block to be chained includes not only the consensus result and signature, but also the transaction content, hash value and other information.

[0076] refer to Figure 2 In some embodiments of the computing power network blockchain consensus method of the present invention, S400 includes:

[0077] S410: Obtaining the communication delay, computing power value, and location coordinates corresponding to each computing power node according to the computing power node information;

[0078] S420: Normalize the communication delay, the computing power value, and the location coordinates to obtain a first attribute parameter, a second attribute parameter, and a third attribute parameter;

[0079] S430: Obtain a first hash parameter, a second hash parameter, and a third hash parameter according to the block random information;

[0080] S440: Calculate the cluster distance corresponding to each of the computing power nodes according to the first attribute parameter, the second attribute parameter, the third attribute parameter, the first hash parameter, the second hash parameter, and the third hash parameter;

[0081] S450: According to the clustering distance, select the corresponding computing power nodes in order from the smallest to form a computing power node subset.

[0082] In the process of randomly selecting computing power nodes to form a computing power node subset, the communication delay, computing power value and location coordinates of the computing power nodes are taken into consideration, and the clustering distance corresponding to each computing power node is calculated through a clustering algorithm. Based on the clustering distance, computing power nodes with low overall cost and good performance can be selected, which is conducive to improving the overall performance of the computing power node subset.

[0083] The computing power node information includes identification information of each computing power node, as well as attribute information such as communication delay, computing power value, location coordinates, power consumption, and availability level. In some embodiments of the present invention, the first attribute parameter, the second attribute parameter, and the third attribute parameter may be obtained by performing normalization processing based on three of the attribute information such as communication delay, computing power value, location coordinates, power consumption, and availability level.

[0084] In some embodiments of the present invention, the numerical ranges of the normalized communication delay, computing power value, and location coordinates are the same as the numerical ranges of the first hash parameter, the second hash parameter, and the third hash parameter.

[0085] The communication delay, computing power value and location coordinates are normalized so that the communication delay, computing power value and location coordinates are converted into parameters within the same range, for example, all within the range of 0 to 255, forming the first attribute parameter, the second attribute parameter and the third attribute parameter, which is conducive to eliminating the differences in the numerical ranges of the parameters and facilitates the subsequent calculation of the clustering distance.

[0086] According to the block random information, the first hash parameter, the second hash parameter and the third hash parameter are obtained. Specifically, the last three bytes H1, H2, and H3 of the hash value in the block are converted from hexadecimal to values ​​h1, h2, and h3 in the range of 0 to 255.

[0087] In some embodiments of the present invention, the cluster distance is calculated by the following formula:

[0088]

[0089] Among them, D is the clustering distance; a is the first attribute parameter; b is the second attribute parameter; c is the third attribute parameter; h1 is the first hash parameter; h2 is the second hash parameter; h3 is the third hash parameter.

[0090] refer to Figure 7 In some embodiments of the present invention, the blockchain is a directed acyclic graph blockchain. Specifically, the blockchain includes multiple graph block subchains, where blocks in one graph block subchain are linked to blocks in another graph block subchain. This allows multiple graph block subchains to independently upload blocks to the blockchain, achieving a parallel upload effect and improving blockchain upload efficiency. Furthermore, the interconnectedness between blocks in each graph block subchain makes it more difficult to modify historical blocks, thereby enhancing blockchain security.

[0091] refer to Figure 3 In some embodiments of the computing power network blockchain consensus method of the present invention, the blockchain information includes multiple graph block sub-chains, and before S100, the method further includes:

[0092] S010: Obtain server group division information, where the server group division information represents the group to which the server node belongs and the graph block chain associated with the group;

[0093] S020: confirming the same group of server nodes in the same group and the associated graph block chain according to the server group division information;

[0094] S030: Acquire first information to be verified from the network node, and broadcast the first information to be verified to the server nodes in the same group;

[0095] S040: Obtain the second to-be-verified information broadcasted by the server node in the same group;

[0096] S050: sorting the first information to be verified and the second information to be verified in the order of acquisition;

[0097] The S100 includes:

[0098] S110: When the total of the first information to be verified and the second information to be verified is greater than or equal to a first preset threshold, the first information to be verified and the second information to be verified are packaged into a set to be verified, and the set to be verified is broadcasted to the server nodes in the same group;

[0099] Alternatively, S120: obtaining the set to be verified broadcasted by the server nodes in the same group.

[0100] Server nodes obtain server group division information, learning the group they belong to and the same group of server nodes within the same group. Each group corresponds to an associated graph block sub-chain. When a server node uploads a block to be uploaded, it adds it to the end of the corresponding graph block sub-chain and simultaneously associates it with a block from another graph block sub-chain. In other words, when a group is uploaded, it is necessarily added to the end of the corresponding graph block sub-chain. In addition, the associated block can be a block from any other graph block sub-chain. In this way, by dividing the group into different groups, it can adapt to the directed acyclic graph blockchain structure, facilitate parallel uploads, improve upload efficiency, and enhance the security of the blockchain.

[0101] Server nodes within the same group obtain information to be verified from different network nodes (which can be computing nodes or nodes in other networks) and share it through broadcast. The information to be verified is sorted and stored in the order in which it was obtained to facilitate subsequent processing. When the stored information to be verified is greater than or equal to a first preset threshold, the information to be verified is packaged into a verification set to facilitate unified verification processing, prevent the amount of information to be verified from being too small, and help improve verification efficiency.

[0102] The first information to be verified is obtained directly from the network node, while the second information to be verified is obtained from the same group of server nodes. For different server nodes, the first and second information to be verified are relative. In essence, both are pieces of information to be verified, but they are simply used to distinguish and describe their sources. It should be understood that the number of groups is the same as the number of graph block chains in the blockchain, and there is a one-to-one correspondence between groups and graph block chains.

[0103] In some embodiments of the present invention, the acquisition of server group division information may include: each server node generates a public key and a private key using a preset algorithm, the computing power node broadcasts the public key and obtains the public keys broadcast by other computing power nodes, uses its own private key to pair with the public key, and when the pairing is successful, it becomes the same group, thereby achieving group division, and agreeing on the corresponding associated graph block chain after the group division, thereby forming the server group division information. In some embodiments of the present invention, when the number of server nodes in a group is greater than an upper threshold or less than a lower threshold, the server nodes are re-generated using a preset algorithm for public and private keys to re-group until the number of server nodes in each group meets the requirements, ensuring that the number of server nodes in each group is approximately the same.

[0104] In a group, a server node can be selected through voting or election as an aggregation node. The server nodes in the group then upload information to the aggregation node for statistical processing, facilitating consensus and on-chain upload. The aggregation node can be reselected at preset intervals to enhance security. Within a group, each server node can collectively select multiple computing nodes to form a computing node subset. The server nodes share this list of computing node subsets, meaning the computing node subset corresponds to the group. Alternatively, each server node can individually select multiple computing nodes to form a computing node subset, meaning the computing node subset corresponds to the server node. The following focuses on the implementation of the mapping of computing node subsets to groups.

[0105] refer to Figure 4 In some embodiments of the computing power network blockchain consensus method of the present invention, after S110, the method further includes:

[0106] S111: Acquire verification opinion information of the server node in the same group, where the verification opinion information indicates whether the server node in the same group agrees to verify the set to be verified;

[0107] S112: According to the verification opinion information, when the number of the verification opinion information is greater than a trigger threshold, aggregating the signatures of the same group of server nodes that agree to perform verification to form server aggregate signature information;

[0108] The trigger threshold is determined by the number of server nodes in the same group.

[0109] After the set to be verified is formed, it is broadcast within the group, prompting the server nodes in the group to obtain the set to be verified and, based on their own circumstances, determine whether to agree to verify the set. They then generate and upload verification opinion information, which includes their own signature information. The aggregation node obtains verification opinion information from the server nodes in the same group. When the number of obtained opinions exceeds the trigger threshold, it confirms the server nodes that agree to verify the set to be verified and aggregates the signatures of the server nodes in the same group to form the server aggregate signature information. This information is then used to sign the block to be uploaded to the chain for easy traceability.

[0110] The trigger threshold is determined by the number of server nodes in the group, and can be calculated using the following formula:

[0111] T=S sum ×K

[0112] Where T is the trigger threshold; S sum is the number of server nodes in the group; K is the adjustment coefficient, K increases with S sum By adjusting the coefficient K, S sum When it is small, T will not be too small, thus preventing the false information provided by malicious server nodes from being regarded as legitimate; A sum When T is large, it will not be too large, thus avoiding the waste of new energy by accepting too much legitimate information from normal server nodes. In this way, determining the trigger threshold based on the number of server nodes in the group is conducive to balancing security and performance.

[0113] refer to Figure 5 In some embodiments of the computing power network blockchain consensus method of the present invention, S500 includes:

[0114] S510: Sending the set to be verified to the computing power node subset;

[0115] S520: Obtain confirmation information fed back by the computing power node subset;

[0116] S530: Generate first node aggregate signature information according to the confirmation information, where the first node aggregate signature information is used to represent feature information of the set to be verified processed by each of the computing power nodes;

[0117] S540: Send the first node aggregate signature information to the computing power node subset.

[0118] The server node sends the set to be verified to each computing node in the computing node subset. The computing node generates confirmation information based on the obtained set to be verified and feedbacks it. The confirmation information corresponds to the content of the set to be verified and includes the computing node's own signature. Based on the feedback confirmation information, the server node generates first-node aggregate signature information and sends it to the computing node. Based on the first-node aggregate signature information, the computing node can determine whether the set to be verified it is processing is the same as the set to be verified processed by other computing nodes. This ensures that each computing node processes the same set to be verified, prevents malicious server nodes from providing computing nodes with false content to be verified, and helps improve the reliability and security of verification.

[0119] Since the vast majority of computing power nodes obtain normal sets to be verified, only a few computing power nodes obtain false content to be verified. Based on the first node aggregated signature information, the characteristic information of the sets to be verified processed by each of the computing power nodes is obtained, of which the vast majority of the characteristic information is the same, that is, the content of the sets to be verified processed is the same. Based on this, the computing power node can determine whether the sets to be verified processed by itself are the same as those processed by other computing power nodes. The first node aggregated signature information can also be understood as the computing power node's agreement on the content of the verification set. Processing the same set to be verified is considered as agreement, otherwise it is considered as disagreement. Through the first node aggregated signature information, the computing power node can learn about the situation of other computing power nodes without having to interact and communicate with all other computing power nodes in the computing power node subset, which is conducive to reducing communication costs and improving verification efficiency.

[0120] refer to Figure 5 In some embodiments of the computing power network blockchain consensus method of the present invention, between S540 and S600, the following steps are further included:

[0121] S550: Obtain a verification request from the computing power node, where the verification request represents the information to be verified of the computing power node as a verification target and a request for information required for corresponding verification;

[0122] S560: Counting the number of computing nodes corresponding to each piece of information to be verified in the set to be verified according to the verification request;

[0123] S570: When the number of computing nodes requesting to verify the same information to be verified is greater than a second preset threshold, generating second node aggregate signature information, where the second node aggregate signature information represents the signatures of the computing nodes participating in verifying the same information to be verified;

[0124] S580: Package the second node aggregate signature information and the corresponding verification information and send them to the corresponding computing power node.

[0125] After determining that each computing node is processing the same set of pending verification, the computing node processes the set based on its own operational status. It may handle other priorities during busy periods and process the set during idle periods. During idle periods, the computing node sends a verification request to the server node for the information in the set of pending verification based on the verification progress. This request obtains the relevant information required for verification processing, such as transaction records, the identities of the two parties to the transaction, and the transaction content.

[0126] The server node obtains the verification request, which always includes the signature of the computing power node itself. When the number of computing power nodes corresponding to a certain piece of information to be verified is greater than the second preset threshold, the signatures of all corresponding computing power nodes are aggregated to generate second node aggregate signature information. The second node aggregate signature information and the corresponding information required for verification are sent to the corresponding computing power node, so that the computing power node verifies the corresponding information to be verified and generates a verification result.

[0127] The computing power node can request one or more pieces of information to be verified, and can confirm the corresponding information based on the second node's aggregated signature information. The server node can obtain the computing power nodes that participated in verifying the information based on the second node's aggregated signature information, and can use this information to trace back.

[0128] refer to Figure 5 In some embodiments of the computing power network blockchain consensus method of the present invention, S600 includes:

[0129] S610: Obtain the verification result of the computing power node;

[0130] S620: Count the number of identical verification results according to the verification results, and take the verification results whose number is greater than or equal to a verification threshold as a consensus result, where the verification threshold is determined by the number of server nodes in the same group.

[0131] The server node obtains the verification results of the computing power node, counts the number of identical verification results, such as the number of verifications that are legal and the number of verifications that are illegal, and takes the verification results whose number exceeds the verification threshold as the consensus result, so as to ensure the accuracy of the consensus result.

[0132] The server node in the group may forward the obtained verification results to the aggregation node for statistics, and the server node acting as the aggregation node executes the above steps of obtaining the consensus result.

[0133] refer to Figure 5 In some embodiments of the computing power network blockchain consensus method of the present invention, S700 includes:

[0134] S710: Generate a block to be chained according to the consensus result, the server aggregate signature information, and the second node aggregate signature information;

[0135] S720: Using the end block corresponding to the graph block sub-chain as the first parent block, using the end block of another graph block sub-chain as the second parent block, and adding the block to be chained to the end of the first parent block and the second parent block.

[0136] The block to be chained includes the consensus result, server aggregate signature information, and second-node aggregate signature information, making it easier to trace the server nodes and computing power nodes associated with the verification process. When the server node chains the block to be chained, it uses the end block of the graph block sub-chain corresponding to the group as the first parent block, and the end group blocks of other graph block sub-chains as the second parent block. This adapts to the structure of the directed acyclic graph blockchain, facilitates the implementation of parallel chains, and improves the security of the blockchain.

[0137] The server aggregate signature information, the first node aggregate signature information, and the second node aggregate signature information can confirm the number of relevant nodes that agree on a certain information without exchanging the signature information of all relevant nodes, which is conducive to improving efficiency and reducing storage burden.

[0138] refer to Figure 6 In some embodiments of the computing power network blockchain consensus method of the present invention, after performing S700, the method further includes:

[0139] S810: Recording the first on-chain quantity of the block to be on-chained;

[0140] S820: Obtain the second on-chain quantity of the remaining groups;

[0141] S830: When both the first on-chain quantity and the second on-chain quantity are greater than a preset on-chain value, group reorganization information is obtained, and according to the group reorganization information, the same group of server nodes and the corresponding graph block sub-chains of the same group are updated.

[0142] After the number of blocks on the chain in each group reaches the preset on-chain value, they are re-grouped so that the server nodes in each group change dynamically, making it more difficult to attack maliciously and helping to improve security and reliability.

[0143] In some embodiments of the present invention, the acquisition of group reorganization information may include: each server node generates a public key and a private key using a preset algorithm, the computing power node broadcasts the public key and obtains the public keys broadcast by other computing power nodes, uses its own private key to pair with the public key, and when the pairing is successful, it becomes the same group, thereby achieving group division. When the number of server nodes in a group is greater than an upper threshold or less than a lower threshold, the server node is instructed to regenerate the public key and private key using a preset algorithm to regroup until the number of server nodes in each group meets the requirements, ensuring that the number of server nodes in each group is balanced. After the group is divided, the corresponding associated graph block chain is agreed upon to form group reorganization information.

[0144] The computing power network blockchain consensus system provided by the present invention is described below. The computing power network blockchain consensus system described below and the computing power network blockchain consensus method described above can be referenced to each other.

[0145] The computing power network blockchain consensus system includes multiple server nodes and multiple computing power nodes, and the server nodes are capable of executing the above-mentioned computing power network blockchain consensus method.

[0146] The server node includes a blockchain information management module, a communication module, an identity authentication and signature processing module, and a node management module. The computing power node includes a communication module, an identity module, a consensus module, and an information verification module.

[0147] The blockchain information management module stores blockchain-related information, including verified transactions, information about the computing network nodes involved in the verification process and their aggregate signatures, a list of server groups participating in the consensus process and their corresponding aggregate signatures, the hashes of the parent blocks of the selected block chain and other parent blocks, and the hash of the block itself. Transaction details include the payer, recipient, transaction amount, transaction hash, and generated block information. Blockchain information storage is implemented using a key-value database to reduce storage consumption. Historical blocks are serialized, using the block hash as the storage key and the serialized value as the storage value. Blocks are searched using the storage key when called.

[0148] The server node's communication module is used to collect and forward various messages within and between groups, including but not limited to information related to computing network node selection, consensus process, and group status. The communication module can use multiple transmission modes, including full-node broadcast within and between groups, tree broadcast, and gossip broadcast. Considering the system's scalability, when the number of server nodes in a group is small, it automatically switches to simple broadcast; otherwise, it automatically switches to gossip broadcast. Tree broadcast is only used in extreme cases, such as when the number of servers in a group is too large.

[0149] The communication module of the computing power node is used to communicate with the server node, etc.

[0150] The identity authentication and signature processing module stores the server node's own public and private key information, as well as the public key information of other server nodes. This module is used to sign outgoing messages and verify the reliability of the signature source. The identity authentication and signature processing module includes an aggregate signature module, which is used to aggregate the signatures of multiple verification messages. This reduces communication costs while ensuring that sufficient computing power nodes are available to verify the messages and support the smooth execution of the verification consensus process.

[0151] The identity module in the computing power node is similar to the identity authentication and signature processing module, but it does not have the function of aggregate signature, but only the function of verifying aggregate signature.

[0152] The node selection and management module is used to select a subset of computing power nodes based on the computing power node information and the block random information.

[0153] The consensus module of the computing power node is used to perform consensus verification on the verification set and generate verification results.

[0154] The information verification module is used to cooperate with the consensus module to help the computing power node request the required verification information from the server node of the corresponding group, such as partial block and account information, and use this to determine the legitimacy of the information to be verified.

[0155] Figure 8 An example of a physical structure diagram of an electronic device is shown below. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other via the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the above-mentioned computing power network blockchain consensus method.

[0156] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0157] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute a computing power network blockchain consensus method provided by the above methods.

[0158] In the description of the present invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of such features. In the description of the present invention, "plurality" means at least two, for example, two, three, etc., unless otherwise specifically defined.

[0159] In the description of this specification, the reference terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" mean that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine different embodiments or examples described in this specification and features of different embodiments or examples without contradiction.

[0160] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A consensus method for computing power network blockchain, characterized by: include: Obtaining a set to be verified, the set to be verified including multiple pieces of information to be verified; Obtain blockchain information and computing power node information; Obtaining random block information of the terminal block according to the blockchain information; Selecting a computing power node subset according to the computing power node information and the block random information, where the computing power node subset includes multiple computing power nodes; Sending the set to be verified to the subset of computing power nodes for verification processing; Obtaining verification results of the computing power nodes, and generating a consensus result based on multiple verification results; The consensus result is packaged with a signature to generate a block to be chained, and the block to be chained is added to the blockchain.

2. A computing power network blockchain consensus method according to claim 1, characterized in that: The selecting a subset of computing power nodes according to the computing power node information and the block random information includes: According to the computing power node information, obtain the communication delay, computing power value and location coordinates corresponding to each computing power node; Normalizing the communication delay, the computing power value, and the location coordinates to obtain a first attribute parameter, a second attribute parameter, and a third attribute parameter; Obtaining a first hash parameter, a second hash parameter, and a third hash parameter according to the block random information; Calculating the cluster distance corresponding to each of the computing power nodes according to the first attribute parameter, the second attribute parameter, the third attribute parameter, the first hash parameter, the second hash parameter, and the third hash parameter; According to the clustering distance, the corresponding computing power nodes are selected in order from the smallest to form a computing power node subset.

3. A computing power network blockchain consensus method according to claim 1, characterized in that: The blockchain information includes multiple graph block sub-chains. Before obtaining the set to be verified, the following is also included: Obtaining server group division information, where the server group division information represents the group to which the server node belongs and the graph block chain associated with the group; According to the server group division information, confirm the same group of server nodes in the same group and the associated graph block chain; Acquire first information to be verified from a network node, and broadcast the first information to be verified to the server nodes in the same group; Obtaining second information to be verified broadcasted by the server node in the same group; sorting the first information to be verified and the second information to be verified in the order of acquisition; The obtaining of the set to be verified includes: When the total of the first information to be verified and the second information to be verified is greater than or equal to a first preset threshold, the first information to be verified and the second information to be verified are packaged into a set to be verified, and the set to be verified is broadcasted to the server nodes in the same group; Alternatively, the set to be verified broadcasted by the server nodes in the same group is obtained.

4. A computing power network blockchain consensus method according to claim 3, characterized in that: After broadcasting the set to be verified to the same group of server nodes, the method further includes: Acquire verification opinion information of the server node in the same group, where the verification opinion information indicates whether the server node in the same group agrees to verify the set to be verified; According to the verification opinion information, when the number of the verification opinion information is greater than a trigger threshold, aggregating the signatures of the server nodes in the same group that agree to perform verification to form server aggregate signature information; The trigger threshold is determined by the number of server nodes in the same group.

5. A computing power network blockchain consensus method according to claim 4, characterized in that: The sending the set to be verified to the subset of computing power nodes for verification processing includes: Sending the set to be verified to the subset of computing power nodes; Obtain confirmation information fed back by the computing power node subset; Generate first node aggregate signature information based on the confirmation information, where the first node aggregate signature information is used to represent feature information of the set to be verified processed by each of the computing power nodes; Send the first node aggregate signature information to the computing power node subset.

6. A computing power network blockchain consensus method according to claim 5, characterized in that: Between sending the first node aggregate signature information to the computing power node subset and obtaining the verification results of each computing power node, and generating a consensus result based on the multiple verification results, the method further includes: Obtaining a verification request from the computing power node, the verification request representing the information to be verified of the computing power node as a verification target and a request for corresponding information required for verification; According to the verification request, counting the number of computing nodes corresponding to each piece of information to be verified in the set to be verified; When the number of computing nodes requesting verification of the same information to be verified is greater than a second preset threshold, generating second node aggregate signature information, where the second node aggregate signature information represents the signatures of the computing nodes participating in verifying the same information to be verified; The second node aggregate signature information and the corresponding verification information are packaged and sent to the corresponding computing power node.

7. A computing power network blockchain consensus method according to claim 6, characterized in that: The obtaining of the verification results of the computing power nodes and generating a consensus result based on a plurality of the verification results includes: Obtaining the verification result of the computing power node; According to the verification results, the number of identical verification results is counted, and the verification results whose number is greater than or equal to a verification threshold are taken as consensus results, where the verification threshold is determined by the number of server nodes in the same group.

8. A computing power network blockchain consensus method according to claim 6, characterized in that: The step of attaching a signature to the consensus result to generate a block to be chained, and adding the block to be chained to the blockchain includes: Generate a block to be chained based on the consensus result, the server aggregate signature information, and the second node aggregate signature information; The end block corresponding to the graph block sub-chain is used as the first parent block, and the end block of the other graph block sub-chain is used as the second parent block. The block to be chained is added to the first parent block and the second parent block.

9. A computing power network blockchain consensus method according to claim 3, characterized in that: After the consensus result is packaged with a signature to generate a block to be chained, and the block to be chained is added to the blockchain, the following steps are also included: Recording the first on-chain quantity of the block to be on-chained; Get the second chain quantity of the remaining groups; When both the first on-chain quantity and the second on-chain quantity are greater than a preset on-chain value, group reorganization information is obtained, and according to the group reorganization information, the same group of server nodes and the corresponding graph block sub-chains of the same group are updated.

10. The computing power network blockchain consensus system is characterized by: It includes multiple server nodes and multiple computing power nodes, and the server nodes are capable of executing a computing power network blockchain consensus method as described in any one of claims 1 to 9.

11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, a computing power network blockchain consensus method as described in any one of claims 1 to 9 is implemented.

12. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, a computing power network blockchain consensus method as described in any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Task processing method and device and storage medium

    CN114327827A

  • Block chain information management method, device and equipment and readable storage medium

    CN117235807A