Blockchain Consensus Method, Device, Mobile Communication System and Readable Storage Medium
The blockchain consensus method addresses the limitations of existing mechanisms by determining block nodes based on terminal connection proofs, enabling deep integration with mobile communication systems and supporting various business scenarios.
Patent Information
- Application Number
- CN202211185647.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-27
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2042-09-27
AI Technical Summary
The existing blockchain consensus mechanism cannot be directly used in mobile communication networks, which leads to difficulty in deep integration between blockchain and mobile communications, and the existing mechanism has certain limitations.
By obtaining the accumulated value of the terminal connection number of each consensus blockchain node, the block node is flexibly determined, and based on this node, multiple consensus blockchain nodes reach consensus, including sending and receiving consensus messages for verification, until a consensus on the new block is reached.
It realizes the deep integration of blockchain and mobile communications, conforms to the flexible and varied characteristics of mobile communication networks, and automatically generates incentive mechanisms to support a variety of business scenarios.
Smart Images

Figure CN115802338B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular, to a blockchain consensus method, apparatus, mobile communication system, and readable storage medium. Background Art
[0002] Currently, the research on the sixth-generation mobile communication technology (6G) for 2030 and beyond has been launched worldwide. The evolution from the fifth-generation mobile communication technology (5G) to 6G wireless networks will show trends such as diversification, heterogeneity, marginalization, collaboration, and openness. The trust issue in mobile communication has become increasingly prominent. Blockchain can establish multi-party collaborative trust in an environment lacking trust, and has characteristics such as being distributed, collectively maintained, publicly transparent, tamper-proof, and intelligent execution, providing a feasible technical approach for establishing a transformative mobile communication trust system.
[0003] In a mobile communication system, the existing consensus mechanisms in blockchain technology cannot be directly applied to a mobile communication network, and these existing consensus mechanisms have certain limitations, which easily lead to the inability of blockchain to be deeply integrated with mobile communication. Among them, the existing consensus mechanisms can include the Proof of Work (PoW) mechanism, the Proof of Stake (PoS) mechanism, and the Practical Byzantine Fault Tolerance (PBFT) mechanism, etc. Summary of the Invention
[0004] The present invention provides a blockchain consensus method, apparatus, mobile communication system, and readable storage medium, which are used to solve the defect that the existing consensus mechanisms cannot be directly applied to a mobile communication network, and these existing consensus mechanisms have certain limitations, which easily lead to the inability of blockchain to be deeply integrated with mobile communication. During the process of the entire blockchain consensus for a new block, the terminal device is used as a participating entity, and the block-producing node can be flexibly determined. Then, based on this block-producing node, multiple consensus blockchain nodes can reach a consensus on the new block, so that blockchain can be effectively and deeply integrated with mobile communication.
[0005] The present invention provides a blockchain consensus method, which is applied to multiple consensus blockchain nodes participating in consensus in a mobile communication system. The method includes:
[0006] The first consensus blockchain node obtains the cumulative value of the terminal connection quantity proofs respectively possessed by each consensus blockchain node. The first consensus blockchain node is any one of the multiple consensus blockchain nodes, and the cumulative value of the terminal connection quantity proof is obtained by accumulating the signature messages in the historical blocks of the consensus blockchain node.
[0007] When, based on the cumulative value of the terminal connection quantity proof, it is determined that the first consensus blockchain node is the block-producing node, a consensus message is sent to the other consensus blockchain nodes among the multiple consensus blockchain nodes except the first consensus blockchain node, and wait to receive the verification result obtained by the other consensus blockchain nodes verifying the new block based on the consensus message. The consensus message includes the new block generated by the block-producing node.
[0008] When, based on the cumulative value of the terminal connection quantity proof, it is determined that the first consensus blockchain node is not the block-producing node, receive the consensus message sent by the determined block-producing node, and verify the new block based on the consensus message to obtain a verification result; send the verification result to the other consensus blockchain nodes.
[0009] When it is indicated by the verification result of the consensus blockchain node that the verification is successful, it is determined that the blockchain reaches a consensus on the new block.
[0010] According to a blockchain consensus method provided by the present invention, at the current block height, the consensus blockchain node is determined by any blockchain node in the mobile communication system when it is determined that there is a signature message, and the signature message corresponds to the terminal device connected to the any blockchain node.
[0011] According to a blockchain consensus method provided by the present invention, determining that the first consensus blockchain node is the block-producing node according to the cumulative value of the terminal connection quantity proof includes: comparing the cumulative value of the first terminal connection quantity proof corresponding to the first consensus blockchain node with the cumulative values of the other terminal connection quantity proofs corresponding to the other consensus blockchain nodes; when the cumulative value of the first terminal connection quantity proof is greater than the cumulative values of the other terminal connection quantity proofs, determining that the first consensus blockchain node is the block-producing node.
[0012] According to a blockchain consensus method provided by the present invention, determining that the first consensus blockchain node is not the block-producing node according to the cumulative value of the terminal connection quantity proof includes: when the cumulative value of the first terminal connection quantity proof is less than the cumulative values of the other terminal connection quantity proofs, determining that the first consensus blockchain node is not the block-producing node.
[0013] A blockchain consensus method provided by the present invention, which determines the first consensus blockchain node as the block-producing node according to the cumulative value of the terminal connection quantity proofs, includes: when it is determined that there is a proof cumulative value in the cumulative values of the other terminal connection quantity proofs that is the same as the cumulative value of the first terminal connection quantity proof, determining the consensus blockchain node corresponding to the same proof cumulative value as the second consensus blockchain node; obtaining the on-chain time of the first public key of the terminal device in the first consensus blockchain node and the on-chain time of the second public key of the terminal device in the second consensus blockchain node; when the on-chain time of the first public key is earlier than the on-chain time of the second public key, determining the first consensus blockchain node as the block-producing node.
[0014] A blockchain consensus method provided by the present invention, which determines that the first consensus blockchain node is not the block-producing node according to the cumulative value of the terminal connection quantity proofs, includes: when the on-chain time of the first public key is later than the on-chain time of the second public key, determining that the first consensus blockchain node is not the block-producing node.
[0015] A blockchain consensus method provided by the present invention, which verifies a new block based on the consensus message to obtain a verification result, includes: verifying the new block for a preset number of rounds based on the consensus message to obtain the verification results of the preset number of rounds.
[0016] A blockchain consensus method provided by the present invention, after it is determined that the blockchain reaches a consensus on the new block, the method further includes: updating the block corresponding to the first consensus blockchain node based on the new block after reaching the consensus.
[0017] The present invention also provides a blockchain consensus device, which is applied to the first consensus blockchain node. The first consensus blockchain node is any one of the multiple consensus blockchain nodes participating in the consensus included in the mobile communication system. The blockchain consensus device includes:
[0018] An acquisition module, configured to acquire the cumulative values of the terminal connection quantity proofs respectively possessed by each consensus blockchain node. The first consensus blockchain node is any one of the multiple consensus blockchain nodes, and the cumulative value of the terminal connection quantity proof is cumulatively obtained according to the signature messages in the historical blocks of the consensus blockchain node;
[0019] A transceiver module, configured to, when a determination module determines that the first consensus blockchain node is the block-producing node according to the cumulative value of the terminal connection quantity proofs, send a consensus message to other consensus blockchain nodes except the first consensus blockchain node among the multiple consensus blockchain nodes. The consensus message includes the new block generated by the block-producing node; waiting to receive the verification results obtained by the other consensus blockchain nodes verifying the new block based on the consensus message;
[0020] The transceiver module is further configured to receive a consensus message sent by the determined block-producing node when the determination module determines that the first consensus blockchain node is not a block-producing node based on the cumulative value of the terminal connection quantity proof;
[0021] The determination module is further configured to verify the new block based on the consensus message to obtain a verification result;
[0022] The transceiver module is further configured to send the verification result to the other consensus blockchain nodes;
[0023] The determination module is further configured to determine that the blockchain reaches a consensus on the new block when the verification result of the consensus blockchain node indicates successful verification.
[0024] The present invention further provides a mobile communication system, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the blockchain consensus method as described in any one of the above is implemented.
[0025] The present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the blockchain consensus method as described in any one of the above is implemented.
[0026] The present invention further provides a computer program product, including a computer program. When the computer program is executed by a processor, the blockchain consensus method as described in any one of the above is implemented.
[0027] The blockchain consensus method, device, mobile communication system, and readable storage medium provided by the present invention obtain the cumulative value of the terminal connection quantity proofs respectively possessed by each consensus blockchain node through a first consensus blockchain node. The first consensus blockchain node is any one of the multiple consensus blockchain nodes, and the cumulative value of the terminal connection quantity proofs is obtained by accumulating signature messages in the historical blocks of the consensus blockchain node. When it is determined that the first consensus blockchain node is the block-producing node according to the cumulative value of the terminal connection quantity proofs, a consensus message is sent to other consensus blockchain nodes in the multiple consensus blockchain nodes except the first consensus blockchain node, and wait to receive the verification result obtained by the other consensus blockchain nodes verifying the new block based on the consensus message. The consensus message includes the new block generated by the block-producing node. When it is determined that the first consensus blockchain node is not the block-producing node according to the cumulative value of the terminal connection quantity proofs, receive the consensus message sent by the determined block-producing node, and verify the new block based on the consensus message to obtain a verification result; send the verification result to the other consensus blockchain nodes; when it is indicated that the verification is successful based on the verification result of the consensus blockchain node, determine that the blockchain reaches a consensus on the new block.
[0028] In the process of multiple consensus blockchain nodes participating in consensus on a new block in a mobile communication system, taking terminal devices as participating entities and using the cumulative number of terminal devices connected to each consensus blockchain node as a basis, the block-producing node can be flexibly determined, which conforms to the flexible and changeable characteristics of mobile communication network networking. Then, based on this block-producing node, multiple consensus blockchain nodes can reach a consensus on the new block, so that the blockchain can be effectively and deeply integrated with mobile communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0030] Figure 1 is a flowchart of the blockchain consensus method provided by the present invention;
[0031] Figure 2 is a structural diagram of the blockchain consensus device provided by the present invention;
[0032] Figure 3 is a structural diagram of the mobile communication system provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0033] To make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings in the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present invention without making creative efforts shall fall within the protection scope of the present invention.
[0034] It should be noted that the consensus mechanism refers to a protocol used by service nodes (abbreviation: nodes). For a given set of nodes, a series of operations are specified. Under the guarantee of a certain protocol, the nodes reach an agreement on the processing results. Among them, the protocol used by each node is also referred to as a consensus algorithm.
[0035] The existing consensus mechanisms can be applied to different scenarios and incentive methods.
[0036] However, in the above existing consensus mechanisms, the PoW mechanism is a mechanism that relies on devices to perform a large amount of mathematical calculations to select the block generation right. The problem with the PoW mechanism is that the nodes in the mobile communication network have strong heterogeneous characteristics, and it cannot be guaranteed that each participating node has sufficient computing power. Moreover, the PoW mechanism consumes a large amount of energy, so it is also considered an "unenvironmentally friendly" algorithm;
[0037] The PoS mechanism is a mechanism that relies on the number of tokens (Stake) of a node to select the block generation right. The problem with the PoS mechanism is that the application scope of the PoS mechanism is relatively limited and is only applicable to some blockchain systems with tokens. Among them, tokens refer to digital assets used for incentives in the blockchain in a narrow sense;
[0038] The PBFT mechanism is a mechanism that adopts the method of each node taking turns to generate blocks and reaches consistency through multiple rounds of voting on transactions. The problem with the PBFT mechanism is that the mobile communication system needs to pre-configure information such as the number of nodes so that the consistency algorithm can be correctly executed, and the PBFT mechanism lacks a corresponding incentive mechanism and cannot meet more flexible service scenarios.
[0039] That is to say, whether it is the PoW mechanism, the PoS mechanism, or the PBFT mechanism, there are certain limitations in the process of realizing the consensus of the blockchain on the block.
[0040] The following explanations are given for the basic technical terms involved in the embodiments of the present invention:
[0041] (1) A mobile communication system includes several terminal devices and radio access nodes, which are base stations. Among them, some radio access nodes can serve as consensus blockchain nodes; a terminal device generally connects to a nearby radio access node.
[0042] Optionally, the number of consensus blockchain nodes is multiple.
[0043] (2) A consensus blockchain node refers to a Radio Access Network (RAN), which can control a terminal device to wirelessly access the mobile communication network.
[0044] Optionally, the entity device corresponding to the RAN is mainly a base station.
[0045] (3) A terminal device can be referred to as a User Equipment (UE).
[0046] Optionally, the terminal device may include, but is not limited to, mobile terminals, computers, wearable devices, etc.
[0047] (4) A signed message refers to a specific message obtained after a terminal device signs it using a private key. The signed message is unique, so that the terminal device corresponding to the signed message is also unique.
[0048] Optionally, the signed message may include a node Identity (ID) and the public key of the terminal device, etc.
[0049] Among them, the node ID can also be referred to as a node identifier. The node identifier can be used for a blockchain node to judge the correctness of the message sent by a terminal device when receiving the message sent by the terminal device. For example: the blockchain node connected to the terminal device is X, and the terminal device sends a signed message to the blockchain node X, and the content filled in the ID of the signed message is Y. Then, the blockchain node X will reject the signed message with ID including Y.
[0050] It should be noted that the execution subject involved in the embodiments of the present invention can be a blockchain consensus device or multiple consensus blockchain nodes participating in consensus in a mobile communication system. Hereinafter, the embodiments of the present invention will be further described by taking the first consensus blockchain node as an example. The first consensus blockchain node is any one of the above-mentioned multiple consensus blockchain nodes.
[0051] As Figure 1 shown, it is a schematic flow diagram of a blockchain consensus method provided by the present invention. This method is applied to the first consensus blockchain node, and this method may include:
[0052] 101. The first consensus blockchain node obtains the cumulative value of the terminal connection quantity proofs respectively possessed by each consensus blockchain node.
[0053] Among them, the cumulative value of the terminal connection quantity proof is obtained by accumulating the signature messages in the historical blocks of the consensus blockchain node.
[0054] For the first consensus blockchain node, there are several historical blocks stored in this first consensus blockchain node. Each historical block records the signature messages of each blockchain node at the height of this historical block. According to the quantity of this signature message, this first consensus blockchain node can accurately obtain the quantity of the terminal devices connected to each blockchain node. Then, by adding up the quantities of the terminal devices connected in all historical blocks, the cumulative value of the terminal connection quantity proofs corresponding to each blockchain node can be obtained.
[0055] It should be noted that each blockchain node synchronously stores the signature messages of other blockchain nodes at each block height. Therefore, for the first consensus blockchain node, directly based on the signature messages of each consensus blockchain node stored in the historical block, the terminal devices effectively connected to each consensus blockchain node can be determined, and then the cumulative value of the corresponding terminal connection quantity proofs of each consensus blockchain node can be calculated. Each of these consensus blockchain nodes can also use the cumulative value of the terminal connection quantity proofs respectively possessed as the contribution proof for the corresponding incentive mechanism of each consensus blockchain node.
[0056] In some embodiments, at the current block height, the consensus blockchain nodes participating in the consensus are determined by any blockchain node in the mobile communication system when it is determined that there is a signature message, and the signature message corresponds to the terminal device connected to any blockchain node.
[0057] The mobile communication system includes multiple blockchain nodes, and some of these blockchain nodes can be used as the consensus blockchain nodes participating in the consensus. When any one of these multiple blockchain nodes determines whether it is a consensus blockchain node, it can first determine whether there is a signature message of the connected terminal device in this blockchain node; if it is determined that there is a signature message of the connected terminal device, then it is determined that this blockchain node is a consensus blockchain node, otherwise, it is determined that this blockchain node is not a consensus blockchain node.
[0058] It should be noted that in a mobile communication system, when a terminal device accesses a certain blockchain node, it relies on the Know Your Customer (KYC) on the Subscriber Identity Module (SIM) card, so that the access proof of the terminal device for the certain blockchain node cannot be forged, is unique and has high security. In the embodiments of the present invention, for the terminal device, the private key is recorded on the terminal device, and the public key is recorded on the blockchain accessed by the terminal device. Due to the characteristics of asymmetric encryption, the data signed by the private key of the terminal device cannot be forged, that is, the specific message obtained after the terminal device signs with the private key cannot be forged and is unique.
[0059] Optionally, after receiving the signature message sent by the terminal device, the blockchain node further includes: the blockchain node verifies the signature message of the connected terminal device to determine whether the terminal device is a terminal device effectively connected to the blockchain node.
[0060] The process of the blockchain node verifying the signature message of the connected terminal device is as follows: the blockchain node needs to match the node identifier included in the signature message with the preset node identifier corresponding to the blockchain node, and determine whether the public key included in the signature message is legally recorded on the blockchain; when the blockchain node determines that the node identifier matches the preset node identifier successfully and the public key is legally recorded on the blockchain, it determines that the terminal device corresponding to the signature message is effectively accessing the blockchain node; then, the blockchain node can broadcast the signature message to other blockchain nodes; then, the blockchain node can package the signature message into the block of the blockchain node; on the contrary, when the blockchain node determines that the node identifier does not match the preset node identifier, and / or the public key is not legally recorded on the blockchain, it does not broadcast the signature message to other blockchain nodes and does not package the signature message.
[0061] 102. When determining that the first consensus blockchain node is the block-producing node according to the cumulative value of the terminal connection quantity proof, send a consensus message to other consensus blockchain nodes except the first consensus blockchain node among the multiple consensus blockchain nodes, and wait to receive the verification results obtained by other consensus blockchain nodes based on the consensus message for verifying the new block.
[0062] Wherein, the consensus message includes the new block generated by the block-producing node.
[0063] After obtaining the cumulative values of the terminal connection quantity proofs respectively possessed by each consensus blockchain node, the first consensus blockchain node can accurately determine whether the first consensus blockchain node is a block-producing node based on the cumulative values of the terminal connection quantity proofs. If it is determined that the first consensus blockchain node is a block-producing node, then the first consensus blockchain node can generate a consensus message and send the consensus message to other consensus blockchain nodes. At this time, the first consensus blockchain node defaults to reaching a consensus on the new block. Then, after receiving the consensus message, the other consensus blockchain nodes can verify the new block based on the consensus message, obtain corresponding verification results, and send the verification results to the first consensus blockchain node. Finally, the first consensus blockchain node can wait to receive the verification results respectively sent by the other consensus blockchain nodes. In this way, the first consensus blockchain node can obtain the verification results corresponding to each consensus blockchain node participating in the consensus in the mobile communication system.
[0064] In some embodiments, the first consensus blockchain node determining that the first consensus blockchain node is a block-producing node according to the cumulative value of the terminal connection quantity proof may include: the first consensus blockchain node comparing the cumulative value of the first terminal connection quantity proof corresponding to the first consensus blockchain node with the cumulative values of the other terminal connection quantity proofs corresponding to other consensus blockchain nodes; and the first consensus blockchain node determining that the first consensus blockchain node is a block-producing node when the cumulative value of the first terminal connection quantity proof is greater than the cumulative values of the other terminal connection quantity proofs.
[0065] After obtaining the cumulative values of the terminal connection quantity proofs respectively possessed by each consensus blockchain node, the first consensus blockchain node can compare the cumulative value of the first terminal connection quantity proof corresponding to the first consensus blockchain node with the cumulative values of the other terminal connection quantity proofs corresponding to other consensus blockchain nodes. When the cumulative value of the first terminal connection quantity proof is greater than the cumulative values of the other terminal connection quantity proofs, it indicates that the cumulative value of the first terminal connection quantity proof is the largest among all the cumulative values of the terminal connection quantity proofs. At this time, the first consensus blockchain node can be used as a block-producing node.
[0066] In some embodiments, the first consensus blockchain node determines that the first consensus blockchain node is a block-producing node based on the cumulative value of the terminal connection quantity proofs, which may include: when the first consensus blockchain node determines that there is a proof cumulative value identical to the first terminal connection quantity proof cumulative value among the cumulative values of other terminal connection quantity proofs, the consensus blockchain node corresponding to the identical proof cumulative value is determined as the second consensus blockchain node; the first consensus blockchain node obtains the on-chain time of the first public key of the terminal device in the first consensus blockchain node and the on-chain time of the second public key of the terminal device in the second consensus blockchain node; when the on-chain time of the first public key is earlier than the on-chain time of the second public key, the first consensus blockchain node determines that the first consensus blockchain node is a block-producing node. When the first consensus blockchain node determines that there is a proof cumulative value identical to the first terminal connection quantity proof cumulative value among the cumulative values of other terminal connection quantity proofs, it indicates that the number of the largest terminal connection quantity proof cumulative values among all the cumulative values of terminal connection quantity proofs is more than one. At this time, the consensus blockchain node corresponding to the identical proof cumulative value can be determined as the second consensus blockchain node; then, the first consensus blockchain node can determine whether the first consensus blockchain node is a block-producing node by judging the earlier-later relationship between the on-chain time of the first public key of the terminal device in the first consensus blockchain node and the on-chain time of the second public key of the terminal device in the second consensus blockchain node: if the on-chain time of the first public key is earlier than the on-chain time of the second public key, then the first consensus blockchain node is a block-producing node; otherwise, it is not a block-producing node.
[0067] Optionally, if the on-chain time of the first public key is the same as the on-chain time of the second public key, then the first consensus blockchain node can be used as the block-producing node, or the second consensus blockchain node can be used as the block-producing node, that is, the number of the block-producing nodes is 1.
[0068] Optionally, since the first consensus blockchain node can be connected to at least one terminal device, and each terminal device corresponds to an on-chain time of a public key, in order to ensure the accuracy of determining whether the first consensus blockchain node is a block-producing node, the first consensus blockchain node can obtain the on-chain times of the public keys corresponding to the at least one terminal device respectively, and select the earliest on-chain time among all the on-chain times of the public keys; then, the earliest on-chain time is determined as the on-chain time of the first public key.
[0069] Optionally, the determination process of the on-chain time of the second public key of the terminal device in the second consensus blockchain node is similar to the determination process of the on-chain time of the first public key of the terminal device in the first consensus blockchain node described above, and will not be specifically elaborated here.
[0070] Exemplarily, assume that the cumulative value of the first terminal connection quantity proof of the first consensus blockchain node is 100, and the cumulative value of the second terminal connection quantity proof of the second consensus blockchain node is 100. The cumulative value of the first terminal connection quantity proof and the cumulative value of the second terminal connection quantity proof are the largest values among all the cumulative values of the terminal connection quantity proofs.
[0071] Then, determine that the on-chain time of the first public key of the terminal device in the first consensus blockchain node is 10:10 on February 10, 2022, and determine that the on-chain time of the second public key of the terminal device in the second consensus blockchain node is 10:15 on February 10, 2022. The on-chain time of the first public key is earlier than the on-chain time of the second public key. At this time, the first consensus blockchain node is the block-producing node.
[0072] 103. In the case where it is determined that the first consensus blockchain node is not the block-producing node according to the cumulative value of the terminal connection quantity proof, receive the consensus message sent by the determined block-producing node, and verify the new block based on the consensus message to obtain a verification result; send the verification result to other consensus blockchain nodes.
[0073] After obtaining the cumulative values of the terminal connection quantity proofs of each consensus blockchain node, the first consensus blockchain node can accurately determine whether the first consensus blockchain node is the block-producing node based on the cumulative value of the terminal connection quantity proof; if it is determined that the first consensus blockchain node is not the block-producing node, then, in the case where the determined block-producing node sends a consensus message to the first consensus blockchain node, the first consensus blockchain node can receive the consensus message and verify the new block based on the consensus message to obtain a verification result; then, the first consensus blockchain node can send the verification result to other consensus blockchain nodes, and the other consensus blockchain nodes include the above-mentioned determined block-producing node. In this way, all the consensus blockchain nodes participating in the consensus in the mobile communication system will obtain the verification result corresponding to the first consensus blockchain node.
[0074] In some embodiments, the first consensus blockchain node determines that the first consensus blockchain node is not the block-producing node according to the cumulative value of the terminal connection quantity proof, which may include: the first consensus blockchain node compares the cumulative value of the first terminal connection quantity proof corresponding to the first consensus blockchain node with the cumulative values of the other terminal connection quantity proofs corresponding to other consensus blockchain nodes; when the cumulative value of the first terminal connection quantity proof is less than the cumulative values of the other terminal connection quantity proofs, the first consensus blockchain node determines that the first consensus blockchain node is not the block-producing node.
[0075] After obtaining the cumulative values of the terminal connection quantity proofs respectively possessed by each consensus blockchain node, the first consensus blockchain node may compare the cumulative value of the first terminal connection quantity proof corresponding to the first consensus blockchain node with the cumulative values of the other terminal connection quantity proofs corresponding to other consensus blockchain nodes; when the cumulative value of the first terminal connection quantity proof is less than the cumulative value of the other terminal connection quantity proofs, it indicates that the cumulative value of the first terminal connection quantity proof is not the largest among all the cumulative values of the terminal connection quantity proofs. At this time, the first consensus blockchain node cannot be used as a block-producing node.
[0076] In some embodiments, for the first consensus blockchain node to determine, based on the cumulative value of the terminal connection quantity proof, that the first consensus blockchain node is not a block-producing node, it may include: when the first consensus blockchain node determines that there is a cumulative proof value in the cumulative values of the other terminal connection quantity proofs that is the same as the cumulative value of the first terminal connection quantity proof, the first consensus blockchain node determines the consensus blockchain node corresponding to the same cumulative proof value as the second consensus blockchain node; the first consensus blockchain node obtains the on-chain time of the first public key of the terminal device in the first consensus blockchain node and the on-chain time of the second public key of the terminal device in the second consensus blockchain node; when the on-chain time of the first public key is later than the on-chain time of the second public key, the first consensus blockchain node determines that the first consensus blockchain node is not a block-producing node.
[0077] When the first consensus blockchain node determines that there is a cumulative proof value in the cumulative values of the other terminal connection quantity proofs that is the same as the cumulative value of the first terminal connection quantity proof, it indicates that there is more than one cumulative value of the terminal connection quantity proof that is the largest among all the cumulative values of the terminal connection quantity proofs. At this time, the consensus blockchain node corresponding to the same cumulative proof value may be determined as the second consensus blockchain node; then, the first consensus blockchain node may determine whether the first consensus blockchain node is a block-producing node by judging the earlier-later relationship between the on-chain time of the first public key of the terminal device in the first consensus blockchain node and the on-chain time of the second public key of the terminal device in the second consensus blockchain node: if the on-chain time of the first public key is later than the on-chain time of the second public key, then the first consensus blockchain node is not a block-producing node.
[0078] Exemplarily, assume that the cumulative value of the first terminal connection quantity proof possessed by the first consensus blockchain node is 100, and the cumulative value of the second terminal connection quantity proof possessed by the second consensus blockchain node is 100, and the cumulative value of the first terminal connection quantity proof and the cumulative value of the second terminal connection quantity proof are the largest among all the cumulative values of the terminal connection quantity proofs;
[0079] Then, it is determined that the on-chain time of the first public key of the terminal device in the first consensus blockchain node is 10:16 on February 10, 2022, and it is determined that the on-chain time of the second public key of the terminal device in the second consensus blockchain node is 10:15 on February 10, 2022. The on-chain time of the first public key is later than that of the second public key. At this time, the first consensus blockchain node is not the block-producing node.
[0080] In some embodiments, the first consensus blockchain node verifies the new block based on the consensus message to obtain a verification result, which may include: the first consensus blockchain node verifies the new block for a preset number of rounds based on the consensus message to obtain a preset number of verification results.
[0081] Exemplarily, assuming that the preset number of rounds is 3, each consensus blockchain node uses each consensus blockchain node to respectively perform 3 rounds of verification on the consensus message to obtain 3 verification results.
[0082] In this way, it can be ensured that the verification result obtained by the first consensus blockchain node is relatively accurate.
[0083] Exemplarily, assuming that the current block height corresponding to the blockchain is N, and the height of the new block to be generated is N + 1. Between block height N and block height N + 1, the number of terminal devices accessed by each consensus blockchain node can be represented by W N+1 (x), where x represents the number of the consensus blockchain node.
[0084] When the block height is N + 1, the cumulative value of the terminal connection quantity proof corresponding to the consensus blockchain node can be represented by P N+1 (x) = P N (x) + W N+1 (x) represents, and P N (x) is the cumulative value of the terminal connection quantity proof corresponding to the consensus blockchain node when the block height is N. The following Table 1: Taking four consensus blockchain nodes A, B, C, and D as examples, illustrates the selection process of the block-producing node in the case of block height from N to N + 2.
[0085] Table 1
[0086]
[0087] As can be seen from Table 1: When the current block height is N, the cumulative value of the terminal connection quantity proof corresponding to the consensus blockchain node D is the largest. At this time, the consensus blockchain node D is the block-producing node, and the consensus blockchain nodes A, B, and C are not block-producing nodes; then, the consensus blockchain node D can package the block at height N+1. At the same time, the cumulative value of the terminal connection quantity proof corresponding to the consensus blockchain node D is cleared. In this example, the purpose of clearing is to avoid always selecting the same consensus blockchain node as the block-producing node when determining the block-producing node next time. Clearing is a simple method, and there can be other methods, not limited to this method; the overall goal is to make the node with a larger proof cumulative value have a greater chance of producing a block, but prevent the terminal device connection quantity corresponding to a certain consensus blockchain node from always being very large and it always being the block-producing node.
[0088] Since the number of newly connected terminal connections of the consensus blockchain node D in the data included in the (N+1)-th block is 200, when the current block height is N+1, the cumulative value of the terminal connection quantity proof corresponding to the consensus blockchain node D is 0+200 = 200; the number of newly connected terminal connections of the consensus blockchain node A is 100, so when the current block height is N+1, the cumulative value of the terminal connection quantity proof corresponding to the consensus blockchain node A is 100+100 = 200; similarly, the cumulative value of the terminal connection quantity proof corresponding to the consensus blockchain node B is 200+100 = 300, and the cumulative value of the terminal connection quantity proof corresponding to the consensus blockchain node C is 300+200 = 500.
[0089] At this time, when the current block height is N+1, the cumulative value of the terminal connection quantity proof corresponding to the consensus blockchain node C is the largest, and the consensus blockchain node C is the block-producing node, while the consensus blockchain nodes A, B, and D are not block-producing nodes; then, the consensus blockchain node C can package the block at height N+2. At the same time, the cumulative value of the terminal connection quantity proof corresponding to the consensus blockchain node C is cleared.
[0090] When the current block height is N+2, the cumulative value of the terminal connection quantity proof corresponding to the consensus blockchain node A is 200+100 = 300, the cumulative value of the terminal connection quantity proof corresponding to the consensus blockchain node B is 300+100 = 400, the cumulative value of the terminal connection quantity proof corresponding to the consensus blockchain node C is 0+300 = 300; the cumulative value of the terminal connection quantity proof corresponding to the consensus blockchain node D is 200+100 = 300.
[0091] At this time, when the current block height is N + 2, the cumulative value of the terminal connection quantity proof corresponding to the consensus blockchain node B is the largest. The consensus blockchain node B in this consensus blockchain link list is the block-producing node, and the consensus blockchain nodes A, C, and D are not block-producing nodes.
[0092] 104. When the verification result based on the consensus blockchain node indicates successful verification, it is determined that the blockchain reaches a consensus on the new block.
[0093] When the first consensus blockchain node is the block-producing node, the first consensus blockchain node defaults that the new block is correct. Also, since the first consensus blockchain node receives the verification results sent by other consensus blockchain nodes, as long as the verification result based on the majority indicates successful verification, it can be determined that the blockchain reaches a consensus on the new block.
[0094] When the first consensus blockchain node is not the block-producing node, the verification result corresponding to the first consensus blockchain node can be sent to the determined block-producing node. The determined block-producing node defaults that the new block is correct and can receive the verification results sent by other consensus blockchain nodes. Then, when the determined block-producing node determines that the verification results of the majority indicate successful verification, it can be determined that the blockchain reaches a consensus on the new block. At this time, the first consensus blockchain node can also determine that the blockchain reaches a consensus on the new block.
[0095] Optionally, when the first consensus blockchain node determines that the blockchain reaches a consensus on the new block based on the verification result of the consensus blockchain node, it may include: when the number of verification results indicating successful verification based on the consensus blockchain node by the first consensus blockchain node is greater than the quantity threshold, it is determined that the blockchain reaches a consensus on the new block.
[0096] In some embodiments, after the first consensus blockchain node determines that the blockchain reaches a consensus on the new block, the method may further include: the first consensus blockchain node updates the block corresponding to the first consensus blockchain node based on the new block after reaching the consensus.
[0097] That is to say, each consensus blockchain node in the mobile communication system can update the block corresponding to each consensus blockchain node based on the new block after reaching the consensus.
[0098] In an embodiment of the present invention, the first consensus blockchain node obtains the cumulative value of the terminal connection quantity proofs respectively possessed by each consensus blockchain node; when determining that the first consensus blockchain node is a block-producing node according to the cumulative value of the terminal connection quantity proofs, the first consensus blockchain node sends a consensus message to other consensus blockchain nodes except the first consensus blockchain node among the multiple consensus blockchain nodes, and waits to receive the verification results obtained by other consensus blockchain nodes verifying the new block based on the consensus message; when determining that the first consensus blockchain node is not a block-producing node according to the cumulative value of the terminal connection quantity proofs, the first consensus blockchain node receives the consensus message sent by the determined block-producing node, and verifies the new block based on the consensus message to obtain a verification result; the first consensus blockchain node sends the verification result to other consensus blockchain nodes; when the verification result indicates successful verification based on the verification results of the consensus blockchain nodes, it is determined that the blockchain reaches a consensus on the new block.
[0099] In the process of multiple consensus blockchain nodes participating in consensus on a new block in a mobile communication system, taking terminal devices as participating entities and using the cumulative number of terminal devices accessed in each consensus blockchain node as a basis, the block-producing node can be flexibly determined, which conforms to the flexible and changeable characteristics of the mobile communication network networking. Then, based on this block-producing node, multiple consensus blockchain nodes can reach a consensus on the new block, so that the blockchain can be effectively and deeply integrated with mobile communication.
[0100] In addition, each consensus blockchain node can use the cumulative value of the terminal connection quantity proofs as a contribution index of the blockchain, so that the blockchain automatically generates an incentive mechanism to support various business scenarios that require incentives.
[0101] Next, the blockchain consensus device provided by the present invention will be described. The blockchain consensus device described below can be correspondingly referred to the blockchain consensus method described above.
[0102] As Figure 2 shown, it is a schematic structural diagram of the blockchain consensus device provided by the present invention. The device is applied to the first consensus blockchain node, and the first consensus blockchain node is any one of the multiple consensus blockchain nodes participating in consensus included in the mobile communication system. The blockchain consensus device may include:
[0103] An obtaining module 201, configured to obtain the cumulative value of the terminal connection quantity proofs respectively possessed by each consensus blockchain node. The first consensus blockchain node is any one of the multiple consensus blockchain nodes, and the cumulative value of the terminal connection quantity proofs is obtained by accumulating the signature messages in the historical blocks of the consensus blockchain node;
[0104] The transceiver module 202 is configured to, when the determination module 203 determines, based on the cumulative value of the terminal connection quantity proofs, that the first consensus blockchain node is the block-producing node, send a consensus message to other consensus blockchain nodes in the plurality of consensus blockchain nodes except the first consensus blockchain node. The consensus message includes a new block generated by the block-producing node; and wait to receive a verification result obtained by the other consensus blockchain nodes verifying the new block based on the consensus message.
[0105] The transceiver module 202 is further configured to, when the determination module 203 determines, based on the cumulative value of the terminal connection quantity proofs, that the first consensus blockchain node is not the block-producing node, receive a consensus message sent by the determined block-producing node.
[0106] The determination module 203 is further configured to verify the new block based on the consensus message to obtain a verification result.
[0107] The transceiver module 202 is further configured to send the verification result to the other consensus blockchain nodes.
[0108] The determination module 203 is further configured to, when the verification result of the consensus blockchain node indicates successful verification, determine that the blockchain reaches a consensus on the new block.
[0109] Optionally, at the current block height, the consensus blockchain node is determined by any blockchain node in the mobile communication system when it determines that there is a signature message, and the signature message corresponds to the terminal device connected to the any blockchain node.
[0110] Optionally, the determination module 203 is specifically configured to compare the cumulative value of the first terminal connection quantity proofs corresponding to the first consensus blockchain node with the cumulative value of the other terminal connection quantity proofs corresponding to the other consensus blockchain nodes; and when the cumulative value of the first terminal connection quantity proofs is greater than the cumulative value of the other terminal connection quantity proofs, determine that the first consensus blockchain node is the block-producing node.
[0111] Optionally, the determination module 203 is specifically configured to, when the cumulative value of the first terminal connection quantity proofs is less than the cumulative value of the other terminal connection quantity proofs, determine that the first consensus blockchain node is not the block-producing node.
[0112] Optionally, the determination module 203 is specifically configured to, when it determines that there is a cumulative value of proofs in the cumulative value of the other terminal connection quantity proofs that is the same as the cumulative value of the first terminal connection quantity proofs, determine the consensus blockchain node corresponding to the same cumulative value of proofs as the second consensus blockchain node.
[0113] An obtaining module 201, specifically configured to obtain the on-chain time of the first public key of the terminal device in the first consensus blockchain node and the on-chain time of the second public key of the terminal device in the second consensus blockchain node;
[0114] A determining module 203, specifically configured to determine that the first consensus blockchain node is the block-producing node when the on-chain time of the first public key is earlier than the on-chain time of the second public key.
[0115] Optionally, the determining module 203 is specifically configured to determine that the first consensus blockchain node is not the block-producing node when the on-chain time of the first public key is later than the on-chain time of the second public key.
[0116] Optionally, the determining module 203 is specifically configured to perform verification on the new block for a preset number of rounds based on the consensus message, and obtain the verification results for the preset number of rounds.
[0117] Optionally, the determining module 203 is further configured to update the block corresponding to the first consensus blockchain node based on the new block after consensus is reached.
[0118] Figure 3As shown in the figure, it is a schematic structural diagram of a mobile communication system provided by the present invention. The mobile communication system device may include: a processor 310, a communications interface 320, a memory 330, and a communication bus 340. Among them, the processor 310, the communication interface 320, and the memory 330 complete mutual communication through the communication bus 340. The processor 310 can call the logical instructions in the memory 330 to execute a blockchain consensus method, which is applied to multiple consensus blockchain nodes participating in consensus in the mobile communication system. The method includes: the first consensus blockchain node obtains the cumulative value of the proof of terminal connection quantity respectively possessed by each consensus blockchain node. The first consensus blockchain node is any one of the multiple consensus blockchain nodes, and the cumulative value of the proof of terminal connection quantity is obtained by accumulating the signature messages in the historical blocks of the consensus blockchain node; when it is determined that the first consensus blockchain node is a block-producing node according to the cumulative value of the proof of terminal connection quantity, a consensus message is sent to other consensus blockchain nodes in the multiple consensus blockchain nodes except the first consensus blockchain node, and waits to receive the verification result obtained by the other consensus blockchain nodes verifying the new block based on the consensus message. The consensus message includes the new block generated by the block-producing node; when it is determined that the first consensus blockchain node is not a block-producing node according to the cumulative value of the proof of terminal connection quantity, the consensus message sent by the determined block-producing node is received, and the new block is verified based on the consensus message to obtain a verification result; the verification result is sent to the other consensus blockchain nodes; when it is indicated that the verification is successful based on the verification result of the consensus blockchain node, it is determined that the blockchain reaches a consensus on the new block.
[0119] In addition, when the logical instructions in the above-mentioned memory 330 are implemented in the form of software functional units and sold or used as an independent product, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or 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 causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.
[0120] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the blockchain consensus method provided by each of the above methods, which is applied to multiple consensus blockchain nodes participating in consensus in a mobile communication system. The method includes: a first consensus blockchain node obtains a cumulative value of the terminal connection quantity proofs respectively possessed by each consensus blockchain node. The first consensus blockchain node is any one of the multiple consensus blockchain nodes, and the cumulative value of the terminal connection quantity proofs is obtained by cumulatively calculating the signature messages in the historical blocks of the consensus blockchain node; when it is determined that the first consensus blockchain node is a block-producing node according to the cumulative value of the terminal connection quantity proofs, a consensus message is sent to other consensus blockchain nodes in the multiple consensus blockchain nodes except the first consensus blockchain node, and waits to receive the verification results obtained by the other consensus blockchain nodes verifying a new block based on the consensus message. The consensus message includes the new block generated by the block-producing node; when it is determined that the first consensus blockchain node is not a block-producing node according to the cumulative value of the terminal connection quantity proofs, a consensus message sent by the determined block-producing node is received, and the new block is verified based on the consensus message to obtain a verification result; the verification result is sent to the other consensus blockchain nodes; when it is indicated by the verification result of the consensus blockchain node that the verification is successful, it is determined that the blockchain reaches a consensus on the new block.
[0121] In another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the blockchain consensus method provided by the above various methods, and is applied to multiple consensus blockchain nodes participating in consensus in a mobile communication system. The method includes: a first consensus blockchain node obtains the cumulative value of the terminal connection quantity proofs respectively possessed by each consensus blockchain node. The first consensus blockchain node is any one of the multiple consensus blockchain nodes, and the cumulative value of the terminal connection quantity proofs is cumulatively obtained according to the signature messages in the historical blocks of the consensus blockchain node; when it is determined that the first consensus blockchain node is a block-producing node according to the cumulative value of the terminal connection quantity proofs, a consensus message is sent to other consensus blockchain nodes in the multiple consensus blockchain nodes except the first consensus blockchain node, and waits to receive the verification result obtained by the other consensus blockchain nodes based on the consensus message for verifying a new block. The consensus message includes the new block generated by the block-producing node; when it is determined that the first consensus blockchain node is not a block-producing node according to the cumulative value of the terminal connection quantity proofs, the consensus message sent by the determined block-producing node is received, and the new block is verified based on the consensus message to obtain a verification result; the verification result is sent to the other consensus blockchain nodes; when it is indicated that the verification is successful based on the verification result of the consensus blockchain node, it is determined that the blockchain reaches a consensus on the new block.
[0122] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative efforts.
[0123] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the essence of the above technical solution, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disc, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0124] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments or perform equivalent replacements for some of the technical features. These modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A blockchain consensus method, characterized in that, A plurality of consensus blockchain nodes participating in consensus in a mobile communication system. At the current block height, the consensus blockchain nodes are determined by any blockchain node in the mobile communication system when it is determined that there is a signature message, and the signature message corresponds to the terminal device connected to the any blockchain node. The method includes: The first consensus blockchain node obtains the cumulative value of the terminal connection quantity proofs respectively possessed by each consensus blockchain node. The first consensus blockchain node is any consensus blockchain node among the plurality of consensus blockchain nodes, and the cumulative value of the terminal connection quantity proofs is obtained by accumulating the signature messages in the historical blocks of the consensus blockchain nodes; When it is determined that the first consensus blockchain node is the block-producing node according to the cumulative value of the terminal connection quantity proofs, a consensus message is sent to the other consensus blockchain nodes except the first consensus blockchain node among the plurality of consensus blockchain nodes, and waits to receive the verification results obtained by the other consensus blockchain nodes verifying the new block based on the consensus message. The consensus message includes the new block generated by the block-producing node; When it is determined that the first consensus blockchain node is not the block-producing node according to the cumulative value of the terminal connection quantity proofs, the consensus message sent by the determined block-producing node is received, and the new block is verified based on the consensus message to obtain a verification result; the verification result is sent to the other consensus blockchain nodes; When it is indicated by the verification results of the consensus blockchain nodes that the verification is successful, it is determined that the blockchain reaches a consensus on the new block.
2. The method according to claim 1, characterized in that The determining that the first consensus blockchain node is the block-producing node according to the cumulative value of the terminal connection quantity proofs includes: Comparing the cumulative value of the first terminal connection quantity proof corresponding to the first consensus blockchain node with the cumulative values of the other terminal connection quantity proofs corresponding to the other consensus blockchain nodes; When the cumulative value of the first terminal connection quantity proof is greater than the cumulative values of the other terminal connection quantity proofs, determining that the first consensus blockchain node is the block-producing node.
3. The method according to claim 2, wherein The determining that the first consensus blockchain node is not the block-producing node according to the cumulative value of the terminal connection quantity proofs includes: When the cumulative value of the first terminal connection quantity proof is less than the cumulative values of the other terminal connection quantity proofs, determining that the first consensus blockchain node is not the block-producing node.
4. The method according to claim 2, characterized in that, The determining that the first consensus blockchain node is the block-producing node according to the cumulative value of the terminal connection quantity proofs includes: When it is determined that there is a cumulative value of the proof identical to the cumulative value of the first terminal connection quantity proof among the cumulative values of the other terminal connection quantity proofs, determining the consensus blockchain node corresponding to the identical cumulative value of the proof as the second consensus blockchain node; Obtaining the on-chain time of the first public key of the terminal device in the first consensus blockchain node and the on-chain time of the second public key of the terminal device in the second consensus blockchain node; In the case where the time when the first public key is uploaded to the chain is earlier than the time when the second public key is uploaded to the chain, determine that the first consensus blockchain node is the block-producing node.
5. The method according to claim 4, wherein The determining that the first consensus blockchain node is not the block-producing node according to the cumulative value of the terminal connection quantity proofs includes: In the case where the time when the first public key is uploaded to the chain is later than the time when the second public key is uploaded to the chain, determine that the first consensus blockchain node is not the block-producing node.
6. The method according to any one of claims 1-5, characterized in that, The verifying the new block based on the consensus message to obtain a verification result includes: Verify the new block for a preset number of rounds based on the consensus message to obtain the preset number of verification results.
7. The method according to any one of claims 1-5, characterized in that, After determining that the blockchain reaches a consensus on the new block, the method further includes: Based on the new block after reaching a consensus, update the block corresponding to the first consensus blockchain node.
8. A blockchain consensus device, characterized in that, Applied to a first consensus blockchain node, the first consensus blockchain node is any one of multiple consensus blockchain nodes participating in consensus included in a mobile communication system. At the current block height, the consensus blockchain node is determined by any blockchain node in the mobile communication system when it determines that there is a signature message, and the signature message corresponds to the terminal device connected to the any blockchain node. The blockchain consensus device includes: An obtaining module, configured to obtain the cumulative value of the terminal connection quantity proofs respectively possessed by each consensus blockchain node. The first consensus blockchain node is any one of the multiple consensus blockchain nodes, and the cumulative value of the terminal connection quantity proofs is obtained by accumulating the signature messages in the historical blocks of the consensus blockchain node; A transceiver module, configured to, when the determining module determines that the first consensus blockchain node is the block-producing node according to the cumulative value of the terminal connection quantity proofs, send a consensus message to other consensus blockchain nodes except the first consensus blockchain node among the multiple consensus blockchain nodes. The consensus message includes a new block generated by the block-producing node; wait to receive the verification result obtained by the other consensus blockchain nodes verifying the new block based on the consensus message; The transceiver module is further configured to, when the determining module determines that the first consensus blockchain node is not the block-producing node according to the cumulative value of the terminal connection quantity proofs, receive the consensus message sent by the determined block-producing node; The determining module is further configured to verify the new block based on the consensus message to obtain a verification result; The transceiver module is further configured to send the verification result to the other consensus blockchain nodes; The determining module is further configured to determine that the blockchain reaches a consensus on the new block when the verification result of the consensus blockchain node indicates successful verification.
9. A mobile communication system, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the blockchain consensus method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the blockchain consensus method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Block chain consensus method, device and equipment and computer readable storage medium
CN109831425A
Consensus method and consensus system
CN111414373A