Cross-gatekeeper block chain data operation method and device, electronic equipment and storage medium
By packaging and signing the on-chain request in the transaction gateway, and using the network gate to ferry the files to the blockchain network, the problem of transactions that cannot be put on-chain caused by network isolation between blockchain nodes is solved, and data processing efficiency is improved, and the The normal operation of blockchain systems in high-security business scenarios.
Patent Information
- Application Number
- CN202411174820.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-12-24
AI Technical Summary
In business scenarios such as government affairs, network isolation between blockchain nodes leads to obstruction of network communication, block consensus cannot be completed normally, transactions cannot be put on the chain, and existing technology cannot meet the data in network isolation scenarios Chain requirements limit the application of blockchain systems.
Package and sign the on-chain request through the transaction gateway, write the on-chain file, and use the network gate to ferry the files to the blockchain network, receive and verify the new block files for block synchronization, realizing the blockchain across the network gate Data operations reduce the number of file transfers and improve throughput.
It effectively solves the problem of slow and low efficiency of chain requests in network isolation scenarios, improves data processing efficiency, and ensures the normal operation of blockchain systems in high-security business scenarios.
Smart Images

Figure CN119182766A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a cross-gateway blockchain data operation method, device, electronic device and storage medium. Background Art
[0002] As a distributed database technology, blockchain technology has the advantages of decentralization, high security, and strong traceability. In recent years, blockchain technology has been widely used in finance, supply chain, government affairs and other fields.
[0003] The smooth network between blockchain nodes is a prerequisite for the normal operation of the blockchain system. However, in actual applications, for business scenarios with high data security levels such as government affairs, there is often network isolation between the institutions to which the blockchain nodes belong. Figure 1 As shown in the figure, institution A and institution B are isolated by a network gate. The nodes in institution A and the nodes in institution B can only transfer files by file ferrying, and cannot transfer network data. In this case, since the network communication between nodes is blocked, the block consensus cannot be completed normally, and the transaction cannot be uploaded to the chain normally, and the blockchain system cannot operate normally. Since the existing blockchain technology cannot meet the needs of data upload in the network isolation scenario, this limits the application of the blockchain system in business scenarios with high data security levels to a certain extent.
[0004] In order to deal with network isolation scenarios, an existing solution is Figure 2 As shown. Different institutions build a blockchain in the same network, and the network is isolated from each institution by a network gate. For example, there are institutions A, B, ..., X, etc. Each institution sends a chain request / query request to the gateway on the corresponding institution side. The gateway on the institution side saves the requested data and other information into a file, and then ferries the file to the blockchain network through the network gate. Next, the gateway on the blockchain side is responsible for parsing the ferried file, converting it into a request and sending it to the blockchain node for transaction chain or query. After the chain or query is successful, the blockchain will return a certain response to the gateway, and the response will also go through the same steps to be transmitted to the institution that sent the request. In this solution, each request / response needs to go through the conversion of "network data->file->file->network data" to reach the target network. The whole process is cumbersome and inefficient. Summary of the invention
[0005] The present invention provides a cross-gateway blockchain data operation method, device, electronic device and storage medium to solve the defects existing in the related technology.
[0006] The present invention provides a cross-gateway blockchain data operation method, which is applied to a transaction gateway, comprising: Packing the on-chain requests in the transaction pool to obtain a request package; the transaction pool is used to store the on-chain requests initiated by the user; The request package is signed to obtain signature data, and the signature data and the request package are written into a chain file, and the chain file is transferred to the blockchain network; the chain file is used to be chained to the blockchain.
[0007] A cross-gateway blockchain data operation method provided by the present invention also includes: Receive a new block file, which is obtained by file ferry after being signed; Verify and parse the new block file to obtain a block parsing file; The observation node is called to synchronize the block parsing file.
[0008] A cross-gateway blockchain data operation method provided by the present invention also includes: Receive user query requests; The observation node is called to process the query request, a return response from the observation node is obtained, and the return response is fed back to the user.
[0009] According to a cross-gateway blockchain data operation method provided by the present invention, the on-chain file is transferred to the blockchain network, and then includes: Receiving an on-chain response file, wherein the on-chain response file is obtained by file ferrying; The on-chain response file is signed and parsed to obtain a response parsing file, which is then fed back to the user.
[0010] The present invention also provides a cross-gateway blockchain data operation method, which is applied to a blockchain node gateway, comprising: Receive the on-chain file from the transaction gateway; the on-chain file includes signature data and a request package, and the request package is obtained by packaging the on-chain request; The request package is parsed and signed, and after the signature is verified, the on-chain request is sent to the blockchain node for transaction on-chain.
[0011] A cross-gateway blockchain data operation method provided by the present invention also includes: Determine that there is a new block in the blockchain, and package the new block into a new block file; The new block file is signed, and the signed new block file is transferred to a transaction gateway, and the transaction gateway is used to call an observation node to synchronize the new block file.
[0012] The present invention also provides a blockchain system, comprising: a transaction gateway and an observation node located on the transaction side, and a blockchain node gateway and a blockchain node located on the blockchain side; The transaction gateway is used to execute the above-mentioned cross-gateway blockchain data operation method; The blockchain node gateway is used to execute the above-mentioned cross-gateway blockchain data operation method; The blockchain node is used to carry out transaction on-chain for the received on-chain request; The observation node is configured to perform block synchronization or process query requests based on the call of the transaction gateway.
[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a cross-gateway blockchain data operation method as described in any one of the above is implemented.
[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a cross-gateway blockchain data operation method as described in any one of the above.
[0015] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements the cross-gateway blockchain data operation method as described in any one of the above.
[0016] The cross-gateway blockchain data operation method, device, electronic device and storage medium provided by the present invention, the transaction gateway first packages the on-chain request in the transaction pool to obtain a request package, then signs the request package to obtain signature data, and writes the signature data and the request package into the on-chain file, and ferries the on-chain file to the blockchain network. By packaging the on-chain request and batch processing the on-chain request, the number of file transfers between the transaction gateway and the blockchain network can be reduced, the throughput of file transfer can be improved, and the problem of slow on-chain request speed and low efficiency in network isolation scenarios can be effectively solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present invention or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 It is one of the existing solutions for dealing with network isolation scenarios.
[0019] Figure 2This is the second existing solution for dealing with network isolation scenarios.
[0020] Figure 3 This is one of the flow charts of the cross-gateway blockchain data operation method provided by the present invention.
[0021] Figure 4 This is the second flow chart of the cross-gateway blockchain data operation method provided by the present invention.
[0022] Figure 5 It is a structural schematic diagram of the blockchain system provided by the present invention.
[0023] Figure 6 This is one of the structural schematic diagrams of the cross-gateway blockchain data operation device provided by the present invention.
[0024] Figure 7 This is the second structural schematic diagram of the cross-gateway blockchain data operation device provided by the present invention.
[0025] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] In the prior art, for business scenarios with high data security levels such as government affairs, network isolation is performed through a network gate. When performing data processing operations such as data uploading, data synchronization, and data query, each request / response needs to undergo the conversion of "network data->file->file->network data" to reach the target network. The whole process is cumbersome and inefficient. Based on this, an embodiment of the present invention provides a cross-network gate blockchain data operation method.
[0028] Figure 3 Schematic diagram of a flow chart of a cross-gateway blockchain data operation method provided in an embodiment of the present invention, such as Figure 3 As shown, the method is applied to a transaction gateway, comprising: S11, packaging the on-chain requests in the transaction pool to obtain a request package; the transaction pool is used to store the on-chain requests initiated by the user; S12, sign the request package to obtain signature data, write the signature data and the request package into a chain file, and transfer the chain file to the blockchain network; the chain file is used to be chained to the blockchain.
[0029] Specifically, the cross-gateway blockchain data operation method provided in the embodiment of the present invention is performed by a cross-gateway blockchain data operation device, which can be configured in the transaction gateway of the transaction party. It can be understood that the transaction gateway can be an institutional gateway with a dedicated local area network in a business scenario with a high data security level such as government affairs, and the corresponding transaction node can be an institutional node.
[0030] It is understandable that blockchain data operations may include operations such as blockchain data uploading, synchronization, and querying.
[0031] First, execute step S11. The user can use the Software Development Kit (SDK) to construct a transaction, sign the transaction with a private key, and then initiate a chain request to the transaction gateway.
[0032] After that, after receiving the user's on-chain request, the transaction gateway can generate a random identifier (ID) for the on-chain request to mark the on-chain request. After that, the on-chain request and the random identifier can be cached in the transaction pool.
[0033] The transaction gateway can periodically package the on-chain requests in the transaction pool to obtain request packages.
[0034] Then, step S12 is executed. To ensure the data is correct and secure, the transaction gateway can sign the packaged request package to obtain signature data. Thereafter, the signature data and the request package are simultaneously written into the on-chain file. The on-chain file is transferred to the blockchain network through the gateway. The blockchain network refers to the network where the blockchain is located.
[0035] The blockchain can include a blockchain node gateway and multiple blockchain nodes. The blockchain node gateway can query whether there are on-chain files that have been transferred to the blockchain network. If there are on-chain files, it can parse the on-chain files and use the signature data therein to verify the on-chain request. The on-chain request that has passed the signature verification is sent to the corresponding blockchain node for transaction on-chain.
[0036] In the cross-gateway blockchain data operation method provided in the embodiment of the present invention, the transaction gateway first packages the on-chain request in the transaction pool to obtain a request package, then signs the request package to obtain signature data, writes the signature data and the request package into the on-chain file, and ferries the on-chain file to the blockchain network. By packaging the on-chain request and processing the on-chain request in batches, the number of file transfers between the transaction gateway and the blockchain network can be reduced, the throughput of file transfer can be improved, and the problem of slow on-chain request speed and low efficiency in network isolation scenarios can be effectively solved.
[0037] Based on the above embodiment, it also includes: Receive a new block file, which is obtained by file ferry after being signed; Verify and parse the new block file to obtain a block parsing file; The observation node is called to synchronize the block parsing file.
[0038] Specifically, when synchronizing blockchain data, the blockchain node gateway can periodically query whether there are new blocks. If new blocks are generated, all new blocks are pulled through the remote procedure call (RPC) interface of the blockchain node, and then packaged into new block files and signed, and then transmitted to all transaction gateways in a file ferrying manner.
[0039] The transaction gateway can periodically check whether there are new block files. When a new block file is found to be transferred, the new block file is signed and parsed to obtain a block parsing file. Among them, the new block file can include a block header and a block body, and the block body is the transaction data.
[0040] Then, the RPC interface of the observation node can be called to synchronize blocks. At this point, the observation node can execute the received new block files in sequence to ensure that its world state is consistent with the main node of the blockchain. Here, the world state refers to the cumulative result of all valid transactions and state changes on the blockchain.
[0041] When the observation node is synchronizing blocks, it can perform a series of verifications on the new block file, including verifying whether the information in the block header (such as the hash value, timestamp, difficulty value, etc. of the previous block) is correct, and whether the transactions in the block body are valid and have not been double-spent.
[0042] Once the new block file is verified, the observation node will execute the transactions in the block body in order, which usually involves unlocking the transaction input (verified using the private key signature), creating the transaction output (generating a new UTXO set), and executing any smart contracts (if the blockchain supports smart contracts). As the transaction is executed, the world state of the observation node will be updated accordingly.
[0043] After the block parsing file is synchronized with the block, the observation node stores the new block file to facilitate synchronization with the information stored in the blockchain node, which helps with subsequent local queries.
[0044] Based on the above embodiment, it also includes: Receive user query requests; The observation node is called to process the query request, obtain a return response from the observation node, and feed the return response back to the user.
[0045] Specifically, when performing data query, the user can use the SDK to construct a query request and send the query request to the transaction gateway.
[0046] After receiving the query request, the transaction gateway can call the observation node, process the query request, obtain the return response from the observation node, and feed back the return response to the user.
[0047] It is understandable that the observation node is configured locally on the trading party, that is, on the institution side. In this way, by calling the observation node to process the query request, the query request across the network gate can be converted into a local query request, thereby improving the processing speed of the query request and the efficiency of returning the response, which can effectively solve the problem of slow query request speed and low efficiency in network isolation scenarios.
[0048] Based on the above embodiment, the method of transferring the on-chain file to the blockchain network further includes: Receiving an on-chain response file, wherein the on-chain response file is obtained by file ferrying; The on-chain response file is signed and parsed to obtain a response parsing file, which is then fed back to the user.
[0049] Specifically, after the blockchain node gateway sends the verified on-chain request to the corresponding blockchain node for transaction on-chain, the corresponding blockchain node will return response data to the blockchain node gateway. The response data may include the result of whether the on-chain request is successfully on-chain.
[0050] After receiving the response data, the blockchain node gateway can cache the response data and the random identifier of the corresponding on-chain request into the response pool. Then, it goes through the same steps as the on-chain request, writes the response data in the response pool into the on-chain response file at a fixed time, and transmits it to the corresponding transaction gateway in the form of file swing.
[0051] After receiving the on-chain response file, the transaction gateway uses the private key to verify the signature of the on-chain response file. After the signature verification, the on-chain response file is parsed to obtain the response parsed file, and the response parsed file is fed back to the corresponding user according to the random identifier of the response parsed file, so that the user can grasp the on-chain status in time.
[0052] Based on the above embodiments, Figure 4 As shown, an embodiment of the present invention also provides a cross-gateway blockchain data operation method, which is applied to a blockchain node gateway, including: S21, receiving an on-chain file from a transaction gateway; the on-chain file includes signature data and a request package, and the request package is obtained by packaging an on-chain request; S22, parse and verify the signature of the request package, and after the signature verification is passed, send the on-chain request to the blockchain node for transaction on-chain.
[0053] Specifically, the cross-gateway blockchain data operation method provided in the embodiment of the present invention is executed by a cross-gateway blockchain data operation device, which can be configured in the blockchain node gateway on the blockchain side.
[0054] First, execute step S21. After the transaction gateway transfers the on-chain file to the blockchain network through the network gate, the blockchain node gateway in the blockchain network can periodically query whether there is an on-chain file that has been transferred to the blockchain network.
[0055] The on-chain file may include signature data and a request package. The request package is obtained by packaging the on-chain request by the transaction gateway, and the signature data can be obtained by signing the packaged request package by the transaction gateway.
[0056] Then, step S22 is executed. If there is an on-chain file, the blockchain node gateway can receive the on-chain file, parse the on-chain file, and use the signature data therein to verify the on-chain request. The on-chain request that passes the signature verification is sent to the corresponding blockchain node for transaction on-chain.
[0057] In the cross-gateway blockchain data operation method provided in the embodiment of the present invention, the blockchain node gateway first receives the on-chain file of the transaction gateway; then parses and verifies the request package, and after the signature is verified, sends the on-chain request to the blockchain node for transaction on-chain. By packaging the on-chain request, the number of file transfers between the transaction gateway and the blockchain network can be reduced, the throughput of file transfer can be improved, and the problem of slow on-chain request speed and low efficiency in network isolation scenarios can be effectively solved.
[0058] Based on the above embodiment, it also includes: Determine that there is a new block in the blockchain, and package the new block into a new block file; The new block file is signed, and the signed new block file is transferred to a transaction gateway, and the transaction gateway is used to call an observation node to synchronize the new block file.
[0059] Specifically, the blockchain node gateway can periodically query whether there are new blocks generated in the blockchain. If new blocks are generated, all new blocks can be pulled through the RPC interface of the blockchain node, and then packaged into new block files, and the new block files are signed, and the signed new block files are transmitted to all transaction gateways in the form of file ferrying.
[0060] Each transaction gateway can periodically check whether there are new block files. When a new block file is found to be ferried over, it receives the new block file, verifies the signature of the new block file using the private key, and then parses the new block file after the signature verification is passed.
[0061] After that, the RPC interface of the observation node can be called to synchronize the new block file.
[0062] On the basis of the above embodiments, a blockchain system is also provided in an embodiment of the present invention, including: a transaction gateway and an observation node located on the transaction party, and a blockchain node gateway and a blockchain node located on the blockchain side; The transaction gateway is used to execute the above-mentioned cross-gateway blockchain data operation method with the transaction gateway or the device configured therein as the execution subject; The blockchain node gateway is used to execute the above-mentioned cross-gateway blockchain data operation method with the blockchain node grid or the device configured therein as the execution subject; The blockchain node is used to carry out transaction on-chain for the received on-chain request; The observation node is configured to perform block synchronization or process query requests based on the call of the transaction gateway.
[0063] Specifically, Figure 5As shown, the transaction parties may include institution A, institution B and institution C, and each transaction party includes a transaction gateway and an observation node.
[0064] The transaction gateway can receive the user's on-chain request or query request, and package it and transmit it to the blockchain node gateway through the network gate in the form of file ferry. When receiving the on-chain request, the blockchain node gateway can send the on-chain request to the blockchain node to realize the transaction on-chain.
[0065] After the blockchain node completes the transaction on the chain, it can send response data to the blockchain node gateway. The blockchain node gateway can return the response data to the transaction gateway through the network gate in the form of file ferry, and the transaction gateway will feedback to the user.
[0066] When a new block is generated, the blockchain node gateway can pull all the new blocks through the RPC interface of the blockchain node, package them into new block files and complete the signature, and then transmit them to all transaction gateways in the form of file ferry.
[0067] The transaction gateway receives the new block file and calls the observation node to achieve block synchronization.
[0068] When receiving a query request, the transaction gateway can call the observation node, process the query request through the observation node, obtain the return response from the observation node, and feed back the return response to the user.
[0069] Based on the above embodiments, Figure 6 As shown, a cross-gateway blockchain data operation device provided in an embodiment of the present invention is applied to a transaction gateway, including: The packaging module 61 is used to package the on-chain requests in the transaction pool to obtain a request package; the transaction pool is used to store the on-chain requests initiated by the user; The file ferry module 62 is used to sign the request package, obtain signature data, write the signature data and the request package into the chain file, and ferry the chain file to the blockchain network; the chain file is used to be chained to the blockchain.
[0070] Based on the above embodiment, a first synchronization module is further included, which is used for: Receive a new block file, which is obtained by file ferry after being signed; Verify and parse the new block file to obtain a block parsing file; The observation node is called to synchronize the block parsing file.
[0071] Based on the above embodiment, a query module is further included, which is used to: Receive user query requests; The observation node is called to process the query request, a return response from the observation node is obtained, and the return response is fed back to the user.
[0072] Based on the above embodiment, a feedback module is further included, which is used for: Receiving an on-chain response file, wherein the on-chain response file is obtained by file ferrying; The on-chain response file is signed and parsed to obtain a response parsing file, which is then fed back to the user.
[0073] Specifically, the functions of each module in the cross-gate blockchain data operation device provided in the embodiment of the present invention correspond one-to-one to the operation procedures of each step in the above-mentioned method embodiment, and the effects achieved are also consistent. Please refer to the above-mentioned embodiment for details, which will not be described in detail in the embodiment of the present invention.
[0074] Based on the above embodiments, Figure 7 As shown, a cross-gateway blockchain data operation device provided in an embodiment of the present invention is applied to a blockchain node gateway, including: The receiving module 71 is used to receive the on-chain file of the transaction gateway; the on-chain file includes signature data and a request package, and the request package is obtained by packaging the on-chain request; The on-chain module 72 is used to parse and verify the signature of the request package, and after the signature verification is passed, send the on-chain request to the blockchain node for transaction on-chain.
[0075] Based on the above embodiment, a second synchronization module is further included, which is used for: Determine that there is a new block in the blockchain, and package the new block into a new block file; The new block file is signed, and the signed new block file is transferred to a transaction gateway, and the transaction gateway is used to call an observation node to synchronize the new block file.
[0076] Specifically, the functions of each module in the cross-gate blockchain data operation device provided in the embodiment of the present invention correspond one-to-one to the operation procedures of each step in the above-mentioned method embodiment, and the effects achieved are also consistent. Please refer to the above-mentioned embodiment for details, which will not be described in detail in the embodiment of the present invention.
[0077] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the cross-gateway blockchain data operation method provided in the above embodiments.
[0078] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, or the part that contributes to the relevant technology or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0079] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the cross-gateway blockchain data operation method provided in the above embodiments.
[0080] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the cross-gateway blockchain data operation method provided in the above-mentioned embodiments.
[0081] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0082] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiment.
[0083] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A cross-gateway blockchain data operation method, characterized in that: Applied to transaction gateways, including: Packing the on-chain requests in the transaction pool to obtain a request package; the transaction pool is used to store the on-chain requests initiated by the user; The request package is signed to obtain signature data, and the signature data and the request package are written into a chain file, and the chain file is transferred to the blockchain network; the chain file is used to be chained to the blockchain.
2. The cross-gateway blockchain data operation method according to claim 1 is characterized in that: Also includes: Receive a new block file, which is obtained by file ferry after being signed; Verify and parse the new block file to obtain a block parsing file; The observation node is called to synchronize the block parsing file.
3. The cross-gateway blockchain data operation method according to claim 2 is characterized in that: Also includes: Receive user query requests; The observation node is called to process the query request, a return response from the observation node is obtained, and the return response is fed back to the user.
4. The cross-gateway blockchain data operation method according to any one of claims 1 to 3, characterized in that: Said ferrying the on-chain file to the blockchain network then includes: Receiving an on-chain response file, wherein the on-chain response file is obtained by file ferrying; The on-chain response file is signed and parsed to obtain a response parsing file, which is then fed back to the user.
5. A cross-gateway blockchain data operation method, characterized in that: Applied to blockchain node gateway, including: Receive the on-chain file from the transaction gateway; the on-chain file includes signature data and a request package, and the request package is obtained by packaging the on-chain request; The request package is parsed and signed, and after the signature is verified, the on-chain request is sent to the blockchain node for transaction on-chain.
6. The cross-gateway blockchain data operation method according to claim 5 is characterized in that: Also includes: Determine that there is a new block in the blockchain, and package the new block into a new block file; The new block file is signed, and the signed new block file is transferred to a transaction gateway, and the transaction gateway is used to call an observation node to synchronize the new block file.
7. A blockchain system, characterized in that: include: The transaction gateway and observation node located on the transaction side, and the blockchain node gateway and blockchain node located on the blockchain side; The transaction gateway is used to execute the cross-gateway blockchain data operation method according to any one of claims 1 to 4; The blockchain node gateway is used to execute the cross-gateway blockchain data operation method according to any one of claims 5-6; The blockchain node is used to carry out transaction on-chain for the received on-chain request; The observation node is configured to perform block synchronization or process query requests based on the call of the transaction gateway.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the cross-gateway blockchain data operation method as described in any one of claims 1-6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, the cross-gateway blockchain data operation method as described in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by the processor, the cross-gateway blockchain data operation method as described in any one of claims 1 to 6 is implemented.
