BFT communication consensus method based on hardware-level trusted execution environment

By adopting the BFT communication consensus method based on a hardware-level trusted execution environment in the blockchain system, the security and reliability problems of asynchronous Byzantine protocol are solved, an efficient and stable data consensus process is achieved, and user privacy protection is ensured. , improves the system throughput and fairness.

CN118694768BActive Publication Date: 2024-11-01QUANZHOU NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411171045.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-11-01
Estimated Expiration
2044-08-26

AI Technical Summary

Technical Problem

The existing asynchronous Byzantine fault tolerance protocols have security and reliability problems in blockchain systems, especially under the influence of Byzantine behavior nodes and message delays, resulting in reduced system efficiency and throughput, while in a decentralized voting system. The anonymity of users in this article is difficult to guarantee and affects fairness.

Method used

Using the BFT communication consensus method based on a hardware-level trusted execution environment, remotely launching the trusted consensus node server through a trusted proxy, performing security zone verification and data propagation, and using erasure coding and Merkel tree technology to ensure the reliability of data transmission and privacy, and conduct asynchronous Byzantine binary consensus in the security zone to generate consensus results.

Benefits of technology

Reduces the complexity of the steps of the asynchronous Byzantine protocol, improves the performance and stability of the system, ensures data confidentiality and user privacy protection, reduces the attack risk of Byzantine nodes, and maintains an efficient processing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694768B_ABST
    Figure CN118694768B_ABST
Patent Text Reader

Abstract

The present invention discloses a BFT communication consensus method based on a hardware-level trusted execution environment, which belongs to the field of blockchain technology, including: a trusted agent remotely starts a trusted consensus node server based on a consensus request; a verification application is executed on the security zone on the trusted consensus node server to confirm that the remote trusted node is true; the data server propagates data to the security zone of the remote trusted node to perform a trusted asynchronous Byzantine binary consensus and generate a consensus result. The present invention can reduce the steps of the asynchronous Byzantine protocol without changing the actual effect, and also ensures the confidentiality of the data by using the trusted execution environment, reducing the possibility of data leakage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of blockchain, and in particular relates to a BFT communication consensus method based on a hardware-level trusted execution environment. Background Art

[0002] Currently, it is extremely challenging to deploy asynchronous Byzantine fault-tolerant protocols on blockchains. It is necessary to consider factors such as Byzantine behavior nodes and message delays, which have a serious impact on the security and reliability of the system. The high complexity of asynchronous Byzantine fault-tolerant protocols greatly increases the difficulty of implementation and the cost of deployment and maintenance. At the same time, users need to be anonymized in distributed voting systems to protect their privacy and ensure the fairness of the voting process. Currently, digital signatures and public key infrastructure (PKI) are commonly used to ensure the authenticity of node identities and the integrity of messages, and view replacement mechanisms such as PBFT are used to handle node failures.

[0003] Specifically, the content of communication in the Byzantine fault-tolerant protocol is usually the data of transactions conducted by users. When users conduct transactions, transaction data is generated, and the transaction data needs to be stored on the blockchain through consensus. Byzantine behavior nodes will maliciously transmit messages to disrupt the consensus process, and message delays will delay the consensus decision. The general Byzantine fault-tolerant protocol relies on strong time assumptions, that is, when the network delay is unpredictable or even has a long delay, the system may greatly delay the generation of consensus decisions and cause misjudgment of the consensus results, which will lead to a series of errors and a significant reduction in system efficiency.

[0004] The seriousness of this problem lies in the fact that these threats will reduce the efficiency and reliability of the protocol, resulting in a slower transaction processing speed, lower throughput and greater instability. This is a fatal blow to the blockchain system, especially in some scenarios that require high throughput, such as decentralized exchanges, medical and health fields, etc. At the same time, in a decentralized voting system, if users are not anonymized, their privacy will be exposed, and their choices may be subject to external pressure, so fairness cannot be guaranteed. Summary of the invention

[0005] In order to solve the above technical problems, the present invention proposes a BFT communication consensus method based on a hardware-level trusted execution environment to solve the problems existing in the above-mentioned prior art.

[0006] To achieve the above objectives, the present invention provides a BFT communication consensus method based on a hardware-level trusted execution environment, comprising:

[0007] The trusted agent remotely starts the trusted consensus node server based on the consensus request;

[0008] Execute a verification application on the security zone on the trusted consensus node server to confirm that the remote trusted node is genuine;

[0009] The data server propagates the data to the security zone of the remote trusted node to perform a trusted asynchronous Byzantine binary consensus and generate a consensus result.

[0010] Preferably, the process of the trusted agent remotely starting the trusted consensus node server based on the consensus request includes:

[0011] The data server initiates a consensus request to the trusted agent, which remotely starts the trusted consensus node server, starts and packages the security zone, and returns a startup success message in the security zone and waits for input data.

[0012] Preferably, the process of executing a verification application on the security zone on the trusted consensus node server to confirm that the remote trusted node is genuine includes:

[0013] The trusted agent registered with the remote authentication service performs a verification application on the security zone of the trusted consensus node server;

[0014] The security zone generates a verification report in a specific area, and the verification report is sent to the trusted agent;

[0015] The trusted agent passes the information on the remote authentication service report through Intel and returns it to the data server.

[0016] Preferably, the data server propagates the data to the security zone of the remote trusted node to perform a trusted asynchronous Byzantine binary consensus, and the process of generating a consensus result includes:

[0017] After the data server confirms that the remote trusted node is authentic, it reliably broadcasts the data to the remote trusted node’s security zone;

[0018] The security zone performs a trusted asynchronous Byzantine binary consensus on the data, generates a consensus result, and collects and parses it by a trusted proxy node.

[0019] Preferably, the process of reliably broadcasting data to a secure zone of a remote trusted node includes: reducing the size of data during transmission by using erasure coding technology, and storing data by using a Merkle tree.

[0020] Preferably, the process of the security zone performing a trusted asynchronous Byzantine binary consensus on the data includes: generating a random number through a trusted proxy node and broadcasting it to all remote trusted nodes.

[0021] Preferably, after generating the consensus result, the method further includes: the remote trusted node destroying all data and security zones after generating the consensus result.

[0022] Compared with the prior art, the present invention has the following advantages and technical effects:

[0023] The present invention aims to use a trusted execution environment to solve the complex problems of asynchronous Byzantine consensus protocols in the prior art. The present invention can reduce the steps of the asynchronous Byzantine consensus protocol without changing the actual effect. At the same time, the trusted execution environment is also used to ensure the confidentiality of data and reduce the possibility of data leakage. The present invention also uses some cutting-edge technologies to change the data content of the communication, thereby maintaining the high performance and stability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] 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:

[0025] Figure 1 It is an overall flow chart of an embodiment of the present invention. DETAILED DESCRIPTION

[0026] 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.

[0027] 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.

[0028] Embodiment 1

[0029] like Figure 1 As shown, this embodiment provides a BFT communication consensus method based on a hardware-level trusted execution environment, including:

[0030] The trusted agent remotely starts the trusted consensus node server based on the consensus request;

[0031] Execute a verification application on the security zone on the trusted consensus node server to confirm that the remote trusted node is genuine;

[0032] The data server propagates the data to the security zone of the remote trusted node to perform a trusted asynchronous Byzantine binary consensus and generate a consensus result.

[0033] This embodiment has four stages, namely starting the consensus server, preparing the security zone, trusted consensus, and destroying the security zone:

[0034] (a) The data server initiates a consensus request to the trusted agent. The trusted agent remotely starts the trusted consensus node server, starts and packages the security zone. The security zone returns a successful startup message and waits for input data.

[0035] (b) A trusted agent registered with the remote attestation service can execute a verification request on the security zone on the trusted consensus node server. The security zone will generate a verification report in a security zone of an architecture called Quoting Enclave (QE) and convert it into a remotely verifiable report QUOTE. The verification report will be sent to the trusted agent, which will review the information on the report through Intel's remote attestation service and return the authenticity and security of the trusted consensus node server to the data server.

[0036] (c) After the data server confirms that the remote trusted node is true, it reliably broadcasts the data to the trusted consensus node security zone. This embodiment uses erasure coding technology to reduce the size of data during transmission, thereby ensuring that data can be sent normally even under low network bandwidth conditions. At the same time, this embodiment uses Merkle trees to store data, which ensures that each node can verify the data and ensure that the data has not been tampered with due to attacks during the process from the database server to the security zone. This embodiment is designed to perform trusted asynchronous Byzantine binary consensus in the security zone. Asynchronous binary consensus is to allow all nodes to reach a consensus on 0 or 1 in an asynchronous environment. Each node will perform a binary consensus on whether the trusted broadcast of all other nodes is successful. In other words, each round of consensus must execute N instances of asynchronous binary consensus in parallel. When the nodes cannot reach a consensus, they make a decision with the help of an external random source. The trusted proxy node generates a random number for this node and broadcasts it to all trusted consensus nodes. Finally, each trusted consensus node will generate a result, which will be collected and parsed by the trusted proxy node.

[0037] (d) Finally, after all processes are confirmed, the trusted consensus node will destroy all security zones together with the data to ensure data security, making it impossible for any level to obtain the consensus data or where the data came from.

[0038] To further optimize the solution, the process of the trusted agent remotely starting the trusted consensus node server based on the consensus request includes:

[0039] The data server initiates a consensus request to the trusted agent, which remotely starts the trusted consensus node server, starts and packages the security zone, and returns a startup success message in the security zone and waits for input data.

[0040] Further optimizing the solution, executing the verification application on the security zone on the trusted consensus node server, and confirming that the remote trusted node is authentic includes:

[0041] The trusted agent registered with the remote authentication service performs a verification application on the security zone of the trusted consensus node server;

[0042] The security zone generates a verification report in a specific area, and the verification report is sent to the trusted agent;

[0043] The trusted agent reviews the information on the report through Intel's remote authentication service and returns it to the data server.

[0044] To further optimize the solution, the data server propagates the data to the security zone of the remote trusted node to perform a trusted asynchronous Byzantine binary consensus. The process of generating the consensus result includes:

[0045] After the data server confirms that the remote trusted node is authentic, it reliably broadcasts the data to the remote trusted node’s security zone;

[0046] The security zone performs a trusted asynchronous Byzantine binary consensus on the data, generates a consensus result, and collects and parses it by a trusted proxy node.

[0047] Further optimizing the scheme, the process of reliably broadcasting data to the secure zone of a remote trusted node includes: reducing the size of data during transmission through erasure coding technology, and storing data by using a Merkle tree.

[0048] Further optimizing the scheme, the process of the security zone performing a trusted asynchronous Byzantine binary consensus on the data includes: generating a random number through a trusted proxy node and broadcasting it to all remote trusted nodes.

[0049] A further optimization scheme includes, after generating the consensus result, the remote trusted node destroys all data and security zones after generating the consensus result.

[0050] The present invention does not require the data storage server to deploy a trusted execution environment, but deploys the trusted execution environment on a remote trusted node, which means that users do not need to bear additional costs to purchase servers adapted to the trusted execution environment. This embodiment proposes a packaged combination of security zones in the proxy node, and provides a remote certification method for the trusted execution environment, so that users can clearly know that the consensus code is safe, running in a secure area and there is no possibility of modification. At the same time, generating random numbers in the security zone can prevent malicious nodes from using known random numbers to manipulate the consensus process. It can also allow all correct nodes to obtain the same random number, ensuring the consistency principle.

[0051] First, in the reliable broadcast part, the database-to-security zone method is used to directly implant data into the security zone, so that the data does not stay at the server level, reducing the risk of data leakage. This embodiment uses erasure codes and Merkle trees to improve the throughput of the system, reduce the peak data volume, and provide a way to verify the correctness of the data. A lightweight broadcast encryption algorithm is used in the broadcast. This encryption algorithm is easy to implement, and the encrypted data is small, which can reduce the communication load and the overhead caused by the encryption algorithm. Secondly, in the asynchronous consensus protocol, this embodiment uses the security zone to security zone method to allow data to be directly transmitted in the security zone. The highest authority group of the server system cannot observe the code running and data communication in the security zone from the outside. Because the existence of the security zone prevents the node from having a Byzantine node that sends information randomly, the steps of the consensus protocol will be optimized. And because the security zone is destroyed on demand, there will be no data residue problem, because all memory space is released after the security zone is destroyed, which greatly improves the user's privacy information. The most important point of this embodiment is that it provides all-round privacy protection, which not only takes into account attacks from Byzantine nodes, but also considers problems such as server crashes, while also preventing attacks from system-level administrator privileges.

[0052] This example theoretically analyzes the entire asynchronous Byzantine consensus protocol. The protocol in this example ensures the three major properties of the asynchronous Byzantine protocol:

[0053] Consistency: Consistency ensures that all correct nodes will eventually agree on the same set of values. This means that if one correct node decides on a value, all other correct nodes will eventually decide on that value as well.

[0054] Liveness: Liveness ensures that all correct nodes will eventually reach consensus and make a decision if network conditions permit.

[0055] Validity: Validity guarantees that if all correct nodes agree on an input, then the input must be valid and satisfy the system's predetermined rules.

[0056] Then, according to the experiment, this embodiment can conclude that the protocol of this embodiment has fewer steps than the ordinary asynchronous Byzantine consensus protocol and is more secure. This embodiment experiments on the two major parts of the asynchronous Byzantine protocol (reliable broadcast and asynchronous binary consensus). Due to the characteristics of the erasure code, the data that needs to be transmitted is greatly reduced, which greatly improves the transmission performance and ensures effective transmission under low network bandwidth.

[0057] This invention adopts an innovative method to implement asynchronous Byzantine consensus protocol by using a trusted execution environment, which is different from the traditional method (not using a trusted execution environment or only using a trusted execution environment as a counter). The design of this protocol realizes the anonymity of user transactions and reduces the attack of Byzantine nodes in the system, while maintaining efficient and reliable processing in an asynchronous environment.

[0058] It is worth noting that the present invention proposes to package the security zone in the trusted agent to manage the creation rules and order of the security zone, and for the first time proposes to directly conduct data consensus in the security zone to simplify the steps of the asynchronous Byzantine consensus protocol and ensure the security of the data. It also proposes a method of generating random numbers in the trusted agent to ensure that malicious nodes cannot use known random numbers to manipulate the entire consensus process.

[0059] 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. A BFT communication consensus method based on a hardware-level trusted execution environment, characterized in that: The following steps are involved: The trusted agent remotely starts the trusted consensus node server based on the consensus request; Execute a verification application on the security zone on the trusted consensus node server to confirm that the remote trusted node is genuine; The data server propagates the data to the security zone of the remote trusted node to perform a trusted asynchronous Byzantine binary consensus and generate a consensus result; The process of the trusted agent remotely starting the trusted consensus node server based on the consensus request includes: The data server initiates a consensus request to the trusted agent, which remotely starts the trusted consensus node server, starts and packages the security zone, and the security zone returns a startup success message and waits for input data; The data server propagates the data to the security zone of the remote trusted node to perform a trusted asynchronous Byzantine binary consensus. The process of generating the consensus result includes: After the data server confirms that the remote trusted node is authentic, it reliably broadcasts the data to the remote trusted node’s security zone; The security zone performs a trusted asynchronous Byzantine binary consensus on the data, generates a consensus result, and collects and analyzes it by a trusted proxy node; The process of the security zone performing a trusted asynchronous Byzantine binary consensus on the data includes: generating a random number through a trusted proxy node and broadcasting it to all remote trusted nodes.

2. The BFT communication consensus method based on hardware-level trusted execution environment according to claim 1 is characterized in that: The process of executing a verification application on the security zone on the trusted consensus node server to confirm that the remote trusted node is genuine includes: The trusted agent registered with the remote authentication service performs a verification application on the security zone of the trusted consensus node server; The security zone generates a verification report in a specific area, and the verification report is sent to the trusted agent; The trusted agent passes the information on the remote authentication service report through Intel and returns it to the data server.

3. The BFT communication consensus method based on hardware-level trusted execution environment according to claim 1 is characterized in that: The process of reliably broadcasting data to a remote trusted node's secure zone includes reducing the size of the data during transmission through erasure coding and storing the data using Merkle trees.

4. The BFT communication consensus method based on hardware-level trusted execution environment according to claim 1 is characterized in that: After generating the consensus result, the method further includes: the remote trusted node destroying all data and security zones after generating the consensus result.