Grouping Byzantine fault-tolerant consensus method based on aggregation signature
Through the grouped Byzantine fault-tolerant consensus method based on aggregated signatures, through reputation value evaluation and proxy node election, the problems of high communication overhead and poor scalability in large-scale networks in the existing technology are solved, and an efficient and secure consensus process is achieved, which is suitable for Large-scale network environment.
Patent Information
- Application Number
- CN202410683814.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-20
AI Technical Summary
Existing Byzantine fault-tolerant algorithms have problems such as high communication overhead, poor scalability, and low cost for nodes to do evil in large-scale network environments, making it difficult to meet the needs for efficient and secure consensus.
Adopting a grouped Byzantine fault-tolerant consensus method based on aggregated signatures, through node reputation value evaluation and punishment mechanism, nodes are divided into groups for agent node election and message interaction, and agent nodes are used as transfer stations for message aggregation signature verification, which reduces communication overhead and improves the system Efficiency and safety.
It effectively reduces communication overhead, achieves linear communication complexity, improves consensus efficiency and security, is suitable for large-scale network environments, and enhances the stability and credibility of the blockchain network.
Smart Images

Figure CN118677906A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a consensus method based on Byzantine fault tolerance. Background Art
[0002] In today's digital age, blockchain technology has become the focus of attention in many industries and fields with its distributed and decentralized characteristics. One of the core of blockchain is its consensus mechanism, which is one of the key mechanisms to ensure that all nodes in the network reach a consensus on the consistency of data. As the core consensus mechanism of Bitcoin, the Proof of Work (PoW) algorithm has created a decentralized digital currency system and promoted the development of blockchain technology. With the expansion of the scale of distributed systems and the complexity of network environments, the existence of node failures and malicious behaviors has put forward higher requirements on the reliability of consensus algorithms.
[0003] In order to solve these challenges, the research on Byzantine fault-tolerant algorithms has received widespread attention. As a classic representative of Byzantine fault-tolerant algorithms, the Practical Byzantine Fault Tolerance (PBFT) algorithm reaches consensus through multiple rounds of protocols between nodes, ensuring high efficiency and security. Although the PBFT algorithm has been applied in multiple distributed systems, as the scale of the consensus network continues to expand, it also faces problems such as arbitrary selection of master nodes, high communication overhead, poor scalability, and low cost of node maliciousness. Therefore, it is necessary to design a more secure and efficient Byzantine fault-tolerant consensus algorithm. Summary of the invention
[0004] The purpose of the present invention is to provide a group Byzantine fault-tolerant consensus method based on aggregate signatures, which is suitable for large-scale network environments, can effectively reduce communication overhead, improve the efficiency and security of consensus, and has good scalability.
[0005] The objective of the present invention is achieved through the following technical solutions:
[0006] A group Byzantine fault-tolerant consensus method based on aggregate signature, the method comprising:
[0007] Step 1: Evaluate the reputation of nodes based on their evaluation of historical transactions, and deduct the corresponding reputation value from nodes that fail or have malicious behavior;
[0008] Step 2: Divide the consensus nodes into multiple groups, and then each group elects proxy nodes based on the reputation value of the nodes in the group. After the proxy nodes are selected, all proxy nodes vote to select the proxy node with the highest reputation value as the master node;
[0009] Step 3. Set the proxy node as a transit station for message interaction. The master node first sends the message containing the client request to all proxy nodes. The proxy node broadcasts the message that requires consensus to the replica nodes in the group. The replica nodes in each group send voting messages to the proxy node. The proxy node then aggregates the signatures from multiple nodes into a single signature and returns the aggregated signature for the replica node to verify. After the vote and signature verification are passed, the replica node executes the request locally and returns the message to the proxy node to complete the local consensus. Finally, each proxy node returns the execution result to the client to complete the global consensus.
[0010] The beneficial effects of this solution are: it effectively reduces communication overhead, achieves linear communication complexity, improves the consensus efficiency of the system, has good security and scalability, and can be used in large-scale networks with many nodes.
[0011] Furthermore, in step 1, the evaluation of the node reputation value includes four parts: direct reputation value, indirect reputation value, global reputation value and penalty mechanism.
[0012] Furthermore, the direct reputation value is the degree of trust of one node in another node calculated based on the evaluation of historical transactions between two nodes that have interacted. The evaluation of transactions by nodes is divided into trust and distrust. Sat(i,j) represents the number of transactions in which node i trusts node j, and unsat(i,j) represents the number of transactions in which node i distrusts node j. The direct reputation value S of node i to node j is obtained by calculating the difference between the trust number and the distrust number. ij , S obtained based on historical transactions ij The larger it is, the higher the trust of node i in node j is. The calculation formula is as follows:
[0013] S ij =(1-β)·sat(i,j)-β·unsat(i,j),0<β<1;
[0014] Among them, β is the weight of untrusted transactions in calculating the reputation value. A higher β value will amplify the impact of untrusted transactions on the direct reputation value, thereby reducing the credibility of the node;
[0015] In order to prevent malicious nodes from colluding with each other to give each other high scores to improve their reputation and give honest nodes low scores, thereby destroying the fairness of the system, it is necessary to standardize the direct reputation value. The specific method is as follows:
[0016]
[0017] in, In the early stage of the system, some nodes are considered reliable, called pre-trusted nodes. These nodes form a set P, and |P| is the number of pre-trusted nodes.
[0018] Furthermore, the role of the indirect reputation value is to enable nodes to establish trust in other nodes without direct interaction through a trust transfer mechanism. This trust transfer mechanism can obtain indirect trust information of other nodes through iterative calculation to form a globally consistent trust network. The calculation formula of the indirect reputation value is as follows:
[0019]
[0020] There is no direct interaction between node i and node k, and the indirect reputation value is calculated through the reference information provided by the intermediate node j.
[0021] Furthermore, the global reputation value is obtained by combining the direct reputation value and the indirect reputation value, and is the main basis for evaluating whether a node is trustworthy. The higher the global reputation value of a node, the higher its credibility. Each node finds the node with the highest reputation value based on the previous round of transactions. h Honest node h:
[0022]
[0023] Honest node h plays a key role in calculating the value of the propagation parameter a. Its reputation value dynamically affects the weight of a, and then affects the global reputation value. The global reputation value calculation formula is as follows:
[0024]
[0025] in,
[0026] During the master node and proxy node election phase, the election will be conducted based on the global reputation value of each node. The higher the global reputation value of the node, the higher the credibility.
[0027] Furthermore, the penalty mechanism is that when a node is detected to have a fault or malicious behavior, it will be punished to varying degrees. When the node does not respond for a long time and triggers the timeout mechanism, it indicates that the node has a fault, and the system will deduct a reputation value x from the faulty node; and when the node signature verification fails, it indicates that the node has malicious behavior, and the malicious node will be punished by deducting a reputation value y; usually y is set to be greater than x to strengthen the punishment of malicious nodes. In particular, when the reputation value of a node is reduced to less than the initial reputation value of 0.3, the system will set the node reputation value to 0, indicating that the node is deleted by the system. The formula for reputation penalty is as follows:
[0028]
[0029] in is the original reputation value, t i ' represents the reduced reputation value, x and y represent penalty values ranging from 0 to 1, which are set according to the application scenario.
[0030] Beneficial effects of the above further scheme: Reputation evaluation can help identify and exclude malicious nodes, thereby improving the security of the blockchain network; by comprehensively considering the historical transaction behavior of the nodes, it can reduce the risk of manipulation in the consensus process, help establish a trust relationship between nodes, and enhance the participants' trust in the network, thereby promoting cooperation and collaboration, and improving the stability and credibility of the blockchain network.
[0031] The existence of the penalty mechanism increases the cost of nodes doing evil and further constrains abnormal behavior of nodes.
[0032] Furthermore, in step 2, after the consensus nodes are divided into multiple groups, the nodes in each group first vote to select the node with the highest reputation value in the group as the proxy node of the group, and then all the proxy nodes vote to select the proxy node with the highest reputation value as the master node, specifically:
[0033] First, when a replica node detects that the proxy node of the group is malicious or faulty, it will notify the nodes in the group to vote by broadcasting a voting message <VOTE-CHANGE,v,k,i,p> in the group. v represents the current view number, k represents the group number, i represents the node number, and p represents the node with the highest reputation value in the group. After receiving the message, other nodes in the group verify the legitimacy of the message. If they agree to the voting request, they will broadcast the confirmation voting message to other nodes in the group.
[0034] Then, after receiving the message, other nodes in the group verify the legitimacy of the message. If they agree with the voting request, they will confirm the voting message <VOTE-CONFIRM,v new ,k,i,p>Broadcast to other nodes in the group, where v new Indicates the new view number;
[0035] Finally, when the nodes in the group receive voting confirmation messages for node p from more than two-thirds of the group nodes, node p is elected as the new proxy node of the group. The proxy node election is completed, the view is updated, and then the proxy nodes vote again. The node with the highest credibility value is elected as the new master node.
[0036] The beneficial effects of the above further scheme are as follows: by grouping nodes, the scope of node consensus is narrowed, and communication between nodes in the entire network is avoided, thereby reducing direct communication and information exchange between nodes, and greatly reducing communication overhead; using the reputation value of the node as the basis for election, highly credible nodes can be elected to lead the consensus, improve the reliability of the node, and reduce the probability of malicious nodes becoming proxy nodes, thereby avoiding frequent view changes and promoting the stability and credibility of the blockchain network.
[0037] Furthermore, in step 3 and step 4, the process includes:
[0038] Request phase: The client sends a <REQUEST,o,t,c> Sc message to the master node, where o represents the specific operation requested, the timestamp t, c is the client identifier, and the client's signature Sc on the message;
[0039] Propose phase: The master node verifies the REQUEST message. If the verification passes, the master node assigns a sequence number n to the request and constructs a <<PROPOSE,v,n,d>Sp,m> message to broadcast to the proxy node, where v is the view number, d is the summary of the request message m sent by the client, and Sp represents the signature of the master node p on the message. After this phase, the master node becomes the proxy node.
[0040] Prepare phase: The proxy node verifies the signature and content of the PROPOSE message. If correct, it broadcasts the <<PREPARE,v,n,d,k,i>si,m> message to the replica nodes in the group, where i is the node number, k is the number of the current group, and Si is the signature of node i on the PPREPARE message.
[0041] Confirm phase: The replica node verifies the validity of the PREPARE message. If the verification passes, it enters the Confirm phase. The replica node in the group returns a <COMFIRM,v,n,Si(d),k,i> message to the proxy node, where Si(d) represents the signature of the replica node i on the summary d.
[0042] Commit phase: The proxy node continuously receives CONFIRM messages from the replica nodes in the group and verifies the signatures. Only when the signature verification is correct, indicating that the voting content has not been tampered with by the proxy node, will the signature Si(d) be allowed to be added to the aggregation. When the number of messages that pass the verification exceeds two-thirds of the nodes in the group, these Si(d) are aggregated into a signature Sk through the BLS signature algorithm to reduce the number of signatures, and then the <COMMIT,v,n,Sk,k,i,L> message is broadcast to the replica nodes in the group for verification, where L represents the set of nodes i corresponding to Si(d), so that subsequent verifiers can use the corresponding public key to verify the aggregate signature;
[0043] Accept phase: The replica node verifies the aggregated signature Sk in the COMMIT message. If the verification is successful, it means that most nodes in the group have confirmed the request message. At this time, the request operation is executed locally and a <ACCEPT,v,n,d,k,i> Si message is sent to the proxy node.
[0044] Reply phase: If the proxy node receives and verifies the ACCEPT messages from more than two-thirds of the group nodes, it indicates that the group has reached consensus. The proxy node replies to the client with a <REPLY,v,t,c,i,r> message. When the client receives more than half of the REPLY messages with the same timestamp t and execution result r, the request response is considered successful, the scores of all nodes are updated, and the global consensus is completed.
[0045] The beneficial effects of the above further scheme are as follows: optimizing the communication structure through a one-to-all communication method and using proxy nodes to relay messages can reduce network congestion and delay, reduce network communication overhead, achieve linear communication complexity, and improve scalability. In addition, the use of aggregate signatures can prevent proxy nodes from doing evil, thereby reducing the amount of message transmission while also improving security. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A schematic diagram of a process flow of a grouped Byzantine fault-tolerant consensus method based on aggregate signatures provided in an embodiment of the present invention;
[0047] Figure 2 A schematic diagram of the election process of the group Byzantine fault-tolerant consensus method based on aggregate signatures provided in an embodiment of the present invention;
[0048] Figure 3 A schematic diagram of the consensus process of the grouped Byzantine fault-tolerant consensus method based on aggregate signatures provided in an embodiment of the present invention;
[0049] Figure 4 A comparison chart of communication overhead experimental results between an embodiment of the present invention and an existing design;
[0050] Figure 5 A comparison chart of consensus delay experimental results between an embodiment of the present invention and an existing design;
[0051] Figure 6 The figure is a comparison chart of throughput experimental results between the embodiment of the present invention and the existing design. DETAILED DESCRIPTION
[0052] The specific implementation modes of the present invention are further described in detail below in conjunction with the accompanying drawings and examples, but are not intended to limit the scope of the present invention.
[0053] like Figure 1 As shown, the group Byzantine fault-tolerant consensus method based on aggregate signatures provided in this embodiment, referred to as GABFT, includes the following steps:
[0054] Step 1: Evaluate the reputation of nodes based on their evaluation of historical transactions, and deduct the corresponding reputation value from nodes that fail or have malicious behavior;
[0055] In this step, the evaluation of the node reputation value includes four parts: direct reputation value, indirect reputation value, global reputation value and penalty mechanism;
[0056] The direct reputation value is the degree of trust between two nodes that have interacted, calculated based on the evaluation of historical transactions. The evaluation of transactions by nodes is divided into trust and distrust. Sat(i,j) represents the number of transactions in which node i trusts node j, and unsat(i,j) represents the number of transactions in which node i distrusts node j. The direct reputation value Sij of node i to node j is obtained by calculating the difference between the number of trust and the number of distrust. The larger the Sij obtained based on historical transactions, the higher the trust of node i to node j. The calculation formula is as follows:
[0057] S ij =(1-β)·sat(i,j)-β·unsat(i,j),0<β<1;
[0058] Among them, β = 0.7 is the weight of untrusted transactions in calculating the reputation value. A higher β value will amplify the impact of untrusted transactions on the direct reputation value, thereby reducing the credibility of the node;
[0059] In order to prevent malicious nodes from colluding with each other to give each other high scores to improve their reputation and give honest nodes low scores, thereby destroying the fairness of the system, it is necessary to standardize the direct reputation value. The specific method is as follows:
[0060]
[0061] in, In the early stage of the system, some nodes are considered reliable, called pre-trusted nodes. These nodes form a set P, and |P| is the number of pre-trusted nodes.
[0062] The role of indirect reputation value is to enable nodes to establish trust in other nodes without direct interaction through the trust transfer mechanism. This trust transfer mechanism can obtain indirect trust information of other nodes through iterative calculation, forming a globally consistent trust network.
[0063] If there is no direct interaction between node i and node k, the direct reputation value of the other party cannot be calculated. Therefore, it is necessary to calculate the indirect reputation value through the reference information provided by some intermediate node j. The calculation formula of the indirect reputation value is as follows:
[0064]
[0065] The global reputation value of a node is obtained by combining direct reputation value and indirect reputation value, and is the main basis for evaluating whether a node is trustworthy. The higher the global reputation value of a node, the higher its credibility. In order to avoid excessive reliance on pre-trusted nodes and enhance the influence of high-reputation nodes on global reputation, each node needs to help find the node with the highest reputation value based on the previous round of transactions. h Honest node h:
[0066]
[0067] Honest node h plays a key role in calculating the value of the propagation parameter a. Its reputation value dynamically affects the weight of a, and then affects the global reputation value. The global reputation value calculation formula is as follows:
[0068]
[0069] in,
[0070] During the master node and proxy node election phase, the election will be conducted based on the global reputation value of each node. The higher the global reputation value of the node, the higher the credibility.
[0071] The penalty mechanism is that when a node is detected to have a fault or malicious behavior, it will be punished to varying degrees. When the node does not respond for a long time and triggers the timeout mechanism, it indicates that the node has a fault, and the system will deduct the reputation value x from the faulty node; and when the node signature verification fails, it indicates that the node has malicious behavior, and the malicious node will be punished by deducting the reputation value y; usually y is set to be greater than x to strengthen the punishment of malicious nodes. In particular, when the reputation value of a node is reduced to less than the initial reputation value of 0.3, the system will set the node reputation value to 0, indicating that the node is deleted by the system. The formula for reputation penalty is as follows:
[0072]
[0073] in is the original reputation value, which is set to 0.5 here, t i ' represents the reduced reputation value, x is set to 0.1, and y is set to 0.2.
[0074] Step 2: Divide the consensus nodes into multiple groups, and then each group elects proxy nodes based on the reputation value of the nodes in the group. After the proxy nodes are selected, all proxy nodes vote to select the proxy node with the highest reputation value as the master node;
[0075] In this step, suppose there are k nodes in each group. To meet Byzantine fault tolerance, k>=4, then the number of groups is g=N / k, that is, the number of proxy nodes is g; first, each node votes to select the node with the highest reputation value in the group as the proxy node of this group, and then all proxy nodes vote to select the proxy node with the highest reputation value as the master node, specifically:
[0076] When a replica node detects that the proxy node of the group is malicious or faulty, it will notify the nodes in the group to vote by broadcasting a voting message <VOTE-CHANGE,v,k,i,p> in the group. The election message format is as follows: v represents the current view number, k represents the group number, i represents the node number, and p represents the node with the highest reputation value in the group.
[0077] After receiving the message, other nodes in the group verify the legitimacy of the message. If they agree to the voting request, they will confirm the voting message <VOTE-CONFIRM,v new ,k,i,p>Broadcast to other nodes in the group, where v new Indicates the new view number;
[0078] When a node in the group receives more than 2f k After the vote confirmation message for node p, f kis the number of Byzantine nodes in the group, then node p is elected as the new proxy node in the group. After the proxy node election is over, the proxy nodes vote again, and the node with the highest reputation value is elected as the new master node.
[0079] An implementation method of the election process, such as Figure 2 As shown, when the node in group 1 detects that the proxy node 3 of the group has failed, a voting election is initiated within group 1 to re-elect node 4 with the highest reputation value in the group as the new proxy node; after the proxy nodes in the group are updated, all proxy nodes vote to elect a new master node, among which node 4 has the highest reputation value among all proxy nodes, so it will be voted as the master node, thus completing an election process.
[0080] Step 3. Set the proxy node as a transfer station for message interaction. The master node first sends the message containing the client request to all proxy nodes. The proxy node broadcasts the message that requires consensus to the replica nodes in the group. The replica nodes in each group send voting messages to the proxy node. Then the proxy node aggregates the signatures from multiple nodes into a single signature and returns the aggregated signature for the replica node to verify. After the vote and signature verification are passed, the replica node executes the request locally and returns the message to the proxy node to complete the local consensus. Finally, each proxy node returns the execution result to the client to complete the global consensus.
[0081] In this step, the consensus of the entire network is divided into multiple independent consensus groups. First, the local consensus is completed within the group, and then the final result is reached through the consensus between the groups. The proxy node plays a key role as the collector and sender of the message, and the introduction of the aggregate signature provides security for it. Figure 3 As shown, the consensus process of GABFT in this embodiment includes:
[0082] Request phase: The client sends a <REQUEST,o,t,c> Sc message to the master node, where o represents the specific operation requested, the timestamp t can be used to prevent replay attacks, c is the client identifier, and the client's signature on the message Sc;
[0083] Propose phase: The master node verifies the REQUEST message. If the verification passes, the master node assigns a sequence number n to the request and constructs a <<PROPOSE,v,n,d>Sp,m> message to broadcast to the proxy node, where v is the view number, d is the summary of the request message m sent by the client, and Sp represents the signature of the master node p on the message. After this phase, the master node becomes the proxy node.
[0084] Prepare phase: The proxy node verifies the signature and content of the PROPOSE message. If correct, it broadcasts the <<PREPARE,v,n,d,k,i>si,m> message to the replica nodes in the group, where i is the node number, k is the number of the current group, and Si is the signature of node i on the PPREPARE message.
[0085] Confirm phase: The replica node verifies the validity of the PREPARE message. If the verification passes, it enters the Confirm phase. The replica node in the group returns a <COMFIRM,v,n,Si(d),k,i> message to the proxy node, where Si(d) represents the signature of the replica node i on the summary d.
[0086] Commit phase: The proxy node continuously receives CONFIRM messages from the replica nodes in the group and verifies the signatures. Only when the signature verification is correct, indicating that the voting content has not been tampered with by the proxy node, will the signature Si(d) be allowed to be added to the aggregation. When the number of messages that pass the verification exceeds two-thirds of the nodes in the group, these Si(d) are aggregated into a signature Sk through the BLS signature algorithm to reduce the number of signatures, and then the <COMMIT,v,n,Sk,k,i,L> message is broadcast to the replica nodes in the group for verification, where L represents the set of nodes i corresponding to Si(d), so that subsequent verifiers can use the corresponding public key to verify the aggregate signature;
[0087] Accept phase: The replica node verifies the aggregated signature Sk in the COMMIT message. If the verification is successful, it means that most nodes in the group have confirmed the request message. At this time, the request operation is executed locally and a <ACCEPT,v,n,d,k,i> Si message is sent to the proxy node.
[0088] Reply phase: If the proxy node receives and verifies the ACCEPT messages from more than two-thirds of the group nodes, it indicates that the group has reached consensus. The proxy node replies to the client with a <REPLY,v,t,c,i,r> message. When the client receives more than half of the REPLY messages with the same timestamp t and execution result r, the request response is considered successful, the scores of all nodes are updated, and the global consensus is completed.
[0089] The GABFT algorithm of the embodiment described has significant improvements in security, communication overhead, consensus delay, and throughput compared to the existing PBFT and GPBFT algorithms, and can be applied to large-scale networks.
[0090] Security analysis: This scheme evaluates the reputation of nodes based on the evaluation of historical transactions between nodes, and uses the reputation as the basis for election to reduce the probability of malicious nodes becoming proxy nodes, thereby improving the reliability of nodes. The introduction of the penalty mechanism further constrains the abnormal behavior of nodes. At the same time, the strategy of dividing multiple groups for consensus limits the impact of malicious nodes to a certain range. When no more than one-third of the groups have Byzantine problems, the consensus will be able to continue normally. Since the proxy node is set as the coordinator of the consensus process, the all-to-all broadcast between nodes is converted into one-to-all communication. Although this reduces the complexity of communication, it also makes the proxy node a key node. It is necessary to ensure the credibility and security of the proxy node. By using the BLS aggregate signature to merge multiple signatures into one signature, it not only reduces the amount of data transmitted, but more importantly, it can also prevent the proxy node from doing evil. After the replica node receives the aggregated message sent by the proxy node, it can verify the aggregated signature to determine whether the proxy node is honest; in addition, in order to prevent the replica node in the group from sending wrong messages to the proxy node, destroying the correctness of the aggregated signature and causing unnecessary waste of resources, the proxy node will be responsible for pre-verifying the voting messages from the nodes in the group before aggregating the messages. Only correct votes will be added to the aggregation process. Therefore, GABFT has a certain security guarantee.
[0091] Communication overhead analysis: Communication overhead mainly refers to the amount of communication generated by nodes during the consensus process. In the PBFT consensus process, communication mainly occurs in three stages: Pre-Prepare, Prepare, and Commit. Assuming that the total number of nodes in the system is N, in the pre-preparation stage, the master node needs to broadcast a message, and the number of communications at this time is N-1; in the preparation stage, each replica node needs to broadcast a message, and the number of communications in this stage is (N-1) 2 ; In the confirmation phase, each node needs to broadcast the message, and the number of communications is N(N-1). Therefore, the total communication complexity of the PBFT algorithm is calculated as follows:
[0092]
[0093] In the GABFT algorithm of this embodiment, it is assumed that there are k nodes in each group. To meet Byzantine fault tolerance, k>=4, then the number of groups is g=N / k, that is, the number of proxy nodes is g; in the Propose phase, the master node sends a message to the proxy node, and the number of communications required is g-1; in the four phases of Prepare, Confirm, Commit and Accept, the number of communications in each phase is g(k-1); therefore, the total communication complexity of the GABFT algorithm is calculated as follows:
[0094]
[0095] The communication complexity of the PBFT algorithm is O(N 2 ), and the improved GABFT algorithm reduces the complexity to O(N).
[0096] from Figure 4 It can be seen that when the number of nodes in the group k=5, as the number of nodes N increases, the communication complexity of the PBFT algorithm increases exponentially, while the communication complexity of the GPBFT and GABFT algorithms of the present invention increases linearly and is significantly smaller than that of PBFT. The reason for the sharp increase in the communication overhead of the PBFT algorithm is that the two rounds of many-to-many message broadcasts in its consensus process generate a huge amount of communication. The GABFT algorithm of the present invention reduces the number and scope of message propagation through aggregate signatures and one-to-many communication methods, so that the communication overhead is further reduced compared to GPBFT. The experimental results show that GABFT can significantly reduce the number of message transmissions and effectively reduce communication overhead.
[0097] Consensus delay analysis: Consensus delay refers to the time from the beginning of consensus to the time when consensus is reached. Delay is also an important performance indicator. It directly affects the throughput and response time of the blockchain system. Lower latency can make transactions confirmed faster in the blockchain network, improve the security and efficiency of the system. The calculation formula for consensus delay is Delay = T finish -T start , T finish Indicates the time of block confirmation, T start Indicates the time when the client sends the request. When the number of nodes in the group k = 5, Figure 5 It can be seen that when the number of nodes increases, the latency of the three algorithms increases accordingly, but the latency of the GABFT algorithm is always much smaller than that of the PBFT algorithm, slightly smaller than that of the GPBFT algorithm, and increases slowly. The consensus latency of the PBFT algorithm begins to increase sharply after 30 nodes. When the number of nodes increases to 80, the latency of the PBFT algorithm has exceeded 2000ms, while that of the GABFT algorithm remains below 500ms. The experimental results show that the GABFT algorithm of this embodiment has a lower latency and can meet the needs of large-scale networks.
[0098] Throughput analysis: Throughput refers to the number of transactions completed in a unit of time, generally expressed as TPS (Transaction Per Second). It is an important indicator for measuring the performance of consensus algorithms. The higher the throughput, the stronger the system's ability to process transactions. TPS can be expressed as Δt is the block time, Transactions ΔtIndicates the number of transactions completed within Δt. When the number of nodes in the group k = 5, Figure 6 It can be seen that with the continuous increase in the number of nodes, the TPS of GABFT, PBFT and GPBFT algorithms all show a downward trend, but the GABFT algorithm shows a higher throughput than the other two algorithms. When the number of nodes is 90, the throughput of GABFT can still be maintained at a high level. This is because the algorithm has a lower latency, so the number of transactions that can be processed per unit time is more. The experimental results show that in large-scale networks, the GABFT algorithm has more advantages in performance.
[0099] The above description is only a preferred embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical solutions and concepts of the present invention within the scope disclosed by the present invention, which belong to the protection scope of the present invention.
Claims
1. A group Byzantine fault-tolerant consensus method based on aggregate signature, characterized in that: The method comprises: Step 1: Evaluate the reputation of nodes based on their evaluation of historical transactions, and deduct the corresponding reputation value from nodes that fail or have malicious behavior; Step 2: Divide the consensus nodes into multiple groups, and then each group elects proxy nodes based on the reputation value of the nodes in the group. After the proxy nodes are selected, all proxy nodes vote to select the proxy node with the highest reputation value as the master node; Step 3. Set the proxy node as a transit station for message interaction. The master node first sends the message containing the client request to all proxy nodes. The proxy node broadcasts the message that requires consensus to the replica nodes in the group. The replica nodes in each group send voting messages to the proxy node. The proxy node then aggregates the signatures from multiple nodes into a single signature and returns the aggregated signature for the replica node to verify. After the vote and signature verification are passed, the replica node executes the request locally and returns the message to the proxy node to complete the local consensus. Finally, each proxy node returns the execution result to the client to complete the global consensus.
2. According to claim 1, the group Byzantine fault-tolerant consensus method based on aggregate signature is characterized in that: In step 1, the evaluation of the node reputation value includes four parts: direct reputation value, indirect reputation value, global reputation value and penalty mechanism.
3. According to claim 2, the group Byzantine fault-tolerant consensus method based on aggregate signature is characterized in that: The direct reputation value is the degree of trust between two nodes that have interacted, calculated based on the evaluation of historical transactions. The evaluation of transactions by nodes is divided into trust and distrust. Sat(i, j) represents the number of transactions in which node i trusts node j, and unsat(i, j) represents the number of transactions in which node i distrusts node j. The direct reputation value S of node i to node j is obtained by calculating the difference between the trust number and the distrust number. ij , S obtained based on historical transactions ij The larger it is, the higher the trust of node i in node j is. The calculation formula is as follows: S ij =(1-β)·sat(i,j)-β·unsat(i,j),0<β<1; Among them, β is the weight of untrusted transactions in calculating the reputation value. A higher β value will amplify the impact of untrusted transactions on the direct reputation value, thereby reducing the credibility of the node. In order to prevent malicious nodes from colluding with each other to give each other high scores to improve their reputation values and give honest nodes low scores, thereby destroying the fairness of the system, it is necessary to standardize the direct reputation value. The specific method is as follows: in, In the early stage of the system, some nodes are considered reliable, called pre-trusted nodes. These nodes form a set P, and |P| is the number of pre-trusted nodes.
4. According to claim 2, the group Byzantine fault-tolerant consensus method based on aggregate signature is characterized in that: The indirect reputation is to establish trust between nodes through the trust propagation mechanism when there is no direct interaction between nodes. This trust propagation mechanism implemented by iterative calculation allows nodes to collect indirect trust information about other nodes, thereby forming a globally consistent trust network. The calculation formula of the indirect reputation value is as follows: There is no direct interaction between node i and node k, and the indirect reputation value is calculated through the reference information provided by the intermediate node j.
5. According to claim 2, the group Byzantine fault-tolerant consensus method based on aggregate signature is characterized in that: The global reputation value is obtained by combining direct reputation value and indirect reputation value, and is the main basis for evaluating whether a node is trustworthy. The higher the global reputation value of a node, the higher its credibility. Each node finds the node with the highest reputation value based on the previous round of transactions. h The honest node h: Honest node h plays a key role in calculating the value of the propagation parameter a. Its reputation value dynamically affects the weight of a, and then affects the global reputation value. The global reputation value calculation formula is as follows: in, During the proxy node and master node election stage, the election will be conducted based on the global reputation value of each node. The higher the global reputation value of the node, the higher the credibility.
6. According to claim 2, the group Byzantine fault-tolerant consensus method based on aggregate signature is characterized in that: The penalty mechanism is that when a node is detected to have a fault or malicious behavior, it will be punished to varying degrees. When the node does not respond for a long time and triggers the timeout mechanism, it indicates that the node has a fault, and the system will deduct a reputation value x from the faulty node; and when the node signature verification fails, it indicates that the node has malicious behavior, and the malicious node will be punished by deducting a reputation value y; usually y is set to be greater than x to strengthen the punishment of malicious nodes. In particular, when the reputation value of a node is reduced to less than the initial reputation value of 0.3, the system will set the node reputation value to 0, indicating that the node is deleted by the system. The formula for reputation penalty is as follows: in is the original reputation value, t i ' represents the reduced reputation value, x and y represent penalty values ranging from 0 to 1, which are set according to the application scenario.
7. According to claim 1, the group Byzantine fault-tolerant consensus method based on aggregate signature is characterized in that: In step 2, after the consensus nodes are divided into multiple groups, the nodes in each group first vote to select the node with the highest reputation value in the group as the proxy node of the group, and then all proxy nodes vote to select the proxy node with the highest reputation value as the master node, specifically: First, when a replica node detects that the proxy node of the group is malicious or faulty, it will notify the nodes in the group to vote by broadcasting a voting message <VOTE-CHANGE,v,k,i,p> in the group. v represents the current view number, k represents the group number, i represents the node number, and p represents the node with the highest reputation value in the group. After receiving the message, other nodes in the group verify the legitimacy of the message. If they agree to the voting request, they broadcast the confirmation voting message to other nodes in the group. Then, after receiving the message, other nodes in the group verify the legitimacy of the message; If the voting request is approved, the voting message will be confirmed <VOTE-CONFIRM,v new ,k,i,p>Broadcast to other nodes in the group, where v new Indicates the new view number; Finally, when the nodes in the group receive voting confirmation messages for node p from more than two-thirds of the group nodes, node p is elected as the new proxy node of the group. The proxy node election is completed, the view is updated, and then the proxy nodes vote again. The node with the highest credibility value is elected as the new master node.
8. According to claim 1, the group Byzantine fault-tolerant consensus method based on aggregate signature is characterized in that: In step 3, the consensus process is specifically as follows: Request phase: The client sends a <REQUEST,o,t,c> Sc message to the master node, where o represents the specific operation requested, the timestamp t, c is the client identifier, and the client's signature Sc on the message; Propose phase: The master node verifies the REQUEST message. If the verification passes, the master node assigns a sequence number n to the request and constructs a <<PROPOSE,v,n,d>Sp,m> message to broadcast to the proxy node, where v is the view number, d is the summary of the request message m sent by the client, and Sp represents the signature of the master node p on the message. After this phase, the master node becomes the proxy node. Prepare phase: The proxy node verifies the signature and content of the PROPOSE message. If correct, it broadcasts the <<PREPARE,v,n,d,k,i>si,m> message to the replica nodes in the group, where i is the node number, k is the number of the current group, and Si is the signature of node i on the PPREPARE message. Confirm phase: The replica node verifies the validity of the PREPARE message. If the verification passes, it enters the Confirm phase. The replica node in the group returns a <COMFIRM,v,n,Si(d),k,i> message to the proxy node, where Si(d) represents the signature of the replica node i on the summary d. Commit phase: The proxy node continuously receives CONFIRM messages from the replica nodes in the group and verifies the signatures. Only when the signature verification is correct, indicating that the voting content has not been tampered with by the proxy node, will the signature Si(d) be allowed to be added to the aggregation. When the number of messages that pass the verification exceeds two-thirds of the nodes in the group, these Si(d) are aggregated into a signature Sk through the BLS signature algorithm to reduce the number of signatures, and then the <COMMIT,v,n,Sk,k,i,L> message is broadcast to the replica nodes in the group for verification, where L represents the set of nodes i corresponding to Si(d), so that subsequent verifiers can use the corresponding public key to verify the aggregate signature; Accept phase: The replica node verifies the aggregated signature Sk in the COMMIT message. If the verification is successful, it means that most nodes in the group have confirmed the request message. At this time, the request operation is executed locally and a <ACCEPT,v,n,d,k,i> Si message is sent to the proxy node. Reply phase: If the proxy node receives and verifies the ACCEPT messages from more than two-thirds of the group nodes, it indicates that the group has reached consensus. The proxy node replies to the client with a <REPLY,v,t,c,i,r> message. When the client receives more than half of the REPLY messages with the same timestamp t and execution result r, the request response is considered successful, the scores of all nodes are updated, and the global consensus is completed.
Citation Information
Cited By
PBFT consensus election method and device based on aggregated signature voting set
CN119814322A
PBFT consensus election method and device based on aggregated signature voting set
CN119814322B
Block chain security fragmentation method and system based on reputation mechanism
CN120811574A
A Reputation-Based Blockchain Secure Sharding Method and System
CN120811574B
