Anonymous communication system based on hybrid asynchronous Byzantine fault-tolerant protocol
By introducing the hybrid asynchronous Byzantine fault-tolerant protocol, threshold encryption and leader mechanism into the anonymous communication system, the shortcomings of traditional systems in fault handling and privacy protection are solved, and efficient and secure anonymous communication is achieved.
Patent Information
- Application Number
- CN202411026407.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-07-30
AI Technical Summary
Traditional anonymous communication systems lack robustness when dealing with faulty nodes and cannot effectively detect and respond to faults, resulting in information loss or confusion, and cannot fully protect user privacy and security.
An anonymous communication system based on a hybrid asynchronous Byzantine fault-tolerant protocol is adopted to ensure the security and consistency of message transmission through threshold encryption and asynchronous BFT protocols. A leader mechanism and a reputation mechanism are introduced to dynamically update nodes and select high-quality nodes to improve the fault tolerance of the system. sex and flexibility.
It achieves strong system security and stability, ensures the confidentiality and integrity of data transmission, avoids single points of failure, improves the scalability and communication efficiency of the system, and balances performance and privacy protection.
Smart Images

Figure CN118555145B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of communication security, and in particular relates to an anonymous communication system based on a hybrid asynchronous Byzantine fault-tolerant protocol. Background Art
[0002] Traditional anonymous communication systems lack the robustness they should have when dealing with faulty nodes. They can only detect potential failures using methods such as zero-knowledge proofs, trap messages, or random partial checks during message delivery. For example, a system like cMix, even if it is online during the pre-computation phase, will be offline during the real-time phase, which will seriously affect the efficiency and reliability of the system and may cause information loss or confusion. At the same time, most traditional anonymous communication systems only have the ability to detect failures, but lack an effective penalty mechanism for failures, which means that failures may be ignored or passively accepted. Such a situation may have a negative impact on user trust and communication security, and hinder the further development of the system. Therefore, modern anonymous communication systems need more complete mechanisms to deal with failures and ensure the stability and reliability of communications.
[0003] Existing technical solution: Network proxy: When Internet users communicate over the network, the message data packets carry the corresponding IP addresses. Once these data packets are obtained by the monitoring party, they may bring unpredictable risks to the users. In order to increase the security of Internet access, users can usually use network proxies to hide their real IP addresses, thereby protecting the privacy of network communications. Disadvantages of the solution: Although the use of proxies can hide the user's real address to a certain extent and reduce threats to communication security, it cannot completely ensure the security of network communications. When using a proxy for network communications, the security of the communication depends largely on the reputation and security assurance capabilities of the proxy service provider. All communication content that passes through the proxy must pass through the proxy server, which means that the proxy server can intercept the user's communication content and analyze it. Therefore, the security assurance capabilities of the proxy server directly affect the security of the user's network communication.
[0004] Common anonymous systems, such as cMix, Atom, Stadium, and XRD, have all shown excellent performance. These systems rely on different methods to achieve robustness, for example, random partial checks and trap messages are used in cMix, non-interactive zero-knowledge proofs (NIZK) and trap messages are used in Atom, and NIZK is also used in Stadium and XRD.
[0005] Random Partial Check (RPC): In a random partial check (RPC) hybrid network, hybrid nodes generate strong probabilistic evidence of their correct operation in the form of partially revealing the relationship between their input / output batches. For example, if a node has n inputs, it can choose to randomly select a portion of them and disclose their corresponding outputs, allowing probabilistic verification of the correct operation of each node. This approach enables each node to provide a certain degree of proof of the correctness of its operation, although this is not a completely certain proof, but it still has a certain degree of reliability. Disadvantages of the scheme: RPC technology only provides probabilistic guarantees on the correctness of the output batch of the hybrid network, and cannot effectively detect tampered hybrid nodes. When a hybrid node is attacked or manipulated, it may cause incorrect output batches, which may not be discovered by RPC technology. Therefore, although RPC technology can provide a certain degree of verification, there are still certain challenges in ensuring the security of the hybrid network.
[0006] Trap messages: Trap messages are used to test the reliability of the hybrid network by sending messages through the hybrid cascade and verifying that the messages are displayed correctly at the output. If the message fails to display correctly, the user will know that at least one node has tampered with the corresponding message, indicating that there is at least one malicious node in the hybrid cascade. Disadvantages of the scheme: Using this method alone, it is impossible to determine the source of the failure, so the system may need to send a large number of trap messages to provide sufficient probabilistic guarantees to detect malicious behavior.
[0007] Traditional communication methods often cannot fully guarantee the privacy and security of users. Anonymous communication technology is becoming more and more important, but traditional anonymous communication schemes have some problems, such as being unable to solve single point failures. Therefore, a more reliable and robust anonymous communication system is needed. Summary of the invention
[0008] In order to solve the above technical problems, the present invention proposes an anonymous communication system based on a hybrid asynchronous Byzantine fault-tolerant protocol, aiming to solve the deficiencies of the prior art in terms of fault tolerance, configurability and flexibility.
[0009] To achieve the above object, the present invention provides an anonymous communication system based on a hybrid asynchronous Byzantine fault-tolerant protocol, comprising:
[0010] A plurality of asynchronous groups are sequentially cascaded, wherein the asynchronous groups contain a plurality of nodes, wherein the nodes include a master node and a slave node, wherein a public key corresponding to the asynchronous group and a private key corresponding to the node are generated by a threshold encryption method;
[0011] Among them, the sender encrypts the plaintext and the master node address in sequence through the public key corresponding to the sender and the asynchronous group to generate ciphertext, and decrypts the ciphertext layer by layer through several asynchronous groups in sequence and transmits it to the receiving end. In the transmission process of a single asynchronous group, the master node in the current asynchronous group receives the ciphertext or the plaintext broadcast by the previous asynchronous group and broadcasts it to the slave node. The nodes in the current asynchronous group execute the asynchronous BFT protocol. After executing the asynchronous BFT protocol, the correct node will deliver the same message. The correct node collaboratively decrypts the same information to generate the decrypted plaintext of the current asynchronous group, and broadcasts the decrypted plaintext of the current asynchronous group to the next asynchronous group or the receiving end; the same message is the ciphertext without the master node address in the current asynchronous group or the plaintext broadcast by the previous asynchronous group;
[0012] In the asynchronous group, the master node is updated according to the leader mechanism, and the nodes in the asynchronous group are dynamically updated according to the reputation mechanism.
[0013] Optionally, the asynchronous BFT protocol is composed of Byzantine reliable broadcast and asynchronous binary protocol.
[0014] Optionally, in the Byzantine reliable broadcast, when two correct replicas deliver two messages, the two messages are the same; when a correct replica delivers a message, all correct replicas deliver the same message; when the correct sender broadcasts a message, all correct replicas deliver the same message; each correct replica delivers the information delivered from the sender at most once, and if the sender is a correct replica, the information was previously broadcast by the sender, wherein the correct replica is the correct node and the sender is the master node.
[0015] Optionally, in the asynchronous binary protocol, each replica, i.e., node, has a binary value as an initial input value; when all correct replicas have the same initial input value, the correct replicas will pass the same initial input value; if a correct replica and another correct replica pass the initial input value, the initial input values of the two correct replicas are the same; all correct replicas ultimately pass the initial input value with probability 1.
[0016] Optionally, the process of updating the master node according to the leader mechanism includes:
[0017] Select one node as the master node and the rest as slave nodes. Assign a number to each node and all nodes maintain a node information list.
[0018] The slave node detects the status of the master node by sending heartbeat information to the master node regularly. If the node does not receive the heartbeat information from the master node within a fixed time, it is considered that the master node is down and requests to replace the master node.
[0019] The slave node broadcasts a request for node change message to all nodes. After receiving a number of request for node change messages greater than the number of malicious nodes, the new leader node considers that a consensus has been reached on the node change. The new leader node broadcasts a response message;
[0020] After receiving the response message, the slave node verifies the integrity of the message. After the verification is passed, all nodes send the master node change information to the management center. After receiving enough messages, the management center updates the node information list, and the new master node starts working to realize the master node update.
[0021] Optionally, the process of dynamically updating nodes in an asynchronous group according to a reputation mechanism includes:
[0022] The node reputation is scored by the node scoring method to generate the node score, where the node score calculation formula is: Score = S + γ1*A-γ2*B, where S represents the existing score, A is the number of successful communication participations, B is the number of failures, γ1 and γ2 are the weight parameters corresponding to the number of successes and failures, respectively, and γ2 is greater than γ1;
[0023] Update node scores periodically. When updating, store the node scores and clear the scores of inactive nodes directly.
[0024] In the node information list, the node scores are sorted from high to low, and several nodes with the highest scores are selected as candidate high-score nodes. The candidate high-score nodes are used as nodes of the new asynchronous group and the local list of the nodes is updated, and the network settings of the nodes are reconfigured.
[0025] Optionally, the node information list includes node identity, status and node score.
[0026] Compared with the prior art, the present invention has the following advantages and technical effects:
[0027] Strong system security: This technical solution uses an advanced threshold encryption scheme to ensure the security of message transmission. Attackers cannot obtain plaintext information before the decryption share is made public, which improves the confidentiality of data transmission. The asynchronous BFT protocol ensures the reliability and consistency of the system. Even in the case of Byzantine errors, the system can reach a consensus and ensure the integrity and availability of data.
[0028] Reliable system stability: The leader mechanism of this technical solution is similar to PBFT. The master node replacement protocol ensures the continuous operation of the system in the event of node failure, avoids single point failure, and improves the fault tolerance of the system. The reputation mechanism introduces node scoring and dynamic update mechanisms, enabling the system to dynamically adjust nodes and select high-quality nodes to participate in communication, thereby improving the stability and security of the system.
[0029] Flexibility and scalability: This technical solution enables the system to flexibly respond to node changes and load changes through dynamic updates of nodes in each group and the master node election mechanism, ensuring the scalability and adaptability of the system. The node scoring update and selection mechanism enables the system to dynamically adjust nodes according to actual conditions, adapt to the needs of different scenarios, and improve the flexibility and availability of the system.
[0030] Efficient performance: This technical solution uses the asynchronous BFT protocol and leader mechanism, as well as the strategy of nodes selecting high-quality nodes in the reputation mechanism, which can effectively reduce communication delays and resource consumption, and improve the communication efficiency and performance stability of the system.
[0031] Strict privacy protection: The threshold encryption scheme and the secure communication mechanism between nodes adopted by this technical solution ensure the privacy of message transmission, enabling the system to operate effectively in anonymous communication scenarios, avoiding user information leakage, and thus providing more reliable protection for user information security.
[0032] Balancing performance and privacy: This technical solution successfully solves the problem of balancing performance and privacy. It allows efficient anonymous communication while providing strong privacy protection, finding a feasible balance between the two. This provides flexibility and practicality for a wide range of application scenarios.
[0033] To sum up, the technical solution of the present application has many significant advantages and positive effects. Through the design and implementation of multiple mechanisms, the technical solution improves the security, stability, flexibility and communication efficiency of the system, while protecting the user's privacy information. It has broad application prospects and positive social effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0035] Figure 1 This is a schematic diagram of the message flow structure of an embodiment of the present invention;
[0036] Figure 2 4 is a system flow chart of an embodiment of the present invention. DETAILED DESCRIPTION
[0037] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0038] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0039] The present invention designs and constructs a brand-new anonymous communication system, the core part of which is a plurality of asynchronous groups AsynGroups supported by an asynchronous BFT protocol. These asynchronous groups AsynGroups are interconnected in a cascade structure, and each asynchronous group AsynGroup executes an asynchronous BFT protocol and can tolerate the existence of (n-1) / 3 faulty nodes. In other words, each group has fault tolerance, ensuring that the system can still maintain stable operation when facing a certain number of faulty nodes, and cannot destroy the anonymity of the system. Within the AsynGroups, regardless of the behavior of the faulty nodes, all correct nodes can continue to operate normally, ensuring the stability and reliability of the entire system. On the other hand, in order to further ensure the reliability of the system, the present invention proposes a reputation-based mechanism. Through this mechanism, users can independently select appropriate AsynGroups based on the reputation of AsynGroups (such as behavioral performance), cost, bandwidth and other factors, so as to meet their specific needs and ensure the security and reliability of communication.
[0040] In view of the shortcomings of the above-mentioned prior art, the purpose of the present invention is to provide a more reliable and robust anonymous communication system solution, aiming to solve the shortcomings of the prior art in terms of fault tolerance, configurability and flexibility. The purpose of the present invention is described in detail below:
[0041] System fault tolerance: Fault tolerance is a crucial aspect in anonymous communication systems. Traditional anonymous communication systems often show shortcomings when facing node failures and downtime, which may cause communication interruptions or data loss, thereby affecting the stability and reliability of the system. The purpose of this invention is to ensure that the system can maintain the stability and reliability of communication when facing a certain number of faulty nodes by introducing the innovative fault tolerance mechanism of AsynGroups supported by the asynchronous BFT (Byzantine Fault Tolerance) protocol, providing reliable protection for the communication security of users.
[0042] Leader mechanism: The present invention designs a flexible leader mechanism, which selects a leader node, i.e., a master node, in an AsynGroup to interact with other AsynGroups. The purpose of the present invention is to simplify communication management, improve system efficiency, enhance fault tolerance, and make the system more flexible and adaptable to changes through a leader mechanism. The leader node is responsible for coordinating and managing inter-group communications, reducing the complexity and overhead of communications, while improving the response speed and efficiency of the system. In addition, the leader selection mechanism can also detect and handle the failure of the leader node in a timely manner, ensure the continuity and stability of communications, and make the system more tolerant to node failures.
[0043] System flexibility: In order to improve the flexibility and configurability of the anonymous communication system, the present invention designs a reputation-based node selection mechanism, in which the most suitable nodes are selected to participate in anonymous communication in these asynchronous groups AsynGroups. Through reputation evaluation, the present invention can perform a scientific and detailed dynamic evaluation of the performance of each node, and select the best nodes to be configured into AsynGroups according to their reputation scores. The purpose of the present invention is to ensure that the system can dynamically adapt to different network environments and workloads during operation through this flexible node selection mechanism, so that the system can maintain stable operation in the face of changes in network topology, node failures or increased loads, improve the robustness of the system, and optimize the performance of the system, so that it can more effectively utilize resources and improve communication efficiency.
[0044] The main purpose of the present invention is to provide a more reliable and robust anonymous communication system to address the shortcomings and deficiencies of the prior art. By introducing the AsynGroups mechanism supported by the asynchronous BFT protocol, the system is able to maintain the stability and reliability of communication in the face of node failures. In addition, by designing a flexible leader mechanism and a reputation-based node selection mechanism, the system can dynamically adapt to different network environments and workloads, improving the robustness and performance stability of the system. Therefore, the present invention aims to build a more robust and flexible anonymous communication system to provide users with more reliable communication guarantees and more efficient communication services.
[0045] The specific technical solution of the present invention mainly involves the following technologies: threshold encryption, asynchronous BFT protocol, leader mechanism and reputation mechanism, such as Figure 2 As shown in the system flow chart, the system solution is introduced as follows:
[0046] Threshold encryption: The threshold encryption scheme TPKE is an encryption method that allows any party to encrypt a message with a master public key so that network nodes must work together to decrypt it. Once f+1 (f is the number of faulty nodes) correct nodes calculate and publish the decryption share of the ciphertext, the plaintext can be recovered. Before at least one correct node shows its decryption share, the attacker knows nothing about the plaintext. The threshold encryption scheme of the present invention provides the following interface:
[0047] 1.TPKE:Setup(1 λ )→pk,,{sk i}, set the λ value of 1, λ is a constant, generate the encrypted public key pk and the private key sk of each node i gather.
[0048] 2. TPKE: Enc(pk,m)→C, encrypt the plaintext message m into ciphertext C using pk.
[0049] 3. TPKE: DecShare(sk i ,c)→σ i According to sk i Generate the decrypted i-th share σ i .
[0050] 4. TPKE:Dec(pk,C,{i,σ i})→m, collect a set of at least f+1 decrypted shares {i,σ i} and PK, decrypt the ciphertext c into plaintext m.
[0051] Asynchronous Byzantine Fault Tolerance (ABFT): The asynchronous BFT protocol consists of Byzantine Reliable Broadcast (RBC) and Asynchronous Binary Protocol (ABA).
[0052] Byzantine Reliable Broadcast (RBC): In RBC, a sender (i.e., one of the replicas, in the technical solution of the present invention, the leader node, i.e., the master node) sends a message to all other replicas (slave nodes). An asynchronous RBC protocol satisfies the following properties:
[0053] Consistency: If two correct replicas deliver two messages m and m', then m=m'.
[0054] Comprehensiveness: If some correct replica delivers a message m, then all correct replicas deliver m.
[0055] Validity: If a correct sender broadcasts a message m, then all correct replicas deliver m.
[0056] Completeness: A message m delivered from a sender p is delivered at most once by each correct replica. If p is correct, then m was broadcasted by p before.
[0057] Asynchronous Binary Protocol (ABA): In the ABA protocol, each replica has a binary value as initial input v input (Also called voting). ABA allows replicas to agree on the value of a single bit and communicate that value. ABA satisfies the following properties:
[0058] Validity: If all correct replicas have the same input value v, then the correct replica will pass v.
[0059] Consistency: If one correct replica delivers v and another correct replica delivers v', then v = v'.
[0060] Termination: All correct replicas eventually deliver a binary value with probability 1.
[0061] Leader mechanism: A leader mechanism similar to PBFT (Practical Byzantine FaultTolerance) is designed in the invention. One node is used as the master node, and the rest of the nodes are used as slave nodes. The present invention assigns an integer number "Node ID" to each node, and all replicas (nodes) maintain a node information list, as shown in Table 1.
[0062] Table 1
[0063] Node ID IP Status Score 1 … Leader 5 2 … Common 5 3 … Common 5 4 … Common 5 … … … …
[0064] The slave node can detect whether the master node is down through the heartbeat mechanism. When an abnormal situation occurs, the backup node independently announces that it wants to change the master node to the next node, triggering the master node replacement protocol to replace the new master node. The master node change process reaches a certain consensus to ensure that the new master node is legal.
[0065] Master node replacement protocol steps:
[0066] AsynGroup relies on the normal operation of the master node. To prevent master node failure, a master node replacement protocol is designed. Since the master node is the highest quality node in the system, its malicious behavior is not considered.
[0067] A. Monitoring phase: The master node k regularly sends heartbeat messages to other nodes in the AsynGroup, declaring itself as the master node, while other non-master nodes wait to receive heartbeat messages. In some cases, these messages may not be received, which indicates that the master node k may have failed. If node i does not receive the heartbeat message from the master node k within a certain period of time, it is considered that the master node has failed and initiates a master node replacement request.
[0068] B. Broadcast phase: Node i broadcasts a message requesting node replacement to all replicas in the AsynGroup.<j,k,i> , where j is the node ID of the next candidate node (with the highest Score). If there are nodes with the same score, the node with the smaller node ID is preferred.
[0069] C. Update phase: After receiving (f+1) request node replacement messages, the new master node j believes that a consensus on node replacement has been reached. The new master node j broadcasts a reply message<j,k,G> , notifying all nodes of the replacement of the master node. This message includes the specific information G of the new master node j. All nodes in the AsynGroup update their local master node information list accordingly.
[0070] All nodes send master node replacement information to the system management center<j,k,i> After the system receives (2f+1) replacement messages, it updates the node information list, sets the score of the failed master node k to zero, and starts the new master node. The communication is interrupted during the protocol execution, and a new communication request will be started after the protocol ends.
[0071] Each asynchronous group will communicate with each other through the elected leader node, i.e., the master node. The master node election process of each group is carried out within the group, i.e., each group A, B, and C has a master node A i , B i , C i In the present invention, 4 nodes (N=4) are configured in each group. The nodes participating in the communication in each group are not fixed but dynamically updated.
[0072] Reputation mechanism: For the system, it is necessary to realize dynamic node updates. Dynamic updates of nodes participating in anonymous communication can increase the security of the system and avoid fatigue and resource consumption caused by nodes being active for a long time. However, there is no specific standard to judge the selection priority of nodes. Therefore, in the protocol of the present invention, a mechanism is designed to solve this problem. We define the reputation score (RS), which is an indicator to measure the reputation of a node. RS is an integer between 0 and 10. In the protocol, each node needs to maintain a node information list locally, as shown in Table 1. The list records the identity ID, geological IP, status and score of all nodes. The RS, i.e., Score, of all nodes is initialized to 5, and dynamically updated according to the reputation scores of these nodes. At the same time, a regular score update mechanism is set to update the node score every certain period of time (such as 24 hours). The update frequency can be adjusted according to actual conditions.
[0073] The design implementation steps are as follows:
[0074] 1. Node scoring method: It mainly considers the credibility of the node, that is, the node's past communication record, including the number of successful communications and the number of failures to set the scoring algorithm. Assume that the current score of node i is S, the number of successful communications is A, and the number of failures is B. γ1 and γ2 are the weight parameters corresponding to the number of successes and failures, respectively. γ2 is much larger than γ1. The penalty intensity of malicious nodes can be adjusted by the weight parameter γ2 corresponding to the number of failures. The scoring calculation formula is:
[0075] Score = S + γ1*A–γ2*B
[0076] 2. Node score update: The system performs a node score update every 24 hours. During the update, the system collects real-time data for each node, including the number of successful and failed communications. The new score of each node is calculated according to the scoring algorithm and stored in the system database. If a node is inactive for a long time, its score is directly reset to zero.
[0077] 3. Node selection mechanism: The system periodically evaluates the scores of all nodes and sorts the nodes according to the scores, from high to low. Several nodes with the highest scores are selected as candidate high-scoring nodes, which will become nodes of AsynGroups. After each score update, the selected new high-scoring nodes are added to the system as nodes of AsynGroups. Each node updates its local list based on the system information. After the update, the system reconfigures the node's network settings to ensure that the node can connect to the system normally.
[0078] According to the communication requirements, a large number of nodes that can initially participate in the communication are constructed. All nodes have the same initial score. The best few nodes are selected from all nodes as nodes of AsynGroups to participate in a round of communication. Generally, no malicious behavior occurs in all nodes, and the node score is on an upward trend. However, when a node exhibits malicious behavior, that is, a number of failures occurs, due to the penalty coefficient, that is, the weight parameter γ2 corresponding to the number of failures, the score of the node with malicious behavior will drop lower than the initial score to avoid selecting it for communication again, and then select the nodes with the highest scores in the score sorting as nodes of AsynGroups for communication. In the score sorting, nodes with the same score are sorted from small to large according to the node ID.
[0079] Through the above implementation steps, the system can dynamically update the nodes participating in anonymous communication and select high-quality nodes based on the reputation points of the nodes, thereby improving the security and performance stability of the system.
[0080] The communication steps of the system of the present invention are as follows:
[0081] To describe the system in a simple way, assume that there are two clients in the system, Alice as the sender, Bob as the receiver, and three asynchronous groups (Groups A, B, and C).
[0082] System settings: The system inputs a security parameter λ. During the key generation phase, each node in the AsynGroup generates its own private key sk i , each asynchronous group generates a public key pk, where sk i and pk come from threshold encryption TPKE. The master node A of group A, B, C i , B i , C i and Bob's addresses are A1, A2, A3 and A r , Alice and Bob share a symmetric key E k .
[0083] 1. Alice obtains relevant parameters from the system and encrypts the message m. Alice first uses E k Encrypt the message m, and then use the threshold encryption public key pk corresponding to groups C, B, and A in turn C , pk B and pk A Encrypt the message. Ciphertext C:
[0084] C=pk A (pk B (pk C (E k (m),A r ),A3),A2),A1
[0085] 2. Since Alice knows the master node A of group A i Alice first sends the ciphertext C to A according to address A1. i When the master node A in group A i When C is received from Alice, it is broadcast to other nodes in group A. The nodes in group A first execute the asynchronous BFT protocol.
[0086] At the end of the asynchronous BFT protocol, every correct node in group A maintains the same message C:
[0087] C=pk A (pk B (pk C (E k (m),A r ),A3),A2)
[0088] 3. Each correct node can use the threshold encryption scheme to generate a decryption share σ iFinally, each correct node can combine the decrypted shares to generate the plaintext with the threshold encryption scheme. Plaintext C in group A with the threshold encryption scheme A =pk B (pk C (E k (m),A r ),A3),A2). The message flow in group A is as follows Figure 1 As shown, P i represents the i-th node, RBC i represents the i-th Byzantine reliable broadcast process, ABA i Indicates the i-th asynchronous binary protocol, "1" and "0" respectively indicate whether the status of other nodes is successfully received
[0089] 4. When the node in group A completes the above steps, A i Broadcast Message <pk B (pk C (E k (m),A r ),A3)>, broadcast to the master node B of group B according to address A2 i .
[0090] 5. Primary Node B in Group B i From A i When the message is received, it is broadcast to other nodes in group B, and the nodes in group B begin to execute the asynchronous BFT protocol, similar to the steps executed by group A. Finally, each correct node in group B maintains the same plaintext message C B =pk C (E k (m),A r ),A3, master node B i Broadcast according to address A3 <pk C (E k (m),A r )> to the master node C of group C i .
[0091] 6. Group C also decrypts the message and obtains message C C =E k (m),A r , then the master node C in group C i According to the recipient's address A r ,Will <E k (m)>Sent to receiver Bob.
[0092] 7. When Bob obtains the ciphertext E k (m), E will be used k Decrypt it to obtain message m, and anonymous communication is completed.
[0093] The above is the basic design of the system of the present invention. The adversary can passively listen to the channel, but he cannot inform the designated receiver of the message from the specific sender.
[0094] The key structure of the product of the present invention includes the following key components:
[0095] Threshold encryption and asynchronous BFT protocol scheme: The threshold encryption scheme (TPKE) and the asynchronous BFT protocol are key components to ensure system security and consistency, and are applied in anonymous communication systems. The threshold encryption scheme TPKE allows any party to encrypt messages using the master public key, but requires multiple nodes to work together to decrypt. Its interface includes the Setup function for generating public and private key sets, the Enc function for encryption, the DecShare function for generating decryption shares, and the Dec function for decrypting ciphertext. This encryption method ensures the confidentiality of messages during transmission, and protects the security of messages even if some nodes are attacked or fail. In the asynchronous BFT protocol, RBC ensures the correct broadcast and delivery of messages, and comprehensively, effectively and completely guarantees the correctness of messages. ABA ensures that the system can still reach consistency when facing Byzantine nodes, ensuring that nodes can reach a consistent binary value transmission.
[0096] Leader mechanism solution: The leader mechanism plays a key role in the system of this design. Each node is assigned a unique node ID, and the system maintains a node information list to record the node's identity, status, and other key information. The selection of the master node is achieved through the master node replacement protocol, the purpose of which is to ensure that the system can automatically adjust and maintain its stable operating state in the face of master node failures or abnormal conditions. The backup node regularly sends heartbeat messages to the master node to monitor the status of the master node. Once the backup node detects a master node failure, the system triggers the master node replacement process. The new master node is selected through the replacement protocol and broadcast to other nodes to ensure the continuity and stability of the system.
[0097] Reputation mechanism solution: The system dynamically selects high-quality nodes to participate in communication based on the reputation of the nodes to improve the security and performance stability of the system. The node's reputation score is also recorded in the node information list. The node's reputation score is dynamically calculated based on the communication history and behavior, taking into account the number of successful and failed communications, and regularly performs node scoring updates based on the scoring algorithm to ensure the timeliness and accuracy of the scoring. The nodes participating in the communication are selected based on the node's reputation score. The system selects nodes with high reputation as high-quality and trustworthy participants to improve the security and performance stability of the system.
[0098] The innovative points of the present invention are as follows:
[0099] Asynchronous BFT protocol solution: This solution innovatively combines threshold encryption and asynchronous BFT protocol in anonymous communication, thereby ensuring the efficiency and fault tolerance of the system while ensuring communication security. Threshold encryption protects the confidentiality of messages, while the asynchronous BFT protocol ensures the high reliability of the system in an asynchronous network environment. This comprehensive application optimizes the communication performance of the system in different scenarios, making the system more robust.
[0100] Leader mechanism solution: This solution applies the leader mechanism to anonymous communication and adopts a leader mechanism in which the master node can be replaced, so that the system can automatically adjust and elect a new master node when the master node fails without manual intervention. This mechanism greatly improves the response speed and availability of the system, reduces the service interruption time caused by the failure of the master node, and ensures the continuous and stable operation of the system. This mechanism improves the flexibility and adaptability of the system, making the system more adaptable to different network environments and load changes.
[0101] Node selection mechanism based on reputation: This solution designs a selection mechanism based on node reputation. The system dynamically adjusts the nodes participating in the communication according to the node's reputation score. This mechanism not only improves the accuracy of the system's selection of high-quality nodes, but also enhances the system's ability to resist malicious attacks and node failures, and optimizes the overall performance and security of the system. By considering node reputation, the reliability and stability of system communication are ensured.
[0102] Security and robustness: This application enhances the security of anonymous communication and the robustness of the system, uses an asynchronous BFT protocol to improve system robustness, and reduces the risk of single point failures.
[0103] These asynchronous BFT protocol solutions, leader mechanism solutions, reputation mechanism solutions, and detailed implementation methods of the system, etc. These details belong to the core innovation of this application, and their independence and protection can be ensured through patent rights.
[0104] The above are only preferred specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An anonymous communication system based on a hybrid asynchronous Byzantine fault-tolerant protocol, characterized in that: include: A plurality of asynchronous groups are sequentially cascaded, wherein the asynchronous groups contain a plurality of nodes, wherein the nodes include a master node and a slave node, and a public key corresponding to the asynchronous group and a private key corresponding to the node are generated by a threshold encryption method; Among them, the sender encrypts the plaintext and the master node address in sequence through the public key corresponding to the sender and the asynchronous group to generate ciphertext, and decrypts the ciphertext layer by layer through several asynchronous groups in sequence and transmits it to the receiving end. In the transmission process of a single asynchronous group, the master node in the current asynchronous group receives the ciphertext or the plaintext broadcast by the previous asynchronous group and broadcasts it to the slave node. The nodes in the current asynchronous group execute the asynchronous BFT protocol. After executing the asynchronous BFT protocol, the correct node delivers the same message. The correct node decrypts the same information in collaboration according to the private key to generate the decrypted plaintext of the current asynchronous group, and broadcasts the decrypted plaintext of the current asynchronous group to the next asynchronous group or the receiving end; the same message is the ciphertext without the master node address in the current asynchronous group or the plaintext broadcast by the previous asynchronous group; In the asynchronous group, the master node is updated according to the leader mechanism, and the nodes in the asynchronous group are dynamically updated according to the reputation mechanism; The asynchronous BFT protocol is composed of Byzantine reliable broadcast and asynchronous binary protocol; In the Byzantine reliable broadcast, when two correct replicas deliver two messages, the two messages are the same; when a correct replica delivers a message, all correct replicas deliver the same message; when the correct sender broadcasts a message, all correct replicas deliver the same message; each correct replica delivers the information delivered from the sender at most once, and if the sender is a correct replica, the information was previously broadcast by the sender, wherein the correct replica is the correct node and the sender is the master node; In the asynchronous binary protocol, each replica, i.e., node, has a binary value as an initial input value; when all correct replicas have the same initial input value, the correct replicas will pass the same initial input value; if a correct replica and another correct replica pass the initial input value, the initial input values of the two correct replicas are the same; all correct replicas eventually pass the initial input value with probability 1; The process of updating the master node according to the leader mechanism includes: Select one node as the master node and the rest as slave nodes. Assign a number to each node and all nodes maintain a node information list. The slave node detects the status of the master node by sending heartbeat information to the master node regularly. If the node does not receive the heartbeat information from the master node within a fixed time, it is considered that the master node is down and requests to replace the master node. The slave node broadcasts a request for node change message to all nodes. After receiving a number of request for node change messages greater than the number of malicious nodes, the new leader node considers that a consensus has been reached on the node change, and the new leader node broadcasts a response message. After receiving the response message, the slave node verifies the integrity of the message. After the verification is passed, all nodes send the master node change information to the management center. After receiving enough messages, the management center updates the node information list, and the new master node starts working to realize the master node update; The process of dynamically updating nodes in an asynchronous group based on the reputation mechanism includes: The node reputation is scored by the node scoring method to generate the node score, where the node score calculation formula is: Score = S + γ1*A-γ2*B, where S represents the existing score, A is the number of successful communication participations, B is the number of failures, γ1 and γ2 are the weight parameters corresponding to the number of successes and failures, respectively, and γ2 is greater than γ1; Update node scores periodically. When updating, store the node scores and clear the scores of inactive nodes directly. In the node information list, the node scores are sorted from high to low, and several nodes with the highest scores are selected as candidate high-score nodes. The candidate high-score nodes are used as nodes of the new asynchronous group and the local list of the nodes is updated, and the network settings of the nodes are reconfigured.
2. The system according to claim 1, characterized in that The node information list includes node identity, status and node score.
Citation Information
Patent Citations
Blockchain fragmentation with adjustable quorum number
CN114391241A
Improved PBFT consensus method based on reputation scoring mechanism
CN117527834A
Optimized asynchronous BFT consensus implementation method suitable for alliance chain
CN117792608A
Blockchain-based anonymous message transmitter reputation system and reputation appraisal method
WO2020122292A1
