Node security consensus method and device
Through the node credibility scoring and grading mechanism, the consensus node set is dynamically adjusted, the PBFT algorithm process is simplified, the problems of high communication overhead and poor scalability of the PBFT algorithm are solved, and the efficiency and security of the blockchain system are improved.
Patent Information
- Application Number
- CN202410916281.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-10-11
AI Technical Summary
The existing PBFT consensus algorithm has problems such as high communication overhead, multiple broadcasts of transaction lists, poor scalability, and lack of node evaluation system, resulting in low efficiency and insufficient security of the blockchain system in processing large-scale data transaction scenarios.
The node credibility scoring and grading mechanism is used to divide node categories and levels, and the dynamic adjustment mechanism is used to select nodes with good performance to participate in the consensus, simplifying the core three-stage consensus process of the PBFT algorithm, and converting the complete verification of the transaction transaction list into a transaction hash value list Verification reduces the number of communications and message overhead between nodes.
It improves consensus efficiency, reduces the probability of view switching and node evil probability, enhances the scalability and security of the network, and significantly improves communication overhead, throughput and consensus success rate.
Smart Images

Figure CN118764210A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of blockchain systems and relates to a node security consensus method and device. Background Art
[0002] The consensus algorithm is crucial to ensure that all nodes can achieve consensus smoothly. It allows participants to verify the validity of data in the blockchain and ensure that every node on the blockchain can record and store data according to a unified behavioral standard, thereby reaching a consensus. Therefore, the consensus mechanism has an important impact on the efficiency of the system and is the key to achieving consistency. The CAP (Consistency, Availability, Partition Tolerance) theorem shows that although a feasible consensus algorithm can be designed in engineering, it is impossible to perfectly meet consistency, availability and partition tolerance at the same time. All nodes in the blockchain network are required to comply with unified rules. This theorem provides an important guiding principle for designing consensus algorithms. At present, consensus algorithms are mainly divided into two categories: non-Byzantine error consensus algorithms and Byzantine error consensus algorithms. The former is mainly used in the field of distributed databases, such as Paxos and Raft algorithms. This type of algorithm takes into account the situation that nodes may encounter downtime, delays or malicious behavior. Byzantine fault-tolerant consensus algorithms include Practical Byzantine Fault Tolerance (PBFT), Proof of Stake (PoS), and Proof of Work (PoW), which take into account that nodes may have any erroneous behavior, including sending false messages or launching joint attacks. At present, in order to ensure data consistency and improve system performance, consortium chains widely use consensus algorithms that can tolerate Byzantine errors.
[0003] Despite this, the existing consensus algorithms still have a series of drawbacks, such as low scalability, low degree of decentralization, low consensus efficiency, slow transaction confirmation, etc., which lead to low transaction processing capabilities and high transaction latency of blockchain systems, limiting their application in large-scale data transaction scenarios. In order to solve the drawbacks of the traditional blockchain consensus mechanism design, many researchers at home and abroad have conducted in-depth improvement and optimization research on traditional consensus algorithms. Zhu Li and other scholars innovatively proposed a blockchain-based medical system framework, which adopted a practical Byzantine fault-tolerant algorithm to achieve system consistency. The algorithm has a certain fault tolerance for Byzantine errors. However, the algorithm requires two-stage confirmation during execution and involves full network node broadcasting. With the increase in the number of nodes, the system communication volume also rises sharply, which not only causes great network pressure, but also affects the overall operation efficiency of the system. Wang Sen and other scholars, in view of the high complexity of protocol communication and the arbitrary selection of master nodes in the existing PBFT, proposed an improved Byzantine fault-tolerant algorithm with random selection of master nodes through a random number generation scheme and the introduction of aggregate signatures, which improves the system availability, but there are problems such as strong randomness that easily triggers view replacement and the consensus process is not safe enough. Zhang Meng et al. proposed an improved Byzantine fault-tolerant consensus algorithm with a recommended trust model, added a reward and punishment mechanism, did not randomly select master nodes and consensus nodes, and improved consensus security, but did not optimize the problem of high communication overhead. Fang Junjie and other scholars innovatively studied a medical data storage system based on blockchain, which was mainly optimized by eliminating the confirmation link of PBFT and integrating a trust management mechanism, effectively improving the processing capacity of the consensus algorithm, but did not consider the risk of malicious behavior of the master node. Gan Jun and other scholars proposed the E-PBFT algorithm to address the problems of static network structure, random selection of master nodes, and high communication costs in the PBFT algorithm. The algorithm innovatively supports dynamic node joining and exit by setting the node life cycle, and adopts the longest chain criterion to improve the election of the master node, showing good effectiveness and practicality, but the algorithm is only suitable for application scenarios with fewer nodes. Lao o and other scholars evaluated the performance of the PBFT algorithm implemented by Hyperledger Fabric. The results showed that when the number of nodes in the network is small, its consensus efficiency is good, but as the number of nodes in the network increases, the consensus performance will drop sharply. Sun and other scholars innovatively designed a node trust evaluation mechanism based on the expansion of node attributes. By grouping nodes according to their trustworthiness, the communication complexity is significantly reduced. However, the algorithm has deficiencies in the election of master nodes and consensus nodes, which leads to excessive concentration of node power and threatens system security.
[0004] Some of the above studies have optimized the consensus process to reduce communication complexity, realized dynamic node joining and exiting, and effectively improved throughput, but did not consider the security of the master node. Some studies have introduced a dynamic node entry and exit mechanism, and improved and optimized the master node election mechanism to improve practicality and security, but it is only applicable to scenarios with a small number of nodes. When the number of nodes increases, it will still lead to a sharp increase in communication interaction overhead and a decrease in synchronous performance. Some studies have made improvements and optimizations to the election and security issues of master nodes and consensus nodes, but there has been no significant improvement in the problem of high communication overhead. Some studies have introduced trust management models or credibility assessment models to improve the security of consensus nodes and consensus processes, effectively reduce communication overhead and increase throughput, but there are still problems such as unreasonable master node election or excessive concentration of node power.
[0005] At present, the Practical Byzantine Fault Tolerance (PBFT) algorithm is widely used in consortium chains as the main consensus algorithm. Under the premise that the number of consensus nodes is controlled within a certain range, the algorithm can quickly reach consensus and reduce communication overhead. However, PBFT requires all nodes to participate in the consensus process and broadcast transaction lists to other nodes at multiple stages. When the number of consensus nodes in the system is too large, the communication overhead and consensus delay will increase greatly, and the consensus cannot be completed normally. In addition, the current application scenarios of frequent data sharing usually need to process a large amount of business and transaction data, but the current PBFT algorithm has problems such as high communication overhead, slow transaction processing speed, low throughput, and poor dynamic scalability, which cannot meet the actual needs. At the same time, some current PBFT algorithm-related studies have the problem of poor node scalability, which is usually only applicable to scenarios with fewer nodes, and cannot dynamically expand and exit nodes; some studies ignore the dynamic evaluation of node reputation scores, and use simple or random methods to select master nodes and consensus nodes, which may cause Byzantine nodes to participate in consensus; some studies have super nodes that lead to power concentration, weakening the multi-center characteristics of consortium chains. Summary of the invention
[0006] The present invention provides a node security consensus method and device to solve the technical problems of the existing PBFT consensus algorithm, such as high communication overhead, multiple broadcast transaction lists, poor scalability, and lack of a node evaluation system.
[0007] The present invention adopts the following technical solutions:
[0008] The present invention provides a node security consensus method, comprising:
[0009] Step S1: The Fabric-SDK client first obtains the transaction list, sorts and packages the transactions, attaches a timestamp and signature, generates a request phase data packet and sends it to the blockchain system;
[0010] Step S2: The blockchain system divides all nodes in the network node list into consensus nodes and ordinary nodes, selects a master node from the consensus nodes, and the master node sends the transaction to other consensus nodes after receiving it;
[0011] Step S3: Execute the consensus phase through the master node and consensus node;
[0012] Step S4: When the blockchain system completes the consensus phase, the reputation score and hierarchical level of the node are updated through the reputation scoring mechanism, and whether the view switching is triggered is detected;
[0013] Step S5: If view switching is triggered, the view is switched to dynamically adjust the consensus node and enter the next round of consensus. If not triggered, the next round of consensus is entered directly.
[0014] Optionally, in the reply phase, all transactions in the transaction list are verified using the transaction hash value verification method.
[0015] Optionally, step S2: the blockchain system divides all nodes in the network node list into consensus nodes and ordinary nodes, and selects a master node from the consensus nodes, including:
[0016] By configuring the number of nodes C participating in the consensus in the network to satisfy C ≥ 3F + 1, and then selecting a specified number of nodes whose scores meet the requirements, all consensus nodes are determined;
[0017] A random number is generated by using a verifiable random function generation algorithm for a certain consensus node, and then verified with the random number generated in the system. The consensus node with the same random number can be selected as the main node for block generation in this round, and the remaining network nodes are ordinary nodes.
[0018] Optionally, the core phases of the consensus phase include: preparation phase, submission phase, and response phase:
[0019] Preparation phase: After the master node receives the message from the request phase, it adds the view number v to the message and assigns a sequence number n , and then embed other relevant information to encapsulate and generate the message message of the preparation phase <<PREPARE,v,n,d(m)> σ P ,m>, where d(m) is the message m summary of σ P It is the masternode signature;
[0020] Commit phase: other consensus nodes in the network receive the preparation phase data packet sent by the master node.<PREPARE,v,n,d(m)> σ P,m>, check whether the transaction list order and the request information in view v meet the conditions. If the check passes, enter the submission phase and broadcast the data message of the submission phase to other consensus nodes<<COMMIT,v,n,d(m),i> σ i >. Where i represents the node numbered i in the blockchain network, σ i The self-signature of the node numbered i;
[0021] Reply phase: Each node receives submission phase data packets sent by 2F+1 other nodes, where F is the maximum number of Byzantine nodes allowed in the network, and verifies the legitimacy of the collected data packets. If the verification passes, the signature indicates that all transactions are agreed and enters the reply phase. At the same time, the reply phase data packets are encapsulated.<REPLY,v,T,p> σ P ,m> and broadcast it to other consensus nodes in the network.
[0022] Optionally, step S4: when the blockchain system completes the consensus phase, updating the reputation score and hierarchical level of the node through the reputation scoring mechanism includes:
[0023] Each consensus node is scored for positive indicators and negative indicators. Positive indicators include historical node availability, submission rate, success rate, throughput, etc.; negative indicators include response delay, processing delay, packet loss rate, etc.
[0024] The positive indicator scores and the negative indicator scores are weighted and integrated to obtain the credibility score of each node in the network.
[0025] Optionally, it also includes: obtaining the credibility score of each node according to the credibility scoring mechanism and dividing all node scores into four levels: preliminary master node layer, consensus node layer, ordinary node layer, and warning node layer.
[0026] Optionally, step S5: if view switching is triggered, switching the view to dynamically adjust the consensus node and enter the next round of consensus; if not triggered, directly entering the next round of consensus includes:
[0027] When the transaction consensus in the network fails or the reputation score and level of the node are updated during the consensus phase, if triggered, the view will be switched to dynamically adjust the consensus node and enter the next round of consensus. If not triggered, it will directly enter the next round of consensus.
[0028] The present invention provides a node security consensus method device, comprising:
[0029] The transmission module is used by the Fabric-SDK client to first obtain the transaction list, sort and package the transactions, attach timestamps and signatures, and generate request phase data packets to send to the blockchain system;
[0030] The initialization module is used for the blockchain system to divide all nodes in the network node list into consensus nodes and ordinary nodes according to the preset configuration, and to elect the master node from the consensus nodes. After receiving the transaction, the master node sends it to other consensus nodes;
[0031] The consensus module is used to execute the consensus phase through consensus nodes;
[0032] The reputation scoring module is used to update the reputation score and hierarchical level of the node through the reputation scoring mechanism when the blockchain system completes the consensus stage;
[0033] The node dynamic adjustment module is used for the dynamic joining and exit of nodes, or if the view switch is triggered, the view is switched to dynamically adjust the consensus node and enter the next round of consensus. If it is not triggered, it directly enters the next round of consensus.
[0034] The present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of a node security consensus method as described in any one of the above embodiments are implemented.
[0035] The present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of a node security consensus method as described in any one of the above embodiments are implemented.
[0036] The beneficial effects of the invention are:
[0037] The traditional PBFT algorithm requires all nodes in the network to participate in the consensus process, and two-way communication is required between nodes. The high communication complexity makes the consensus efficiency low and consumes a lot of resources. The node security consensus method proposed in this invention improves the consensus efficiency from the following three aspects:
[0038] (1) Nodes are divided into categories and levels based on node reputation scores and grading mechanisms. Unlike the traditional PBFT algorithm, all nodes need to participate in the consensus process, which reduces the number of nodes participating in the consensus and the congestion of the consensus network, effectively improving the consensus efficiency.
[0039] (2) Based on the node reputation scoring and grading mechanism and combined with the dynamic adjustment mechanism, the normalized score is calculated according to the positive and negative behaviors of the node and weighted fusion is performed to obtain the final node reputation. Through dynamic adjustment, the trusted consensus node set is made up of nodes with good performance and high scores, thereby promoting consensus and preventing Byzantine nodes from serving as master nodes and causing frequent view switching, reducing the probability of view switching and the overhead generated during the view switching process.
[0040] (3) The consistency protocol process of the traditional PBFT algorithm is optimized, the core three-stage consensus process of the PBFT algorithm is simplified, and the complete verification of the transaction list is converted into the verification of the transaction hash value list, which significantly reduces the number of communications between nodes and message overhead, and effectively improves the consensus efficiency of the network. In contrast, the non-Byzantine algorithm Raft makes consensus simpler through leader election, log replication, and only solves collision failures. It can provide faster consensus efficiency in non-Byzantine fault environments, especially when the number of nodes is small, but in complex network and fault environments, such as malicious attacks or frequent leader switching, RD-PBFT has higher efficiency.
[0041] (4) The algorithm introduces a reputation score and dynamic adjustment mechanism between nodes, considers the historical performance of nodes, and dynamically adjusts the grouping by calculating the comprehensive score of each node, so that nodes with higher reputation are more likely to become consensus nodes and master nodes, reducing the number of nodes participating in the consensus. This mechanism not only reduces the probability of Byzantine nodes becoming consensus nodes and master nodes, but also improves their own reputation by encouraging nodes to honestly conduct transaction consensus, thereby further reducing the probability of nodes doing evil, and thus effectively reducing the probability of view switching, and improving consensus efficiency and success rate.
[0042] (5) In addition, the dynamic adjustment mechanism introduced by the algorithm also supports dynamic expansion and contraction of nodes, allowing nodes to join and exit flexibly, greatly improving the scalability and flexibility of the network and facilitating flexible adjustment of the network scale in the future. Then, by simplifying the PBFT consensus protocol, the consensus process is simplified into three stages: preparation, submission, and reply. In the reply stage, the complete verification of the transaction list is converted into the verification of the transaction hash value list, thereby significantly reducing the communication interaction overhead between network nodes.
[0043] (6) Finally, through theoretical analysis and experimental results, the improved RD-PBFT algorithm has good performance in network security, dynamic scalability, communication overhead, consensus efficiency and success rate. When the number of nodes in the blockchain network is large, as the number of nodes continues to increase, the advantages of RD-PBFT in communication overhead, throughput, consensus efficiency and success rate become more and more obvious. When the number of nodes increases to 60 (C = 50% N), the consensus success rate of RD-PBFT is 14.7% higher than that of DGPBFT and 39.1% higher than that of PBFT; when the number of nodes increases to 120 (C = 30% N), the throughput of RD-PBFT is 677TPS higher than that of DGPBFT and 762TPS higher than that of PBFT; when the number of nodes increases to 150, the communication overhead of RD-PBFT is only 10% to 25% of that of PBFT. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A flowchart of a node security consensus method provided by the present invention;
[0045] Figure 2 A consensus flow chart of a node security consensus method in a blockchain provided by the present invention;
[0046] Figure 3 A consensus execution flow chart of the RD-PBFT algorithm provided by the present invention;
[0047] Figure 4 A schematic diagram of node dynamic adjustment based on a consensus method of reputation scoring and dynamic adjustment mechanism provided by the present invention;
[0048] Figure 5 A comparison chart of experimental results of communication times of different algorithms provided by the present invention;
[0049] Figure 6 A comparison chart of experimental results of transaction throughput of different algorithms provided by the present invention;
[0050] Figure 7 A comparison chart of consensus success rate experimental results of different algorithms provided by the present invention;
[0051] Figure 8 A schematic diagram of a node security consensus device provided by the present invention. DETAILED DESCRIPTION
[0052] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0053] It should be noted that the invention research proposed a node security consensus method called RD-PBFT consensus method. The core innovation of this method is to introduce a reputation scoring model, combined with a dynamic adjustment mechanism, to enhance the reliability of nodes in the consensus process. This mechanism not only ensures the reliability of the master node and the consensus node, but also effectively implements access control and limits the destructive behavior of Byzantine nodes in the network. The RD-PBFT algorithm effectively guarantees the consistency of transaction processing and the reliable execution of smart contracts in the blockchain network, ensures that the ledger data on the chain is correctly authenticated by multiple parties and synchronized with consistency, and consolidates the immutability and consistency of the data. This is crucial for application scenarios that require a high degree of trust and security (such as privacy data of critical equipment, government data, financial services, medical record management, etc.).
[0054] The present invention provides a node security consensus method, combining Figure 1 and Figure 2 , the method comprising:
[0055] Step S1: The Fabric-SDK client first obtains the transaction list, sorts and packages the transactions, attaches a timestamp and signature, generates a request phase data packet and sends it to the blockchain system;
[0056] In one embodiment, the client obtains the transaction list, encodes and sorts it, and embeds the client's self-signature σ c After the timestamp T, the request phase message is encapsulated and generated.<REQUEST,m,T,c> σ c >. After receiving the request message, the master node adds the view number v, sequence number n and other information to it, and packages it into a preparation phase message<<PREPARE,v,n,d(m)> σ P ,m>, where d(m) is the summary of message m, P is the master node, σ P It is the signature of the master node.
[0057] Step S2: The blockchain system divides all nodes in the network node list into consensus nodes and ordinary nodes, selects a master node from the consensus nodes, and the master node sends the transaction to other consensus nodes after receiving it;
[0058] Optionally, step S2: the blockchain system divides all nodes in the network node list into consensus nodes and ordinary nodes, and selects a master node from the consensus nodes, including:
[0059] By configuring the number of nodes C participating in the consensus in the network to satisfy C ≥ 3F + 1, and then selecting a specified number of nodes whose scores meet the requirements, all consensus nodes are determined;
[0060] A random number is generated by using a verifiable random function generation algorithm for a certain consensus node, and then verified with the random number generated in the system. The consensus node with the same random number can be selected as the main node for block generation in this round, and the remaining network nodes are ordinary nodes.
[0061] In one embodiment, the blockchain system is initialized at this time, and first all nodes in the network are divided into two categories: consensus nodes and ordinary consensus nodes. The consensus node election RD-PBFT defines the number of nodes participating in the consensus in the network C as: C ≥ 3F + 1, where C represents the number of consensus nodes, which is a modifiable parameter, and F represents the number of fault-tolerant nodes in the consensus node list. If the conditions of the above formula are met, the honest node has the initiative in the network node consensus and is determined to be the master node. Therefore, in order to ensure security and fault tolerance, in the actual production environment, the number of consensus nodes should be set to an integer C ≥ 4, C ∈ Z that meets the following conditions. If the blockchain network is a consortium chain composed of trusted nodes, or a higher link rate is required, a smaller number of consensus nodes can be configured to improve the consensus efficiency between each node. If it is applied to a public chain, or a scenario with low reliability between nodes, a larger number of consensus nodes can be configured to prevent malicious nodes and faulty nodes from damaging the network and improve the fault tolerance of the system. Consensus nodes and ordinary nodes can be converted to each other under certain conditions, which solves the problem that the traditional PBFT algorithm does not support dynamic node joining and exiting, and improves the scalability of network nodes in the blockchain;
[0062] The second is the master node election. Consensus nodes selected through reputation scoring and dynamic adjustment mechanisms in the blockchain network have equal opportunities to compete for the master node. In the first round of consensus, the consensus nodes of the pre-master node layer use a verifiable random function generation algorithm to generate a random number and verify it with the random number generated in the system. The nodes with the same random number can be selected as the master node for block generation in this round. The master node is responsible for receiving transactions packaged and transmitted by the client and distributing them to the rest of the nodes in the network after signing.
[0063] Step S3: Execute the consensus phase through the master node and consensus node;
[0064] In one embodiment, after the master node receives the transaction proposal packaged and sent by the client, the core consensus execution process of the RD-PBFT algorithm is divided into three stages: Prepare, Commit, and Reply. Figure 3 shown.
[0065] From the request phase to the submission phase: other consensus nodes in the network receive the preparation phase data packet sent by the master node <<PREPARE,v,n,d(m)> σ P ,m>, check whether the transaction list order and the request information in view v meet the conditions. If the check passes, enter the submission phase and broadcast the data message of the submission phase to other consensus nodes<<COMMIT,v,n,d(m),i> σ i >. Where i represents the node numbered i in the blockchain network, σi The self-signature of node number i.
[0066] It should be noted that in the submission phase, all nodes in the network must digitally sign the messages sent, and the nodes receiving the messages are responsible for verifying these signatures to ensure the legitimacy and rationality of the transaction. Assume that there are illegal blocks that pass verification in the RD-PBFT consensus method. Then, assuming that the number of Byzantine nodes in the network is F, and the total number of nodes is N = 3F + 1, when the node receives 2F + 1 consistent confirmation messages from different nodes, it can reach a consensus to allow the block to be on the chain. However, when the number of valid consensus nodes exceeds 2F + 1, the consensus confirmation message obtained by the illegal block can only be N-(2F + 1) = F < 2F + 1 at most, so the illegal block cannot pass verification, which shows the effectiveness of the RD-PBFT algorithm in terms of security.
[0067] In contrast, the non-Byzantine algorithm Raft focuses on fault tolerance in non-Byzantine environments. It achieves fault tolerance through leader election and log replication mechanisms, but is not optimized for Byzantine nodes and malicious attacks. If there are Byzantine nodes in the network, its fault tolerance and consensus security are lower than RD-PBFT.
[0068] Reply phase: Each node receives submission phase data packets sent by 2F+1 other nodes (F is the maximum number of Byzantine nodes allowed in the network), and verifies the legitimacy of the collected data packets. If the verification passes, the signature indicates that all transactions are agreed and the reply phase is entered. At the same time, the reply phase data packets are encapsulated <<REPLY,v,T,p> σ P ,m> and broadcast it to other consensus nodes in the network. In order to facilitate the verification of the transaction list, the traditional PBFT algorithm broadcasts the same data packet in the submission and reply phases, resulting in repeated transmission of the transaction list. In this phase, the RD-PBFT algorithm uses the transaction hash value verification method to verify all transactions in the transaction list, simplifying the original complete transaction list into a hash list containing only the hash values of each transaction, simplifying the overhead of the traditional PBFT method of fully verifying all transactions in the transaction list, greatly reducing the amount of data transmission and alleviating the network burden. It should be noted that in the reply phase, the hash value is signed using the sender's certificate. Since other participants cannot obtain the sender's private key, the consensus process can be ensured to be secure. Ultimately, the sequential consistency of the transaction requests in the transaction list can be guaranteed when they are distributed and stored in each node.
[0069] Step S4: When the blockchain system completes the consensus phase, the reputation score and hierarchical level of the node are updated through the reputation scoring mechanism, and whether the view switching is triggered is detected;
[0070] In one embodiment, when the master node receives 2F+1 reply messages, it will broadcast a confirmation message to indicate that the transaction is valid, and write the transaction into the block and local node database. If the consensus verification fails, the consensus node will generate view switching information and broadcast it to the blockchain network, and then re-elect the master node.
[0071] Optionally, in the reply phase, all transactions in the transaction list are verified using the transaction hash value verification method.
[0072] Step S5: If view switching is triggered, the view is switched to dynamically adjust the consensus node and enter the next round of consensus. If not triggered, the next round of consensus is entered directly.
[0073] In one embodiment, if a view switch is triggered, the reputation and level of the node will be dynamically updated through the reputation scoring mechanism, the new master node and ordinary node will be re-determined, and the next round of consensus will be entered. It should be noted that if the Byzantine node is elected as the master node, its generated block will not be verified, and the view switch will be triggered. The RD-PBFT algorithm can greatly reduce the probability of Byzantine nodes participating in the consensus, and effectively prevent the Byzantine node from being elected as the master node, significantly reducing the frequency of view switching due to the failure or malicious behavior of the master node. In addition, the view switching mechanism in the RD-PBFT algorithm uses a random number generation algorithm to generate a random number, and requires the consensus node to have the same random number before the consensus node can be selected as the new master node, which increases the unpredictability and non-selectivity of the process, and effectively prevents attack strategies against specific master nodes. Therefore, the RD-PBFT algorithm improves the security of master node election and view switching during the consensus process.
[0074] Optionally, step S4: when the blockchain system has not completed the consensus phase, updating the reputation score and level of the node through the reputation score scoring mechanism includes:
[0075] Each consensus node is scored for positive indicators and negative indicators. Positive indicators include historical node availability, submission rate, success rate, and throughput; negative indicators include response delay, processing delay, and packet loss rate.
[0076] The positive indicator scores and the negative indicator scores are weighted and integrated to obtain the credibility score of each node in the network.
[0077] In one embodiment, the traditional PBFT algorithm can solve the general Byzantine problem, that is, distributed nodes can still reach consensus while allowing faulty or malicious nodes to exist in the blockchain network. However, the traditional PBFT algorithm requires all nodes to participate in the consensus. As the number of nodes in the network increases, the consensus delay and network communication consumption will increase dramatically, so the number of nodes in the network is a key factor that restricts the performance of the PBFT algorithm.
[0078] The present invention establishes a reputation scoring mechanism model to score nodes in the network, regularly upgrades and elects common nodes with higher reputation to consensus nodes to participate in blockchain consensus and bookkeeping; and downgrades consensus nodes with lower reputation. The improvement effect of the RD-PBFT Byzantine fault tolerance algorithm in dynamically expanding nodes is mainly reflected in the improvement of network dynamics and reliability. The specific node dynamic adjustment process is as follows Figure 4 As shown:
[0079] Blockchain is essentially a distributed database deployed on many nodes. In order to ensure the correctness and consistency of data on these nodes, the consensus method plays a key role. Existing consensus methods such as PBFT and DGPBFT usually do not take into account the different bandwidth overheads and network delays of each node in the network, resulting in most nodes participating in the network consensus process needing to wait for a long time for a few nodes with high network delays when synchronizing data between nodes. This problem makes it difficult to meet the performance requirements of blockchain technology in frequent transaction scenarios. Therefore, this patent combines factors such as response delay, processing delay, packet loss rate, historical node availability and reliability of network nodes between nodes in the network, and all nodes will score their credibility each time a transaction is completed.
[0080] After completing a round of fixed consensus, nodes with low reputation scores will be downgraded to ordinary nodes, and ordinary nodes with high scores can be elected as consensus nodes. At the same time, the historical reputation of all consensus nodes will be initialized and recalculated. The reputation-based scoring mechanism ensures that the consensus node is a node with high reputation. When the response delay and processing delay of the blockchain node are low, it means that the node has strong processing capabilities. At the same time, the introduction of the node's historical availability and network node reliability indicators reduces the risk of random selection of master nodes and consensus nodes in the traditional PBFT algorithm, and improves the security of the blockchain network.
[0081] Since the reputation scoring mechanism of this patent includes multiple dimensional scoring indicators, some indicators with higher performance are called positive indicators, such as historical node availability, submission rate, success rate, throughput, etc.; some indicators with lower performance are called negative indicators, such as response delay, processing delay, packet loss rate, etc. Therefore, a unified normalization method for each positive indicator is denoted as R.ij , R ij is the normalized value of the jth positive indicator of the ith node; the unified normalization method for each reverse indicator is denoted as P ik , P ik is the normalized value of the kth inverse indicator of the ith node.
[0082] Assume that in the multiple dimensions of credibility score, the number of positive indicators and negative indicators are N1 and N2 respectively, and the indicator information of the positive indicator dimension and the negative indicator dimension are fused and weighted, and the weights are w j and w k , get the credit score Credit(n i ), as shown below:
[0083]
[0084] It should be noted that in this embodiment, compared with the situation where all nodes need to participate in the consensus of the PBFT algorithm, RD-PBFT does not require all nodes to participate in the consensus process. By introducing the node reputation scoring and dynamic adjustment mechanism, only nodes with high reputation are selected to participate in the consensus, which reduces the number of nodes participating in the consensus and improves the reliability of the nodes participating in the consensus, thereby reducing the frequency of view switching, and thus reducing the possibility of Byzantine nodes doing evil. The traditional PBFT algorithm selects the master node in a polling manner, but there is a certain probability that the Byzantine node will be selected. Once the view switching protocol is triggered, it will not only delay the consensus process, but also the subsequent master nodes will still select the master node in this way, which also faces consensus risks. The RD-PBFT algorithm takes into account the historical performance of the node, and by calculating the comprehensive score of each node and dynamically grouping it, it makes nodes with higher reputation more likely to become consensus nodes. This mechanism not only reduces the possibility of Byzantine nodes becoming consensus nodes and master nodes, but also improves their reputation by encouraging nodes to honestly conduct transaction consensus, thereby further reducing the probability of node evil, and promoting the overall security and consensus efficiency of the alliance chain.
[0085] Optionally, the method further includes: obtaining the credibility score of each node according to the credibility scoring mechanism and dividing all node scores into four levels: a pre-master node layer, a consensus node layer, a common node layer, and a warning node layer.
[0086] In one embodiment, it should be noted that in the RD-PBFT consensus method proposed in the present invention, network nodes are mainly divided into two categories: consensus nodes and ordinary nodes.
[0087] The responsibilities of a consensus node are as follows: (1) Participate in the block consensus of each node in the network, (2) Be responsible for receiving and signing transactions sent by clients, (3) Analyze transaction content based on the status data of this node, and (4) Supervise and manage transactions submitted by clients to prevent malicious behavior.
[0088] The responsibilities of ordinary nodes are as follows: (1) receiving data synchronization from consensus nodes, (2) performing signature verification and storing transactions, and (3) if a consensus node is downgraded or the number of consensus nodes is insufficient, ordinary nodes with higher scores can be elected as consensus nodes.
[0089] According to the reputation scoring mechanism, the node scores are divided into four levels: pre-master node layer, consensus node layer, ordinary node layer, and warning node layer. Each node has a reputation score between 0 and 1, as shown in Table 1.
[0090] Table 1
[0091]
[0092] (1) Preparatory master node layer (score range 0.8-1): This layer contains nodes with extremely high reputation scores. These nodes are highly credible in the network and have stable and reliable operating performance. Therefore, in order to achieve the normal and efficient operation of the RD-PBFT fault-tolerant algorithm during the transaction process, more reliable nodes are usually selected from this layer as new master nodes. In addition, when the master node needs to be switched, nodes are also selected from this layer for replacement. In order to maintain network stability and security, nodes in this layer need to continuously monitor and maintain their reputation scores to ensure their leadership in the entire consensus network.
[0093] (2) Consensus node layer (score range 0.6-0.8): Nodes in this layer have higher reputation scores and participate in system consensus voting and verification as the main part of the consensus process. Although the reputation scores of nodes in this layer are lower than those of nodes in the pre-master node layer, they still have a certain degree of credibility and consensus success rate.
[0094] (3) Ordinary node layer (score range 0.4-0.6): This layer is ordinary nodes with normal credibility scores, with scores between 0.4 and 0.6. If the ordinary node score reaches the score requirement of the trusted consensus node layer, after a certain number of rounds of consensus, if a consensus node is downgraded to an ordinary node, or the number of consensus nodes is insufficient, ordinary nodes that meet the requirements can be elected as consensus nodes.
[0095] (4) Warning node layer (score range 0.2-0.4): If the reputation score of an ordinary node is lower than 0.4, a warning will be triggered and it will be marked as a warning node. The master node is responsible for broadcasting the relevant warning information to the entire network. Other nodes need to receive the warning information and record it in the local ledger database. If the node continues to misbehave and the score drops below 0.2, it will be marked as an untrustworthy node and removed from the blockchain network.
[0096] Through this layered and reputation scoring mechanism, node behavior can be monitored and managed more effectively, and bad nodes can be discovered and dealt with in a timely manner, thereby enhancing the overall performance of the blockchain network.
[0097] Optionally, step S5: if view switching is triggered, switching the view to dynamically adjust the consensus node and enter the next round of consensus; if not triggered, directly entering the next round of consensus includes:
[0098] When the network consensus fails or the reputation score and level of the node are updated during the consensus phase, the view is switched to dynamically adjust the consensus node and enter the block writing phase: Finally, the master node sends the data packet that has successfully reached consensus to the client and ordinary nodes, and writes it into the block of the blockchain and the local database of each node to achieve distributed and persistent data storage, ensure that it cannot be tampered with, and enter the next round of consensus. If there is no trigger, it will directly enter the next round of consensus.
[0099] It should be noted that the traditional PBFT algorithm does not support the dynamic joining and exiting of nodes. Whenever a node needs to join or exit the blockchain network, the network needs to be restarted. This drawback greatly limits the scalability of the PBFT algorithm. In contrast, the RD-PBFT algorithm of this patent effectively solves this problem by introducing a dynamic adjustment mechanism. Specifically, when a node joins or exits the blockchain system, the algorithm allows the new node to join or exit the blockchain network by sending a join or exit request and completing a round of interaction with the full node without restarting the initialized blockchain network, which greatly improves the scalability and flexibility of the network and facilitates flexible adjustment of the network scale in the future.
[0100] After a node joins the network, the RD-PBFT algorithm will monitor and dynamically evaluate the behavior of the nodes in the network. As the consensus process proceeds, Byzantine nodes with low reputation scores will be removed from the trusted consensus node set. If the node continues to do evil, it will even be removed from the alliance blockchain network. In addition, ordinary nodes with high reputation scores can also be included in the trusted consensus node set. Therefore, the RD-PBFT algorithm can realize the dynamic joining and exit of nodes, and can correctly complete the consensus while ensuring high fault tolerance. It has good dynamic scalability and better adapts to the application scenarios of large-scale and frequent transactions.
[0101] Relatively speaking, the non-Byzantine algorithm Raft still faces leader bottlenecks and delays in log replication by a large number of nodes in large-scale networks, and its scalability will be limited to a certain extent in a highly dynamic network environment.
[0102] Based on the node security consensus method proposed by the present invention, some nodes are selected to participate in the consensus process by election. There may be many malicious nodes in the public blockchain network. As the proportion of malicious nodes increases, malicious transactions may occur. The alliance chain is a permissioned blockchain network with different authority controls between nodes. The trust between nodes is relatively high. Therefore, the actual application scenario of this patent is more suitable for alliance blockchains, not public blockchains. The experiments conducted are based on Java language and related frameworks, and the RD-PBFT algorithm, PBFT algorithm and DGPBFT algorithm proposed in this patent are compared in terms of communication overhead, throughput and consensus success rate.
[0103] 1.1 Comparative Analysis of Communication Overhead
[0104] The consensus workflow of the PBFT algorithm involves five stages: request, pre-preparation, preparation, submission, and reply. Assuming that the number of nodes in the network is N (N ≥ 4), the PBFT algorithm requires N nodes to participate in the consensus process. The communication time in the pre-preparation stage is N-1; in the preparation stage, the communication time is (N-1) × (N-1); in the submission stage, the communication time is N × (N-1). Therefore, the total number of communications of PBFT is:
[0105] T 1 =N-1+(N-1) 2 +N×(N-1)
[0106] =2N×(N-1)
[0107] The RD-PBFT algorithm divides the nodes in the network into consensus nodes and ordinary nodes. Only consensus nodes participate in the consensus process, while ordinary nodes synchronize and verify messages after consensus. Assuming that the total number of nodes in the network is N (N≥4), the number of consensus nodes is C (N≥C, C≥4), then the number of ordinary nodes is NC. At the same time, the algorithm simplifies the consensus core phase into three phases: preparation, submission, and reply phases. In the preparation phase, the master node broadcasts the packaged message to the remaining consensus nodes, which requires C-1 communications. In the submission phase, in addition to the master node, the remaining C-1 consensus nodes need to confirm messages with each other, which requires (C-1)×(C-1) communications. In the reply phase, each node needs to broadcast reply messages interactively in pairs, which requires C×(C-1) communications. Finally, the consensus process also needs to send the confirmed transaction message to the client and synchronize it to NC ordinary nodes for message verification. The number of communications is N-C+1. Therefore, the total number of communications for RD-PBFT is:
[0108] T 2 =C-1+(C-1)×(C-1)+C×(C-1)+N-C+1
[0109] =N+(2C-1)×(C-1)
[0110] =N+2C 2 -3C+1
[0111] According to the above description, the relationship between N and C should satisfy N ≥ C, C ≥ 4, which can be easily proved by the scaling method.
[0112] 2N 2 -2N>N+2C 2 -3C+1
[0113] The communication time complexity of PBFT is O(N 2 ), the communication time complexity of the RD-PBFT algorithm proposed in this patent is O(C 2 ), from N≥C, C≥4, it is easy to prove
[0114] O(N 2 )>O(C 2 )
[0115] From the above proof, it can be concluded that the RD-PBFT algorithm proposed in this patent has lower communication times and time complexity than the traditional PBFT algorithm.
[0116] In order to verify the above theoretical analysis results and eliminate accidental errors, this study conducted 100 repeated experiments, using PBFT and RD-PBFT algorithms to conduct experimental analysis of the number of communications to simulate the communication behavior of nodes during the consensus process. The C values of the RD-PBFT algorithm were 30%N, 40%N, and 50%N, respectively. The results are shown in the figure. Figure 5 As shown. In the entire simulation experiment, compared with the PBFT algorithm, the RD-PBFT algorithm introduced a dynamic adjustment mechanism, and the consensus method showed relative stability, and the number of communications required to reach a consensus was greatly reduced. In the process of the number of network nodes N increasing from 4 to 150. As the number of network nodes increases, the number of communications required for PBFT is significantly higher than that of RD-PBFT. When the number of consensus nodes increases to 150, 44718 communications are required to reach a consensus. In addition, the experimental results of the RD-PBFT algorithm under two different conditions of C = 30% N and C = 50% N are also significantly different.
[0117] In real production scenarios, the method of adjusting the number of consensus nodes C in the network can be used to dynamically regulate the communication overhead and consensus efficiency of the alliance chain network. Therefore, the RD-PBFT algorithm significantly reduces the number of communications and communication overhead, and effectively improves the consensus efficiency.
[0118] 1.2 Comparative Analysis of Transaction Throughput
[0119] The consensus efficiency of the alliance blockchain can be measured by throughput, that is, the number of transactions completed per second (Transactions Per Second, TPS). The size of TPS reflects the ability of the algorithm and system to process transactions. This section experimentally tests the performance of PBFT, DGPBFT and RD-PBFT algorithms (the number of RD-PBFT consensus nodes C is set to C = 30% N and C = 50% N respectively) under different numbers of network nodes (the number of network nodes N is set to different values from 4 to 120). The experimental results are as follows Figure 6 shown.
[0120] The results show that the PBFT algorithm and the DGPBFT algorithm will cause greater communication pressure and consensus delay when the number of nodes increases. When the number of nodes of the PBFT algorithm exceeds 120 nodes, the TPS drops by about 81%. When the number of nodes of the DGPBFT algorithm exceeds 120 nodes, the TPS drops by about 73%. In contrast, the TPS drop of the RD-PBFT algorithm is more stable. When the number of nodes exceeds 120, the system TPS does not change much when C=30%N, and the system TPS drops by about 34% when C=50%N.
[0121] From the above analysis, we can conclude that the RD-PBFT algorithm optimizes the algorithm from several aspects, including reducing the number of consensus nodes, dynamic expansion and contraction, node scoring, dynamic adjustment of consensus nodes and master nodes, and simplification of consensus processes and verification lists, so that the RD-PBFT algorithm can maintain a high TPS performance even when the number of nodes is large. Therefore, RD-PBFT is more suitable for scenarios with high-frequency transactions and dynamic expansion of network nodes, thereby promoting and applying consortium blockchain in more fields.
[0122] 1.3 Comparative Analysis of Consensus Success Rate
[0123] The consensus success rate refers to the probability of reaching a consensus correctly in the presence of Byzantine errors in the blockchain system (i.e., some nodes in the system may experience unexpected failures or even intentional malicious sabotage). It is generally used to judge the fault tolerance of the consensus algorithm. The design goal of the Byzantine fault-tolerant consensus algorithm is to ensure that the system can still correctly process messages and reach consensus when facing a certain proportion of malicious nodes. The consensus success rate is related to many factors, mainly including algorithm design, number and distribution of nodes, proportion of malicious nodes, and network environment. In general, system reliability is positively correlated with the success rate of the consensus algorithm.
[0124] This section will design an experiment to analyze the consensus success rate of the RD-PBFT algorithm, PBFT algorithm, and DGPBFT algorithm when the number of network nodes changes. The number of network nodes N is set to 4, 10, 20, 30, 40, 50, and 60 respectively. Under different N values, 1,000 transaction consensus tests are performed on each of the three algorithms and the consensus success rate is calculated. The consensus success rate comparison experiment results of each algorithm are as follows Figure 7 shown.
[0125] From the analysis of the above experimental results, it can be seen that with the continuous increase in the number of network nodes, the consensus success rates of these three consensus methods have all decreased. Under the same conditions, the fault tolerance of DGPBFT is improved compared to the PBFT algorithm, and the consensus success rate decreases more slowly. When the number of nodes reaches 60, the success rate of DGPBFT is less than 70%, and the success rate of PBFT is less than 50%, but the success rate of the RD-PBFT algorithm proposed in this patent decreases the slowest. This is because the RD-PBFT algorithm can effectively identify and eliminate Byzantine nodes, reduce the probability of faulty or malicious nodes being selected as consensus nodes or master nodes, and reduce the additional network overhead caused by multiple retransmissions and view switching, thereby effectively improving the consensus success rate. Therefore, the RD-PBFT consensus method can still have high stability and practicality when the number of network nodes or the number of Byzantine nodes increases.
[0126] The present invention also provides a node security consensus method device, such as Figure 8 As shown, including:
[0127] The transmission module is used by the Fabric-SDK client to first obtain the transaction list, sort and package the transactions, attach timestamps and signatures, and generate request phase data packets to send to the blockchain system;
[0128] The initialization module is used for the blockchain system to divide all nodes in the network node list into consensus nodes and ordinary nodes according to the preset configuration, and to elect the master node from the consensus nodes. After receiving the transaction, the master node sends it to other consensus nodes;
[0129] The consensus module is used to execute the consensus phase through consensus nodes;
[0130] The reputation scoring module is used to update the reputation score and hierarchical level of the node through the reputation scoring mechanism when the blockchain system completes the consensus stage;
[0131] The node dynamic adjustment module is used for the dynamic joining and exit of nodes, or if the view switch is triggered, the view is switched to dynamically adjust the consensus node and enter the next round of consensus. If it is not triggered, it directly enters the next round of consensus.
[0132] It should be noted that the node security consensus device provided by the present invention can implement steps that are completely consistent with the above-mentioned node security consensus method embodiment, which will not be repeated here.
[0133] The present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of a node security consensus method as described in any one of the above embodiments are implemented.
[0134] The present invention also provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of a node security consensus method as described in any one of the above embodiments when executing the computer program.
[0135] The present invention also provides a computer-readable storage medium, which stores a computer program, and is characterized in that when the computer program is executed by a processor, the steps of a node security consensus method described in any one of the above embodiments are implemented.
[0136] The present invention also provides a computer 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 computer program, the steps of a node security consensus method as described in any one of the above method embodiments are implemented.
[0137] The present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of a node security consensus method as described in any one of the above method embodiments.
Claims
1. A node security consensus method, characterized in that: include: Step S1: The Fabric-SDK client first obtains the transaction list, sorts and packages the transactions, attaches a timestamp and signature, generates a request phase data packet and sends it to the blockchain system; Step S2: The blockchain system divides all nodes in the network node list into consensus nodes and ordinary nodes, selects a master node from the consensus nodes, and sends the transaction to other consensus nodes after receiving the transaction; Step S3: executing the consensus phase through the master node and the consensus node; Step S4: When the blockchain system completes the consensus phase, the reputation score and hierarchical level of the node are updated through the reputation scoring mechanism, and whether a view switch is triggered is detected; Step S5: If view switching is triggered, the view is switched to dynamically adjust the consensus node and enter the next round of consensus. If not triggered, the next round of consensus is entered directly.
2. A node security consensus method as claimed in claim 1, characterized in that: In the reply phase, all transactions in the transaction list are verified using the transaction hash value verification method.
3. A node security consensus method as claimed in claim 1, characterized in that: Step S2: The blockchain system divides all nodes in the network node list into consensus nodes and ordinary nodes, and selects the master node from the consensus nodes, including: By configuring the number of nodes C participating in the consensus in the network to satisfy C ≥ 3F + 1, and then selecting a specified number of nodes whose scores meet the requirements, all consensus nodes are determined; A random number is generated by using a verifiable random function generation algorithm for a certain consensus node, and then verified with the random number generated in the system. The consensus node with the same random number can be selected as the main node for block generation in this round, and the remaining network nodes are ordinary nodes.
4. A node security consensus method as claimed in claim 1, characterized in that: The core stages of the consensus phase include preparation, submission, and response: Preparation phase: After the master node receives the message from the request phase, it adds the view number v to the message and assigns a sequence number n , and then embed other relevant information to encapsulate and generate the message message of the preparation phase <<PREPARE,v,n,d(m)> σ P ,m>, where d(m) is the message m summary of σ P It is the masternode signature; Commit phase: other consensus nodes in the network receive the preparation phase data packet sent by the master node.<PREPARE,v,n,d(m)> σ P ,m>, check whether the transaction list order and the request information in view v meet the conditions; If the check passes, it enters the submission phase and broadcasts the submission phase data message to other consensus nodes.<COMMIT,v,n,d(m),i> σ i > Where i represents the node numbered i in the blockchain network, σ i The self-signature of the node numbered i; Reply phase: Each node receives submission phase data packets sent by 2F+1 other nodes, where F is the maximum number of Byzantine nodes allowed in the network, and verifies the legitimacy of the collected data packets. If the verification passes, the signature indicates that all transactions are agreed and enters the reply phase. At the same time, the reply phase data packets are encapsulated.<REPLY,v,T,p> σ P ,m> and broadcast it to other consensus nodes in the network.
5. A node security consensus method as claimed in claim 1, characterized in that: Step S4: When the blockchain system completes the consensus phase, updating the reputation score and hierarchical level of the node through the reputation scoring mechanism includes: Each consensus node is scored for positive indicators and negative indicators. The positive indicators include historical node availability, submission rate, success rate, and throughput; the negative indicators include response delay, processing delay, and packet loss rate. The positive indicator scores and the negative indicator scores are weighted and integrated to obtain the credibility score of each node in the network.
6. A node security consensus method as claimed in claim 5, characterized in that: Also includes: The reputation score of each node is obtained according to the reputation scoring mechanism, and all node scores are divided into four levels: pre-master node layer, consensus node layer, ordinary node layer, and warning node layer.
7. A node security consensus method as claimed in claim 1, characterized in that: Step S5: If the view switch is triggered, the view is switched to dynamically adjust the consensus node and enter the next round of consensus. If it is not triggered, the next round of consensus is directly entered, including: When the transaction consensus in the network fails or the reputation score and level of the node are updated during the consensus phase, if triggered, the view will be switched to dynamically adjust the consensus node and enter the next round of consensus. If not triggered, it will directly enter the next round of consensus.
8. A node security consensus method device, characterized in that: include: The transmission module is used by the Fabric-SDK client to first obtain the transaction list, sort and package the transactions, attach timestamps and signatures, and generate request phase data packets to send to the blockchain system; An initialization module is used for the blockchain system to divide all nodes in the network node list into consensus nodes and ordinary nodes according to a preset configuration, and to elect a master node from the consensus nodes. After receiving the transaction, the master node sends it to other consensus nodes; A consensus module, for executing a consensus phase through the consensus nodes; A reputation scoring module, used to update the reputation score and hierarchical level of the node through a reputation scoring mechanism when the blockchain system completes the consensus stage; The node dynamic adjustment module is used for the dynamic joining and exit of nodes, or if the view switch is triggered, the view is switched to dynamically adjust the consensus node and enter the next round of consensus. If it is not triggered, it directly enters the next round of consensus.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of a node security consensus method as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of a node security consensus method as described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Decentralization oracle machine service system and method for real-time perception data
CN119402500A
Information sharing method and system in Internet of Vehicles
CN120151366A
AI-driven block chain hybrid consensus dynamic hierarchical optimization method and system
CN121441920A
