Blockchain-based data processing method, server, device, and storage medium

CN116244370BActive Publication Date: 2026-09-08WELAB INFORMATION TECH SHENZHEN LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211539453.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-02
Publication Date
2026-09-08
Estimated Expiration
2042-12-02

AI Technical Summary

Technical Problem

现有技术中,为保证数据安全,上述数据操作均在区块链系统上执行,但区块链系统在通过智能合约执行复杂查询,数据统计,数据分析,数据计算等方面操作时效率较低

Benefits of technology

[0014] This invention categorizes contract events based on their operation type. Contract events that cause changes to the data stored on the blockchain are executed on-chain to ensure blockchain data security, while contract events that do not cause changes to the data stored on the blockchain are executed off-chain to improve the data processing efficiency of the blockchain server. Furthermore, the business database that performs off-chain operations is connected to the blockchain system separately through a blockchain synchronization module, which improves data processing efficiency while ensuring the security of business data in off-chain operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116244370B_ABST
    Figure CN116244370B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of data processing, and discloses a data processing method based on a blockchain, which comprises the following steps: receiving an intelligent contract sent by a business system terminal, wherein the intelligent contract comprises one or more contract events related to business data; analyzing the contract events through a blockchain synchronization module, extracting corresponding business data from the blockchain according to the event name and event parameters of the contract events, and synchronizing the business data to a preset off-chain business database; judging the operation type of the contract events through a blockchain agent module, executing a first operation type contract event on the corresponding business data of the intelligent contract in the blockchain, executing a second operation type contract event on the synchronized business data of the intelligent contract in the preset off-chain business database, and returning the execution result of the contract events to the business system terminal. The data processing method can improve the data processing efficiency and ensure the security of the business data of off-chain operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a data processing method, server, device and storage medium based on blockchain. Background Technology

[0002] Federated learning is a collaborative machine learning modeling approach involving multiple institutions. During the modeling process, a decentralized, tamper-proof, and traceable distributed storage method (blockchain system) is needed to store the public information and datasets of federated members, as well as data operations on member and dataset information. In existing technologies, to ensure data security, all of these data operations are executed on the blockchain system. However, blockchain systems are inefficient when performing complex queries, data statistics, data analysis, and data computations through smart contracts. Therefore, there is a need to provide a method to improve the data processing efficiency of blockchain systems without compromising data security. Summary of the Invention

[0003] In view of the above, it is necessary to provide a blockchain-based data processing method to improve the data processing efficiency of blockchain systems without compromising data security.

[0004] To achieve the above objectives, the present invention provides a blockchain-based data processing method applied to a blockchain server, the method comprising: Receive smart contracts sent by the business system terminal, wherein the smart contracts include one or more contract events related to business data; The contract event is parsed by the blockchain synchronization module, and the corresponding business data is extracted from the blockchain according to the event name and event parameters of the contract event. The business data is then synchronized to the preset off-chain business database. The blockchain proxy module determines the operation type of the contract event, executes a first operation type contract event on the corresponding business data of the smart contract in the blockchain, and executes a second operation type contract event on the synchronized business data of the smart contract in the preset off-chain business database. The first operation type contract event is a contract event that updates business data, and the second operation type contract event is a contract event that does not update business data. The execution results of the contract events contained in the smart contract are returned to the business system terminal.

[0005] Optionally, the blockchain server includes a blockchain system, a blockchain synchronization module, and a blockchain agent module; the blockchain agent module is communicatively connected to the business system terminal participating in federated learning, the blockchain agent module is communicatively connected to the blockchain system, the blockchain system is communicatively connected to the blockchain synchronization module, and the blockchain synchronization module is communicatively connected to a preset off-chain business database.

[0006] Optionally, parsing the contract event via the blockchain synchronization module includes: The blockchain synchronization module monitors the changes in block height in real time to obtain information on newly added blocks. Obtain the contract events contained in the smart contract sent by the business system terminal from the newly added block information; Parse the contract event to obtain the corresponding event name and event parameters.

[0007] Optionally, the execution of the first operation type contract event on the corresponding business data of the smart contract in the blockchain includes: The blockchain proxy module encapsulates the data operation functions corresponding to the first operation type contract event into a function interface, which allows the business system terminal to perform data upload and modification operations on the blockchain through the function interface.

[0008] Optionally, the execution of a second operation type contract event on the synchronized business data of the smart contract in a preset off-chain business database includes: The blockchain proxy module performs off-chain operations on the business data corresponding to the contract event in a preset off-chain business database based on the second operation type contract event.

[0009] Optionally, returning the execution result of the contract events contained in the smart contract to the business system terminal includes: The blockchain proxy module responds to the execution result of the first operation type contract event and obtains the execution result of the second operation type contract event. The execution results of the first operation type contract event and the second operation type contract event are returned to the business system terminal for display.

[0010] Optionally, the execution result of the first operation type contract event is either a successful on-chain data operation or a failed on-chain data operation, while the execution result of the second operation type contract event is the result information of the off-chain data operation.

[0011] Furthermore, to achieve the above objectives, the present invention also provides a blockchain server, the blockchain server comprising: A blockchain proxy module is used to receive smart contracts sent by a business system terminal. The smart contract includes one or more contract events related to business data. The module determines the operation type of the contract events, executes a first operation type contract event on the corresponding business data of the smart contract in the blockchain, and executes a second operation type contract event on the synchronized business data of the smart contract in a preset off-chain business database. The first operation type contract event is a contract event that updates business data, and the second operation type contract event is a contract event that does not update business data. The module returns the execution result of the contract events contained in the smart contract to the business system terminal. The blockchain system is used to respond to the first operation type contract event executed by the blockchain proxy module on the corresponding business data of the smart contract in the blockchain, and to return the execution result of the first operation type contract event to the blockchain proxy module. The blockchain synchronization module is used to parse the contract event, extract the corresponding business data from the blockchain according to the event name and event parameters of the contract event, and synchronize the business data to the preset off-chain business database.

[0012] Furthermore, to achieve the above objectives, the present invention also provides an electronic device, the electronic device comprising: Memory, storing at least one computer program; and The processor executes the program stored in the memory to implement the blockchain-based data processing method described above.

[0013] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium storing at least one computer program, which is executed by a processor in an electronic device to implement the blockchain-based data processing method described above.

[0014] This invention categorizes contract events based on their operation type. Contract events that cause changes to the data stored on the blockchain are executed on-chain to ensure blockchain data security, while contract events that do not cause changes to the data stored on the blockchain are executed off-chain to improve the data processing efficiency of the blockchain server. Furthermore, the business database that performs off-chain operations is connected to the blockchain system separately through a blockchain synchronization module, which improves data processing efficiency while ensuring the security of business data in off-chain operations. Attached Figure Description

[0015] Figure 1 This is a flowchart of an embodiment of the blockchain-based data processing method of the present invention; Figure 2 This is a schematic diagram of an embodiment of the electronic device of the present invention; Figure 3This is a schematic diagram of an embodiment of the blockchain server of the present invention; Figure 4 This is a schematic diagram illustrating an embodiment of data interaction between the blockchain server and the business system terminal according to the present invention.

[0016] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0017] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without inventive effort are within the scope of protection of this invention.

[0018] It should be noted that the descriptions involving "first," "second," etc., in this invention are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of that feature. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by this invention.

[0019] like Figure 1 The diagram shown is a flowchart of an embodiment of the blockchain-based data processing method of the present invention. The blockchain-based data processing method is applied to a blockchain server and includes steps S1-S4.

[0020] S1. Receive a smart contract sent by the business system terminal, wherein the smart contract includes one or more contract events related to business data.

[0021] Specifically, the blockchain server includes a blockchain system, a blockchain synchronization module, and a blockchain agent module; the blockchain agent module is communicatively connected to the business system terminal participating in federated learning, the blockchain agent module is communicatively connected to the blockchain system, the blockchain system is communicatively connected to the blockchain synchronization module, and the blockchain synchronization module is communicatively connected to a preset off-chain business database.

[0022] This application establishes communication between the business system terminal and the blockchain system through a blockchain proxy module, which enhances the security of the data stored in the blockchain system. It also establishes communication between the blockchain system and the off-chain business database through a blockchain synchronization module, which ensures data synchronization between the data stored in the off-chain business database and the data stored in the blockchain system. At the same time, through multi-layer communication switching, it prevents the leakage of synchronized data stored in the off-chain business database to the business system terminal, thereby improving the data security and confidentiality of the entire blockchain server.

[0023] Specifically, users use the Solidity language to write smart contracts containing one or more contract events on the business system terminal according to the business type and business data, and publish them to the blockchain system. For example, a member contract (MemberContract.sol) or a dataset contract (DataSetContract.sol) containing events such as inserting, modifying, and querying business data.

[0024] S2. The contract event is parsed through the blockchain synchronization module, and the corresponding business data is extracted from the blockchain according to the event name and event parameters of the contract event. The business data is then synchronized to the preset off-chain business database.

[0025] Specifically, the blockchain system uses a blockchain synchronization module to monitor changes in block height in real time to obtain information about newly added blocks. From this information, it retrieves contract events contained in smart contracts sent by business system terminals, and parses these events to obtain their names and parameters. Block height is analogous to latitude and longitude on the blockchain; it gives a block a "coordinate," accurately describing its position on the chain. Generally, the longer the blockchain, the higher the block height. Higher blocks mean they occurred more recently; blockchains with faster block generation times often have larger block heights. Therefore, by monitoring changes in block height in real time, newly added blocks can be identified on the blockchain.

[0026] Specifically, the preset off-chain business database is a pre-set relational database connected to the blockchain system.

[0027] S3. The operation type of the contract event is determined by the blockchain proxy module. The first operation type contract event is executed on the corresponding business data of the smart contract in the blockchain, and the second operation type contract event is executed on the synchronized business data of the smart contract in the preset off-chain business database. The first operation type contract event is a contract event that updates business data, and the second operation type contract event is a contract event that does not update business data.

[0028] Specifically, the blockchain proxy module classifies contract events into a first type of operation contract event and a second type of operation contract event. The first type of operation contract event is a contract event that updates business data, such as adding, deleting, or modifying business data, which will change the data stored in the blockchain. The second type of operation contract event is a contract event that does not update business data, such as querying, statistically analyzing, or performing other operations on business data, which will not change the data stored in the blockchain.

[0029] Specifically, the blockchain proxy module encapsulates the data operation functions corresponding to the first operation type contract event into a functional interface to perform on-chain operations on business data according to the first operation type contract event. The business system terminal realizes the operation of putting data on the chain and changing the on-chain data through the above functional interface, such as adding a member interface, modifying a member interface, adding, deleting, and modifying business data.

[0030] Specifically, the blockchain proxy module performs off-chain operations on the business data corresponding to the contract event in a preset off-chain business database based on the second operation type contract event. The business system terminal performs off-chain operations on the business data in the preset off-chain business database through the blockchain proxy module without changing the data, such as querying, statistics, analysis, calculation, and reporting of the business data.

[0031] This application categorizes contract events based on their operation type. Contract events that cause changes to the data stored on the blockchain are executed on-chain to ensure blockchain data security, while contract events that do not cause changes to the data stored on the blockchain are executed off-chain to improve the data processing efficiency of the blockchain server.

[0032] S4. Return the execution result of the contract events contained in the smart contract to the business system terminal.

[0033] Specifically, the blockchain proxy module responds to the execution result of the first operation type contract event and obtains the execution result of the second operation type contract event, then returns both execution results to the business system terminal for display. The execution result of the first operation type contract event indicates whether the on-chain data operation was successful or failed, while the execution result of the second operation type contract event indicates the result of the off-chain data operation.

[0034] As can be seen from the above embodiments, the blockchain-based data processing method proposed in this invention classifies contract events according to their operation types. Contract events that cause changes to the blockchain stored data are executed on-chain to ensure blockchain data security, while contract events that do not cause changes to the blockchain stored data are executed off-chain to improve the data processing efficiency of the blockchain server. Furthermore, the business database that performs off-chain operations is connected to the blockchain system separately through a blockchain synchronization module, which improves data processing efficiency while ensuring the security of business data in off-chain operations.

[0035] like Figure 2 The diagram shown is a schematic representation of an embodiment of the electronic device of the present invention. The electronic device 1 is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions. The electronic device 1 can be a computer, a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing, which is a type of distributed computing consisting of a super virtual computer composed of a group of loosely coupled computers.

[0036] In this embodiment, the electronic device 1 includes, but is not limited to, a memory 11, a processor 12, and a network interface 13 that can be interconnected via a system bus. The memory 11 stores a blockchain-based data processing program 10, which can be executed by the processor 12. Figure 3 Only an electronic device 1 with components 11-13 and a blockchain-based data processing program 10 is shown. Those skilled in the art will understand that... Figure 3 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown, or combine certain components, or have different component arrangements.

[0037] The memory 11 includes RAM and at least one type of readable storage medium. The RAM provides a cache for the operation of the electronic device 1; the readable storage medium can be volatile or non-volatile. Specifically, the readable storage medium can be a storage medium such as flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the readable storage medium can be an internal storage unit of the electronic device 1, such as the hard disk of the electronic device 1; in other embodiments, the storage medium can also be an external storage device of the electronic device 1, such as a plug-in hard disk, smart media card (SMC), secure digital card (SD), flash card, etc., equipped on the electronic device 1. In this embodiment, the readable storage medium of the memory 11 mainly includes a program storage area and a data storage area. The program storage area is typically used to store the operating system and various application software installed on the electronic device 1, such as the code of the blockchain-based data processing program 10 in one embodiment of the present invention. The data storage area can store data created based on the use of blockchain nodes, such as various types of data that have been output or will be output.

[0038] In some embodiments, processor 12 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. Processor 12 is typically used to control the overall operation of the electronic device 1, such as performing control and processing related to data interaction or communication with other devices. In this embodiment, processor 12 is used to run program code stored in memory 11 or process data, such as running a blockchain-based data processing program 10.

[0039] The network interface 13 may include a wireless network interface or a wired network interface, which is used to establish a communication connection between the electronic device 1 and the client (not shown in the figure).

[0040] Optionally, the electronic device 1 may further include a user interface, which may include a display, an input unit such as a keyboard, and optionally, a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an organic light-emitting diode (OLED) touchscreen, etc. The display may also be appropriately referred to as a screen or display unit, used to display information processed in the electronic device 1 and to display a visual user interface.

[0041] In one embodiment of the present invention, when the blockchain-based data processing program 10 is executed by the processor 12, the following steps S1-S4 are performed.

[0042] S1. Receive a smart contract sent by the business system terminal, wherein the smart contract includes one or more contract events related to business data; S2. The contract event is parsed through the blockchain synchronization module, and the corresponding business data is extracted from the blockchain according to the event name and event parameters of the contract event. The business data is then synchronized to the preset off-chain business database. S3. The operation type of the contract event is determined by the blockchain proxy module. The first operation type contract event is executed on the corresponding business data of the smart contract in the blockchain, and the second operation type contract event is executed on the synchronized business data of the smart contract in the preset off-chain business database. The first operation type contract event is a contract event that updates business data, and the second operation type contract event is a contract event that does not update business data. S4. Return the execution result of the contract events contained in the smart contract to the business system terminal.

[0043] The specific operational steps implemented in steps S1-S4 above are largely the same as those in an embodiment of the blockchain-based data processing method of the present invention, and will not be repeated here.

[0044] In other embodiments, the blockchain-based data processing program 10 may be divided into one or more modules, which are stored in the memory 11 and executed by one or more processors (processor 12 in this embodiment) to complete the present invention. The module referred to in the present invention refers to a series of computer program instruction segments that can perform specific functions and are used to describe the execution process of the blockchain-based data processing program 10 in the electronic device 1.

[0045] like Figure 3 The diagram shown is a schematic representation of an embodiment of the blockchain server of the present invention.

[0046] In a first embodiment of the present invention, the blockchain server 100 includes a blockchain proxy module 110, a blockchain system 120, and a blockchain synchronization module 130, as exemplarily: The blockchain proxy module 110 is used to receive smart contracts sent by the business system terminal. The smart contracts include one or more contract events related to business data. The module determines the operation type of the contract events, executes a first operation type contract event on the corresponding business data of the smart contract in the blockchain, and executes a second operation type contract event on the synchronized business data of the smart contract in a preset off-chain business database. The first operation type contract event is a contract event that updates business data, and the second operation type contract event is a contract event that does not update business data. The module returns the execution result of the contract events contained in the smart contract to the business system terminal. The blockchain system 120 is used to respond to a first operation type contract event executed by the blockchain proxy module on the corresponding business data of the smart contract in the blockchain, and to return the execution result of the first operation type contract event to the blockchain proxy module. The blockchain synchronization module 130 is used to parse the contract event, extract the corresponding business data from the blockchain according to the event name and event parameters of the contract event, and synchronize the business data to the preset off-chain business database.

[0047] The specific operation steps implemented when the blockchain proxy module 110, blockchain system 120 and blockchain synchronization module 130 are executed are largely the same as those in the above embodiments, and will not be repeated here.

[0048] like Figure 4 The diagram illustrates an embodiment of data interaction between a blockchain server and a business system terminal according to the present invention. The business system terminal initiates a request to the blockchain proxy module of the blockchain server. The blockchain proxy module performs on-chain operations on the blockchain system based on the request. The blockchain synchronization module retrieves the data corresponding to the request from the blockchain system and synchronizes it to a preset off-chain business database for the blockchain proxy module to perform off-chain operations based on the request. Finally, the blockchain proxy module returns the results of the on-chain and off-chain operations to the business system terminal.

[0049] Furthermore, this invention also proposes a computer-readable storage medium, which can be volatile or non-volatile. Specifically, the computer-readable storage medium can be any one or any combination of several of the following: hard disk, multimedia card, SD card, flash memory card, SMC, read-only memory (ROM), erasable programmable read-only memory (EPROM), portable compact disc read-only memory (CD-ROM), USB memory, etc. The computer-readable storage medium stores a blockchain-based data processing program 10.

[0050] When the blockchain-based data processing program 10 is executed by the processor, it performs the following operations: A1. Receive a smart contract sent by a business system terminal, wherein the smart contract includes one or more contract events related to business data; A2. The contract event is parsed through the blockchain synchronization module, and the corresponding business data is extracted from the blockchain according to the event name and event parameters of the contract event. The business data is then synchronized to the preset off-chain business database. A3. The operation type of the contract event is determined by the blockchain proxy module. The first operation type contract event is executed on the corresponding business data of the smart contract in the blockchain, and the second operation type contract event is executed on the synchronized business data of the smart contract in the preset off-chain business database. The first operation type contract event is a contract event that updates business data, and the second operation type contract event is a contract event that does not update business data. A4. Return the execution results of the contract events contained in the smart contract to the business system terminal.

[0051] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0052] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, blockchain server, article, or method that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, blockchain server, article, or method. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, blockchain server, article, or method that includes that element.

[0053] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0054] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.

Claims

1. A data processing method based on blockchain, applied to a blockchain server, characterized in that, The method includes: Receive smart contracts sent by the business system terminal, wherein the smart contracts include one or more contract events related to business data; The contract event is parsed by the blockchain synchronization module, and the corresponding business data is extracted from the blockchain according to the event name and event parameters of the contract event. The business data is then synchronized to the preset off-chain business database. The blockchain proxy module determines the operation type of the contract event, encapsulates the data operation function corresponding to the first operation type contract event into a function interface so that the business system terminal can realize the operation of putting data on the chain and changing the on-chain data through the function interface. According to the second operation type contract event, the business data corresponding to the contract event is operated on the off-chain without changing the data in the preset off-chain business database. The first operation type contract event is a contract event that updates business data, and the second operation type contract event is a contract event that does not update business data. The execution results of the contract events contained in the smart contract are returned to the business system terminal.

2. The data processing method based on blockchain as described in claim 1, characterized in that, The blockchain server includes a blockchain system, a blockchain synchronization module, and a blockchain agent module. The blockchain agent module communicates with the business system terminal participating in federated learning, the blockchain agent module communicates with the blockchain system, the blockchain system communicates with the blockchain synchronization module, and the blockchain synchronization module communicates with a preset off-chain business database.

3. The data processing method based on blockchain as described in claim 1, characterized in that, The process of parsing the contract event via the blockchain synchronization module includes: The blockchain synchronization module monitors the changes in block height in real time to obtain information on newly added blocks. Obtain the contract events contained in the smart contract sent by the business system terminal from the newly added block information; Parse the contract event to obtain the corresponding event name and event parameters.

4. The data processing method based on blockchain as described in claim 1, characterized in that, The step of returning the execution result of the contract events contained in the smart contract to the business system terminal includes: The blockchain proxy module responds to the execution result of the first operation type contract event and obtains the execution result of the second operation type contract event. The execution results of the first operation type contract event and the second operation type contract event are returned to the business system terminal for display.

5. The data processing method based on blockchain as described in claim 4, characterized in that, The execution result of the first type of contract event is either a successful on-chain data operation or a failed on-chain data operation, while the execution result of the second type of contract event is the result information of the off-chain data operation.

6. A blockchain server, characterized in that, The blockchain server includes: A blockchain proxy module is used to receive smart contracts sent by a business system terminal. The smart contract includes one or more contract events related to business data. The module determines the operation type of the contract event, encapsulates the data operation function corresponding to the first operation type contract event into a function interface so that the business system terminal can perform data uploading and modification operations on the on-chain data through the function interface. Based on the second operation type contract event, the module performs off-chain operations on the business data corresponding to the contract event in a preset off-chain business database without changing the data. The first operation type contract event is a contract event that updates business data, and the second operation type contract event is a contract event that does not update business data. The module returns the execution result of the contract events contained in the smart contract to the business system terminal. The blockchain system is used to respond to the first operation type contract event executed by the blockchain proxy module on the corresponding business data of the smart contract in the blockchain, and to return the execution result of the first operation type contract event to the blockchain proxy module. The blockchain synchronization module is used to parse the contract event, extract the corresponding business data from the blockchain according to the event name and event parameters of the contract event, and synchronize the business data to the preset off-chain business database.

7. An electronic device, characterized in that, The electronic device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the blockchain-based data processing method as described in any one of claims 1 to 5.

8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the blockchain-based data processing method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Block chain network management and control method and device, equipment and storage medium

    CN110543525A

  • Data synchronization method and system based on block chain, electronic equipment and storage medium

    CN114647700A

  • Data uplink method based on multi-chain array and multi-chain array system thereof

    CN114722120A