A single blockchain system for different networks and a blockchain data transmission method
By introducing physical isolation mechanisms and hardware encryption modules into the blockchain network, the security threats when connecting to external networks are solved, ensuring the security and integrity of data transmission, and improving the security of the blockchain network.
Patent Information
- Application Number
- CN202410220794.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-28
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-02-28
AI Technical Summary
In the existing technology, when the external network is connected to the blockchain network, there are threats of malicious attacks and data tampering, which affects the security of the internal blockchain network.
Using a single blockchain system for different networks, data transmission is carried out by physically isolating Computer A and Computer B, and hardware encryption modules are used for multiple verifications and encryptions to ensure the security of data during transmission and in a physically isolated environment. Nodes are deployed to prevent interference with each other.
Effectively prevent malicious behaviors from external networks from affecting the internal blockchain network, ensure data integrity and confidentiality, and improve the security of the entire system.
Smart Images

Figure CN117955728B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network data transmission, and in particular to a single blockchain system and a blockchain data transmission method for different networks. Background Art
[0002] As a new distributed storage technology, blockchain technology has been widely used in logistics, finance, supply chain and other fields due to its security, transparency, decentralization and trustlessness. There are many docking scenarios between internal and external networks. The data is passed to the blockchain network through simple verification of the external network, but the external network may have threats such as malicious attacks, data tampering or unauthorized access, which may affect the data and transaction security of the internal blockchain network. Therefore, appropriate security measures must be taken to protect data and network security during the docking process. Summary of the invention
[0003] In view of the shortcomings of the prior art, the present invention aims to provide a single blockchain system and a blockchain data transmission method for different networks.
[0004] In order to achieve the above object, the present invention adopts the following technical solution:
[0005] A single blockchain system for different networks, including an external network computer, an internal network computer, a physically isolated computer A and a physically isolated computer B; the external network computer uses a serial port to Ethernet port serial port server to exchange network data with the physically isolated computer A; the physically isolated computer A and the physically isolated computer B use a serial bus port USB to perform non-network data transmission; the physically isolated computer B and the internal network computer use a serial port to USB port serial port server to perform network data interaction;
[0006] The physically isolated computer A and the physically isolated computer B are both configured with a domestic Linux system, and both the physically isolated computer A and the physically isolated computer B have no network connection function;
[0007] Both the physically isolated computer A and the physically isolated computer B are provided with a hardware encryption module for encrypting and decrypting the transmitted data;
[0008] A blockchain is built on both the internal and external networks, where the client node that initiates the chain request is deployed in the external network computer, the CA authentication, endorsement node and sorting node in the blockchain are deployed on the physically isolated computer A, and the submission node is deployed on the physically isolated computer B; a client node with only the chain function is deployed on the internal network computer to complete the final data chain.
[0009] Furthermore, the physically isolated computer A and the physically isolated computer B are placed in a physically isolated environment and do not share any hardware devices; the physically isolated computer A and the physically isolated computer B will not interfere with each other during data transmission.
[0010] Furthermore, the physically isolated computer A and the physically isolated computer B implement encryption and decryption operations on the data by calling the API of the hardware encryption module through a data encryption transmission program written in Java.
[0011] The present invention also provides a blockchain data transmission method, the specific process of which is as follows:
[0012] 1) An external network computer sends a request, which is divided into a request header and a request body. The request header stores the access IP, request device information and requester information, and the request body stores the transactions and data that need to be uploaded to the chain. The request header and request body are asymmetrically encrypted respectively, and the encrypted data are combined and then asymmetrically encrypted again;
[0013] 2) When the external network computer sends a request, it first sends the encrypted information of the request header to the physically isolated computer A. After the physically isolated computer A verifies that the request is legitimate, the external network computer sends the encrypted information of the request body to the physically isolated computer A. If the physically isolated computer A verifies that the encrypted information of the request header is not legitimate, it directly rejects the request and determines that the external network computer is a malicious node and no longer allows access;
[0014] 3) Physically isolated computer A concatenates the encrypted information of the request header and the request body. If the encrypted hash values are different after concatenation, the transaction request is rejected and the user group of the external network computer is re-evaluated to determine whether it is a malicious node. If it is correct, it requests a CA certificate and establishes a channel for data and transaction transmission. After that, it sends data to the endorsement node deployed in the physically isolated computer A, and the endorsement node returns the endorsement result;
[0015] 4) The endorsement result returned by the endorsement node is sent to the sorting node deployed in the physically isolated computer A for sorting;
[0016] 5) Physically isolated computer A calls the API of the hardware encryption module with the same encryption format as in step 1) to encrypt the data of the sorting node, and regularly transmits the encrypted data to the physically isolated computer B through the serial bus port USB. Physically isolated computer B uses the same API of the hardware encryption module to perform decryption operations, and continues to verify the data again according to the signature. If the signature and data are confirmed to be correct, the data is converted into blockchain plaintext data, and the blockchain plaintext data is finally verified in the blockchain data format at the submission node;
[0017] 6) After verification, the physically isolated computer B sends the data to the internal network computer to upload the information to the chain or update the information on the chain, and the transaction and data transmission request are completed.
[0018] The beneficial effect of the present invention is that the present invention proposes a physical isolation mechanism for different networks, which specifically deploys some nodes in an isolated environment to filter and encrypt data from external networks to ensure the security of data before it is uploaded to the chain. This physical isolation mechanism can effectively respond to security threats that may be brought by external networks and protect the data and transaction security of the internal blockchain network. Encryption measures can be used to ensure the integrity and confidentiality of data during the docking process, thereby improving the security of the entire system and preventing malicious behavior from having a negative impact on the blockchain network. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is a schematic diagram of the structure of a single blockchain system for different networks in Example 1 of the present invention;
[0020] Figure 2 This is a schematic diagram of the data transmission process between computers A and B in Example 1 of the present invention;
[0021] Figure 3 This is a schematic diagram of the blockchain deployed in Example 1 of the present invention. DETAILED DESCRIPTION
[0022] The present invention will be further described below in conjunction with the accompanying drawings. It should be noted that this embodiment is based on the technical solution and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to this embodiment.
[0023] Example 1
[0024] This embodiment provides a single blockchain system for different networks. It is based on the idea of combining software and hardware. In a physically isolated device environment, it uses the idea of multiple verifications and layers of checks. When an external network computer sends a confidential request, the illegal request is first intercepted in the external network isolation machine; in the data exchange between the isolation machines, a secondary verification is performed through the encryption module and related algorithms; the verification before chaining is completed on the internal network isolation machine, and then the security data is encrypted and synchronized to the internal network computer, and the transaction chaining operation is completed in the internal network computer.
[0025] During the entire one-way transmission process, it is first necessary to ensure that there are available isolation devices in hardware. In this embodiment, the isolation device includes two computers A and B with interfaces, both of which are configured with domestic Linux systems, and ensure that the computers do not have conventional network connection functions to ensure the security and physical isolation of the hardware itself. Both the physically isolated computer A and the physically isolated computer B are equipped with network nodes, and the serial bus port USB is used for non-network data transmission between the two to ensure that data can be transferred from the physically isolated computer A to the physically isolated computer B. The internal and external networks cannot directly exchange network data with the physically isolated computers A and B. This embodiment uses a serial port server to implement this. A serial port to Ethernet port device is used to transfer data from an external network computer to the physically isolated computer A, and a serial port to USB port device is used to transfer data from the physically isolated computer B to the internal network computer. Figure 1 shown.
[0026] Therefore, the single blockchain system for different networks of this embodiment includes an external network computer, an internal network computer, a physically isolated computer A and a physically isolated computer B. The external network computer uses a serial port to Ethernet serial port server to exchange network data with the physically isolated computer A. The physically isolated computer A and the physically isolated computer B use a serial bus port USB for non-network data transmission, and the physically isolated computer B and the internal network computer use a serial port to USB serial port server for network data exchange.
[0027] In order to further enhance the isolation effect, the system of this embodiment adopts physical isolation measures. Physical isolation computer A and physical isolation computer B are placed in a physically isolated environment, such as a specific isolation room or metal cabinet, to ensure that only authorized personnel can access these devices. Physical isolation computer A and physical isolation computer B are physically isolated and do not share any hardware devices, such as keyboards, mice, monitors, etc. In addition, it is ensured that the two computers do not interfere with each other during data transmission, such as through electromagnetic interference.
[0028] In this embodiment, both physically isolated computer A and physically isolated computer B are provided with encryption modules for encrypting and decrypting transmitted data to ensure that the data will not be stolen or tampered with during transmission. Specifically, the encryption module can perform encryption and decryption operations in a hardware accelerated manner, using a common asymmetric encryption algorithm RSA.
[0029] Furthermore, at the software level, in order to cooperate with the hardware encryption module to use the data encryption transmission program, this embodiment writes a Java program to call the API of the hardware encryption module to implement encryption and decryption operations on the data. For example, Java's encryption library and key management library are used to call the hardware encryption module to encrypt and decrypt the data. During the encrypted transmission of data, the data will first be encrypted in the hardware encryption module of the physically isolated computer that sends the data, and then the data will be transmitted through the serial bus port USB for non-network data transmission, and finally arrive at the hardware encryption module of the physically isolated computer that receives the data for decryption operation to ensure the confidentiality and integrity of the data. The encryption process between the external network computer and the physically isolated computer A, and between the internal network computer and the physically isolated computer B is similar to the above process, except that software encryption is used and the encryption rules of the blockchain network must be adapted.
[0030] Figure 2 The figure shows the encryption and decryption process when physically isolated computer A transmits data to physically isolated computer B. First, physically isolated computer A and physically isolated computer B respectively establish a pair of RSA key pairs. Physically isolated computer A uses the private key to encrypt the data to be transmitted to physically isolated computer B. This encryption is performed on the basis of the blockchain network and must adapt to the encryption rules of the blockchain network. After encryption, physically isolated computer A sends the signature and data to physically isolated computer B respectively. After receiving the data, physically isolated computer B uses A's public key to decrypt it. After decryption, it is converted into blockchain plaintext data and continues data transmission on the blockchain network.
[0031] like Figure 3 As shown in the figure, the node deployment of the blockchain deploys the same blockchain software as the internal network computer and the external network computer on the physically isolated computer A and the physically isolated computer B, but it should be noted that the physically isolated computer A and the physically isolated computer B are in a physically isolated environment without network connection. To build a blockchain on a reliable domestic Linux system, it is necessary to select a blockchain software that is compatible with domestic Linux and conventional systems. In a physically isolated environment, although a serial port connection can be made with an external network computer, the transmission is one-way and the update of the blockchain network software is not feasible, so a stable version of the blockchain software version should be selected. In addition, the IP address, port number and other information of the physically isolated computer are configured to provide a certain synchronization blockchain data basis for network interaction with external network computers, which is convenient for data transmission and verification.
[0032] Before data transmission, a complete blockchain network architecture must be established, and a blockchain must be built on the internal and external networks. The normal process of building blockchain nodes is to deploy nodes, set up CA organizations, deploy chain codes, run blockchains, and maintain blockchains. The client node that initiates the chain request is deployed on the external network computer. In a physically isolated environment, physically isolated computers A and B cannot communicate over the network, but can be connected to internal network computers or external network computers through a serial port server. According to this feature, physically isolated computers A and B are treated as a physically isolated organization with CA certification, endorsement nodes, sorting nodes, and submission nodes. Among them, CA certification, endorsement nodes, and sorting nodes are deployed on physically isolated computers A connected to external network computers, and submission nodes are deployed on physically isolated computers B. Data transmission on the client side of the external network computer is equivalent to submitting a request to a complete organization, which is sent to the internal network computer after the corresponding verification processing is performed in this organization for the final chaining. It should be noted that, in order to ensure the security of the physically isolated environment, physically isolated computer B that needs to perform the submission operation cannot perform the submission operation. Therefore, this embodiment deploys a client node with only the chaining function on the internal network computer to complete the final data chaining. like Figure 3 shown.
[0033] Example 2
[0034] This embodiment provides a blockchain data transmission method of the system described in Embodiment 1, and the specific process is as follows:
[0035] 1) An external network computer sends a request, which is divided into a request header and a request body. The request header stores the access IP, request device information and requester information, and the request body stores the transactions and data that need to be uploaded to the chain. The request header and request body are asymmetrically encrypted respectively, and the encrypted data are combined and then asymmetrically encrypted again.
[0036] 2) When the external network computer sends a request, it first sends the encrypted information of the request header to the physically isolated computer A. After the physically isolated computer A verifies that the information is legitimate, the external network computer sends the encrypted information of the request body to the physically isolated computer A. If the physically isolated computer A verifies that the encrypted information of the request header is not legitimate, it directly rejects the request, determines that the external network computer is a malicious node, and no longer allows access.
[0037] 3) Physically isolated computer A concatenates the encrypted information of the request header and the request body. If the encrypted hash values are different after concatenation, the transaction request is rejected and the user group of the external network computer is re-evaluated to determine whether it is a malicious node. If it is correct, a CA certificate is requested to establish a channel for data and transaction transmission, and then data is sent to the endorsement node deployed in the physically isolated computer A, and the endorsement node returns the endorsement result.
[0038] 4) The endorsement result returned by the endorsement node is sent to the sorting node deployed in the physically isolated computer A for sorting.
[0039] 5) Physically isolated computer A calls the API of the encryption module with the same encryption format as in step 1) to encrypt the data of the sorting node, and regularly transmits the encrypted data to the physically isolated computer B through the serial bus port USB. Physically isolated computer B uses the same encryption module API to perform decryption operations, and continues to verify the data again according to the signature. If the signature and data are confirmed to be correct, the data is converted into blockchain plaintext data, and the blockchain plaintext data is finally verified in the blockchain data format at the submission node.
[0040] 6) After verification, the physically isolated computer B sends the data to the internal network computer to upload the information to the chain or update the information on the chain, and the transaction and data transmission request are completed.
[0041] For those skilled in the art, various corresponding changes and modifications can be made according to the above technical solutions and concepts, and all of these changes and modifications should be included in the protection scope of the claims of the present invention.
Claims
1. A single blockchain system for different networks, It is characterized in that It includes an external network computer, an internal network computer, a physically isolated computer A and a physically isolated computer B; the external network computer uses a serial port to Ethernet port serial port server to exchange network data with the physically isolated computer A; the physically isolated computer A and the physically isolated computer B use a serial bus port USB to perform non-network data transmission; the physically isolated computer B and the internal network computer use a serial port to USB port serial port server to perform network data interaction; The physically isolated computer A and the physically isolated computer B are both configured with a domestic Linux system, and both the physically isolated computer A and the physically isolated computer B have no network connection function; Both the physically isolated computer A and the physically isolated computer B are provided with a hardware encryption module for encrypting and decrypting the transmitted data; A blockchain is built on both the internal and external networks, where the client node that initiates the chain request is deployed in the external network computer, the CA authentication, endorsement node and sorting node in the blockchain are deployed on the physically isolated computer A, and the submission node is deployed on the physically isolated computer B; a client node with only the chain function is deployed on the internal network computer to complete the final data chain.
2. According to claim 1, a single blockchain system for different networks, It is characterized in that The physically isolated computer A and the physically isolated computer B are placed in a physically isolated environment and do not share any hardware devices; the physically isolated computer A and the physically isolated computer B will not interfere with each other during data transmission.
3. According to claim 1, the single blockchain system for different networks, It is characterized in that Physically isolated computer A and physically isolated computer B implement encryption and decryption operations on data by calling the API of the hardware encryption module through a data encryption transmission program written in Java.
4. A blockchain data transmission method of the system described in any one of claims 1 to 3, It is characterized in that The specific process is: 1) An external network computer sends a request, which is divided into a request header and a request body. The request header stores the access IP, request device information and requester information, and the request body stores the transactions and data that need to be uploaded to the chain. The request header and request body are asymmetrically encrypted respectively, and the encrypted data are combined and then asymmetrically encrypted again; 2) When the external network computer sends a request, it first sends the encrypted information of the request header to the physically isolated computer A. After the physically isolated computer A verifies that the request is legitimate, the external network computer sends the encrypted information of the request body to the physically isolated computer A. If the physically isolated computer A verifies that the encrypted information of the request header is not legitimate, it directly rejects the request and determines that the external network computer is a malicious node and no longer allows access; 3) Physically isolated computer A concatenates the encrypted information of the request header and the request body. If the encrypted hash values are different after concatenation, the transaction request is rejected and the user group to which the external network computer belongs is re-evaluated to determine whether it is a malicious node. If it is correct, a CA certificate is requested to establish a channel for data and transaction transmission, and then data is sent to the endorsement node deployed in the physically isolated computer A, and the endorsement node returns the endorsement result; 4) The endorsement result returned by the endorsement node is sent to the sorting node deployed in the physically isolated computer A for sorting; 5) Physically isolated computer A calls the API of the hardware encryption module with the same encryption format as in step 1) to encrypt the data of the sorting node, and regularly transmits the encrypted data to the physically isolated computer B through the serial bus port USB. Physically isolated computer B uses the same API of the hardware encryption module to perform decryption operations, and continues to verify the data again according to the signature. If the signature and data are confirmed to be correct, the data is converted into blockchain plaintext data, and the blockchain plaintext data is finally verified in the blockchain data format at the submission node; 6) After verification, the physically isolated computer B sends the data to the internal network computer to upload the information to the chain or update the information on the chain, and the transaction and data transmission request are completed.
Citation Information
Patent Citations
External terminal protection equipment and system based on one-way file transfer protocol
CN111901418A
Low-cost Internet-of-Things security protection method and terminal equipment
CN112688964A
Cross-network security data sharing method and system based on block chain
CN112738239A
Internal and external network isolation method and system supporting block chain protocol, equipment and medium
CN117061212A
Blockchain controlled cross-domain data transfer
US20230036439A1
