Data management method and device and related equipment

By establishing a listening channel and analyzing profile data in the blockchain application system, the problem of inefficiency in data query and statistics is solved, rapid search and statistics are realized, and system availability and user experience are improved.

CN119441340APending Publication Date: 2025-02-14AISINO CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310952470.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-31
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In blockchain application systems, existing databases are inefficient in data query and statistics, resulting in poor user experience and cumbersome data management process, affecting system availability.

Method used

By establishing a monitoring channel between the application system end of the distributed blockchain application system and the blockchain network node, monitoring the relevant data of user operations, analyzing the summary data of custom contract events, and storing it in a local database, Supports quick query and statistics of data.

Benefits of technology

It realizes rapid search and statistics of user operation data, improves query efficiency and system availability, simplifies the data management process, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119441340A_ABST
    Figure CN119441340A_ABST
Patent Text Reader

Abstract

The invention provides a data management method and device and related equipment, and the method comprises the steps: building a monitoring channel between at least one application system end of a distributed block chain application system and a block chain network node, and carrying out the monitoring of the related data of a user operation, chained to the block chain network node, of the application system end; when it is monitored that the operation including the custom contract event occurs at the application system end, analyzing summary data of the operation corresponding to the custom contract event, and storing the summary data in a local database corresponding to the application system end to support query or statistics of data associated with user operation. According to the mode of storing the user operation data, the data writing process is simple and effective, when the user operation data needs to be searched or counted, the working process can be achieved through the local database stored with the summary data, the searching or counting process is safe and effective, and the query efficiency and the system availability are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to a data management method, device and related equipment. Background Art

[0002] With the application of blockchain technology, its natural technical characteristics such as effective prevention of data tampering and decentralization stand out, and are widely used to resolve the data security trust crisis in the data generated by multi-party communication cooperation and create a safe and reliable data application environment. In the current blockchain technology application system, it has become a consensus in the industry that the target data for various generated data storage should not be too large. Therefore, when the alliance chain widely used in China is used to store and manage the generated data, most of them use embedded databases such as leveldb and couchdb. When this database is applied to the application system of the blockchain that stores massive data, the write operation is relatively simple and easy, but when it is used for data management or query work scenarios, due to the database structure, it is often necessary to search in memory and various hierarchical files from new to old, resulting in low data query and statistical efficiency, and the data management process is relatively cumbersome, which greatly affects the availability of the blockchain-based application system and the user experience is not good. For this reason, how to provide a data management method that is convenient for fast search and statistics of written data in the blockchain application system has become a technical problem that needs to be solved in the industry. Summary of the invention

[0003] In view of this, embodiments of the present application provide a data management method, device, and storage medium to at least partially solve the above problems.

[0004] In a first aspect, an embodiment of the present application provides a data management method, which is applied to manage data of a distributed blockchain application system, including:

[0005] Establishing a monitoring channel between at least one application system end of the distributed blockchain application system and a blockchain network node, for monitoring relevant data of user operations uploaded to the blockchain network node by the application system end;

[0006] When monitoring an operation including a custom contract event on the application system side, parsing summary data of the operation corresponding to the custom contract event;

[0007] The summary data is stored in a local database corresponding to the application system to support query or statistics of data associated with user operations.

[0008] Optionally, in an embodiment of the present application, the method further comprises: generating a hash table of the data stored in the local database of the at least one application system end based on a preset rule;

[0009] Correspondingly, storing the summary data in a local database corresponding to the application system end includes:

[0010] Based on the preset rule, generating a hash value corresponding to the summary data extraction item;

[0011] determining whether there is an identical summary data extraction item in the hash table according to the hash value of the summary data extraction item;

[0012] If it does not exist, the summary data is stored in the local database corresponding to the application system end, and the hash table is updated.

[0013] Optionally, in an embodiment of the present application, the method further includes:

[0014] Containerizing the at least one application system end to deploy a single or multiple containers on the application system end;

[0015] Network communication between each container and the blockchain network node is established.

[0016] Optionally, in an embodiment of the present application, the method further includes: configuring a hash table of at least one application system-side local database in a single or multiple containers of the application system-side containerization.

[0017] Optionally, in an embodiment of the present application, if the summary data does not exist, if the summary data does not exist, the summary data is stored in a local database corresponding to the application system end, including:

[0018] Setting a distributed lock between the application system end and the corresponding local database;

[0019] When it is determined that the summary data extraction item does not exist in the hash table of the data stored in the local database of the application system end, the data operation applying for the distributed lock permission is allowed to store the summary data in the local database corresponding to the application system end.

[0020] Optionally, in one embodiment of the present application, the method further includes: configuring a built-in blockchain client for the at least one application system end for uploading data to the chain.

[0021] In a second aspect, based on the data management method described in the first aspect of the present application, the present application further provides a data management device, including:

[0022] An establishment module is used to establish a monitoring channel between at least one application system end of the distributed blockchain application system and a blockchain network node, and is used to monitor the relevant data of user operations uploaded by the application system end to the blockchain network node;

[0023] A parsing module, for parsing summary data of the operation corresponding to the custom contract event when an operation including the custom contract event occurs on the application system side;

[0024] The management module is used to store the summary data in a local database corresponding to the application system end to support query or statistics of data associated with user operations.

[0025] Optionally, in an embodiment of the present application, the data management device further includes a generation module, which is used to generate a hash table of the data stored in the local database of the at least one application system end based on a preset rule;

[0026] Correspondingly, the management module is also used for:

[0027] Based on the preset rule, generating a hash value corresponding to the summary data;

[0028] determining whether there is an identical summary data extraction item in the hash table according to the hash value of the summary data extraction item;

[0029] If it does not exist, the summary data is stored in the local database corresponding to the application system end, and the hash table is updated.

[0030] In a third aspect, an embodiment of the present application further provides a computer storage medium having computer executable instructions stored thereon, and when the computer executable instructions are executed, any one of the data management methods described in the first aspect of the present application is performed.

[0031] In a fourth aspect, an embodiment of the present application further provides an electronic device, including:

[0032] one or more processors;

[0033] a memory for storing one or more programs,

[0034] When the one or more programs are executed by the one or more processors, the one or more processors implement any one of the data management methods described in the first aspect of the present application.

[0035] The present application provides a data management method, device and related equipment. The present application provides a data management method, device and related equipment. By establishing a monitoring channel between at least one application system end of a distributed blockchain application system and a blockchain network node, the monitoring channel is used to monitor the relevant data of user operations on the application system end to the blockchain network node; when an operation containing a custom contract event is monitored on the application system end, the summary data of the operation corresponding to the custom contract event is parsed, and the summary data is stored in the local database of the corresponding application system end to support the query or statistics of the data associated with the user operation, so as to support the query and statistics of the user operation data. This method of storing user operation data is simple and effective in the data writing process. When it is necessary to search or count the user operation, the working process can be realized through the local database storing the summary data. The search or statistics process is safe and effective, which improves the query efficiency and system availability. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0037] Figure 1 A schematic diagram of a workflow of a data management method provided in an embodiment of the present application;

[0038] Figure 2 A schematic diagram of the structure of a data management device provided in an embodiment of the present application;

[0039] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0040] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.

[0041] It should be understood that the various steps described in the method implementation of the present application can be performed in different orders and / or performed in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present application is not limited in this respect.

[0042] Embodiment 1

[0043] The present application embodiment provides a data management method, which is applied to manage the data of a distributed blockchain application system, such as Figure 1 As shown, Figure 1 A schematic diagram of a data management method provided in an embodiment of the present application includes:

[0044] Step S101, establish a monitoring channel between at least one application system end of the distributed blockchain application system and the blockchain network node, so as to monitor the relevant data of the operation of the corresponding user on the blockchain network node of the at least one application system end through the monitoring channel. Among them, the application system end represents a server end of an application based on a distributed blockchain system, such as a system server end of a commercial transaction app. The relevant data of the user's operation is used to reflect the user's operation behavior on the system server end or the application end. In the embodiment of the present application, it specifically refers to operations that can trigger the execution of smart contracts on the chain, such as operations such as chaining information. In the embodiment of the present application, the relevant data can be complete data representing the user's operation, or it can be partial feature data, and the embodiment of the present application is not limited to this. Of course, the embodiment of the present application is only illustrative here, and does not mean that the present application is limited to this.

[0045] Step S102: When an operation containing a custom contract event occurs on the application system side, the summary data of the operation corresponding to the custom contract event is parsed. In an embodiment of the present application, the custom contract event is represented as an event set in the smart contract in the blockchain system that can be returned to the user, supporting the monitoring user to capture the blockchain transaction status and obtain some on-chain information. When the smart contract is executed and the blockchain transaction is completed, the user who monitors the event will receive a return and perform subsequent operations. The summary data is partial data extracted from the complete data recording the user's operation. In an embodiment of the present application, the custom contract event can be flexibly set according to the different applications installed on the application system side.

[0046] Step S103, storing the summary data in the local database corresponding to the application system end to support query or statistics of data associated with user operations. That is, when general query and statistics of user operations related to custom contract events are required, it can be completed by accessing the local database of the application system end. When detailed information related to user operations involving custom contract events is to be obtained or queried, it is necessary to access the blockchain network node to obtain complete data. Through this data access method that supports query and statistics of data, the efficiency of data query and statistics when facing massive stored data can be effectively improved, thereby improving system availability.

[0047] The embodiment of the present application here exemplifies the operation-related data of users in the blockchain system. Taking the blockchain evidence storage application as an example, when a user initiates an operation to store electronic evidence in a blockchain network node; the blockchain network node will store complete data related to the electronic evidence, including but not limited to the holder, evidence type, evidence storage time, evidence summary, blockchain transaction ID, evidence collection machine information, etc.; and the summary data is a part of the above-mentioned complete data, and one or more of them can be selected arbitrarily, such as selecting the holder, evidence type, and evidence storage time that need to be counted; a custom contract event is set in the expected relative evidence storage smart contract, which includes summary data. When the evidence storage is completed, all listening users will receive the data returned by the event to obtain the summary data, and then synchronize the summary data to the local database of the system application end to support the query or statistical functions of subsequent related practices.

[0048] Optionally, in an embodiment of the present application, the data management method further includes: generating a hash table of stored data in the local database of the at least one application system end based on a preset rule; correspondingly, storing the summary data in the local database of the corresponding application system end, including: generating a hash value corresponding to the summary data extraction item based on the preset rule, determining whether there is an identical summary data extraction item in the hash table according to the hash value; if there is no identical summary data extraction item in the hash table, storing the summary data in the local database of the corresponding application system end. If there is an identical key value, it means that the data processing process is a repeated processing event, and the data processing flow ends here. In this way, while saving system resources, the writing of duplicate data is removed to a certain extent, and the local separate storage of summary data is realized, and the storage efficiency of event summary data is improved by comparing hash values, which also improves the efficiency of subsequent query and statistics of data. In the embodiment of the present application, the extraction item of the summary data is information that uniquely identifies the summary data, such as a transaction ID in a blockchain system. Of course, the embodiment of the present application is only an exemplary description of the extraction item of the Austrian data, and does not mean that the present application is limited to this.

[0049] Optionally, in one embodiment of the present application, the data management method further includes: containerizing the at least one application system end to deploy a single or multiple containers on the application system end, and establishing network communication between each container and the blockchain network node. Containerization is a virtualization technology that allows the creation of a self-sufficient Linux execution environment. Any program and all its dependencies can be packaged into a file and then shared on the network. Anyone can download the container and deploy it on their infrastructure. The containerization process requires few settings, and creating a container can be done programmatically, thus forming a powerful CI and CD pipeline. In the containerized application system end, multiple programs can be added to a single container or multiple containers. In an embodiment of the present application, the purpose of containerization is to realize containerization of the application program carried by the application system end, that is, the separation of responsibilities and functions between multiple containers, each container only undertakes its best business, and other additional tasks are handed over to other containers. In this embodiment, for example, multiple small containers can also be configured in any application system end to realize multi-containerization of the application system end, so as to prevent the occurrence of a situation where a single container downtime causes a system failure and cannot access the blockchain network node, thereby improving the working stability of the system. The containerized application system can also improve the efficiency of uploading complete data to the chain. In the embodiment of the present application, by containerizing the application system, that is, by configuring a single container or multiple containers, the load balancing of the data management process can be better achieved, so as to more conveniently and quickly realize the service and management of the blockchain application resources of the distributed blockchain system.

[0050] Furthermore, in the embodiments of the present application, the single container mode is suitable for deployment in application systems with a single function and low complexity, while the multi-container mode is suitable for deployment in application systems with a large number of microservices and a high complexity of work scenarios. This makes the data management method provided in the embodiments of the present application more flexible, high-performance, easy to expand, and easy to deploy. It can achieve rapid delivery through the containerization process, simplify the later operation and maintenance of the system, improve the operability of the system, and adapt to more different work scenario requirements.

[0051] Optionally, in one embodiment of the present application, the method further includes: configuring a hash table of at least one application system end in a single or multiple containers after the application system end is containerized. This enables the hash value of the event summary data extraction item to be compared with the corresponding application system end cache hash table through a single container or multiple containers deployed on the application system end, and determines whether the same summary data extraction item exists in the hash table, so as to improve the implementation efficiency of this technical step. And in the subsequent data management process, when it is determined that it is necessary to obtain summary data or complete data of the custom contract event operation that has occurred for query or statistics, the local database or blockchain network node can be targeted through the corresponding container to better achieve data management efficiency.

[0052] Optionally, in one embodiment of the present application, if there is no identical summary data extraction item, the summary data is stored in a local database corresponding to the application system end, including: setting a distributed lock (mechanism) between the application system end and the corresponding local database, and when it is determined that there is no summary data extraction item associated with the operation corresponding to the custom contract event in the hash table, the data operation that applies for and obtains the distributed lock permission is allowed to store the summary data in the local database corresponding to the application system end. Thereby further ensuring the ability of the local database to remove and store duplicate or identical data, improving the utilization rate of system resources, and to a certain extent ensuring the efficiency of later data search and the accuracy of data statistics. Specifically, in an embodiment of the present application, especially in an application system end with multi-container deployment, by comparing hash values ​​between multiple containers and subsequently storing event summary data in a local database, a distributed lock mechanism is introduced to better deduplicate data.

[0053] Optionally, in one embodiment of the present application, the method further comprises: configuring a built-in blockchain client for the at least one application system end for uploading data to the blockchain. In the blockchain node system, the blockchain client is software that is linked to the blockchain node in a point-to-point manner. The blockchain nodes can communicate with each other to form a peer-to-peer network, thereby ensuring the accuracy of uploading data to the blockchain network node.

[0054] The embodiment of the present application provides a data management method, which establishes a monitoring channel between at least one application system end of a distributed blockchain application system and a blockchain network node, and is used to monitor the relevant data of user operations on the application system end to the blockchain network node; when an operation containing a custom contract event is monitored on the application system end, the summary data of the operation corresponding to the custom contract event is parsed, and the summary data is stored in the local database of the corresponding application system end to support the query or statistics of the data associated with the user operation, so as to support the query and statistics of the user operation data. This method of storing user operation data is simple and effective in the data writing process. When it is necessary to search or count the user operation, the working process can be realized through the local database storing the summary data. The search or statistics process is safe and effective, which improves the query efficiency and system availability.

[0055] Embodiment 2

[0056] Based on the data management method described in the first embodiment of the present application, the present embodiment also provides a data management method 20, such as Figure 2 As shown, Figure 2 The present invention provides a data management device 20 according to an embodiment of the present invention. The data management device 20 includes:

[0057] Establishing module 201, used to establish a monitoring channel between at least one application system end of the distributed blockchain application system and a blockchain network node, and used to monitor the relevant data of the user operation uploaded by the application system end to the blockchain network node;

[0058] The parsing module 202 is used to parse the summary data of the operation corresponding to the custom contract event when monitoring the operation containing the custom contract event on the application system end;

[0059] The management module 203 is used to store the summary data in a local database corresponding to the application system end to support query or statistics of data associated with user operations.

[0060] Optionally, in an embodiment of the present application, the data management device further includes a generation module (not shown in the drawings) for generating a hash table of the data stored in the local database of the at least one application system end based on a preset rule;

[0061] Correspondingly, the management module 203 is also used for:

[0062] Based on the preset rules, generating a hash value corresponding to the summary data extraction item;

[0063] Determining whether there is an identical summary data extraction item in the hash table according to the hash value of the summary data extraction item;

[0064] If the same summary data extraction item does not exist in the hash table, the summary data is stored in the local database corresponding to the application system end, and the hash table is updated.

[0065] Optionally, in one embodiment of the present application, the data management device 20 further includes a deployment module (not shown in the accompanying drawings), which is used to containerize at least one application system end to deploy a single or multiple containers on the application system end, and establish network communication between each container and the blockchain network node. Containerization is a virtualization technology that allows the creation of a self-sufficient Linux execution environment. Any program and all its dependencies can be packaged into a file and then shared on the network. Anyone can download the container and deploy it on their infrastructure. The containerization process requires few settings, and creating a container can be done programmatically, thus forming a powerful CI and CD pipeline. In the containerized application system end, multiple programs can be added to a single container or multiple containers. In an embodiment of the present application, the purpose of containerization is to realize containerization of the application program carried by the application system end, that is, the separation of responsibilities and functions between multiple containers, each container only undertakes its best business, and other additional tasks are handed over to other containers. In this embodiment, for example, multiple small containers can be configured in any application system end to realize multi-containerization of the application system end, so as to prevent the occurrence of a situation where a single container crashes and causes a system failure and fails to access the blockchain network node, thereby improving the working stability of the system. The efficiency of uploading complete data to the chain can also be improved through the containerized application system end. In the embodiment of the present application, by containerizing the application system end, that is, by configuring a single container or multiple containers, the load balancing of the data management process can be better achieved, so as to more conveniently and quickly realize the service and management of the blockchain application resources of the distributed blockchain system.

[0066] Furthermore, in the embodiments of the present application, the single container mode is suitable for deployment in application systems with a single function and low complexity, while the multi-container mode is suitable for deployment in application systems with a large number of microservices and a high complexity of work scenarios. This makes the data management method provided in the embodiments of the present application more flexible, high-performance, easy to expand, and easy to deploy. It can achieve rapid delivery through the containerization process, simplify the later operation and maintenance of the system, improve the operability of the system, and adapt to more different work scenario requirements.

[0067] Optionally, in one embodiment of the present application, the deployment module is also used to: configure the hash table of at least one application system end in a single or multiple containers containerized by the application system end. This enables the hash value of the event summary data extraction item to be compared with the corresponding application system end local cache hash table through a single container or multiple containers deployed by the application system end, and determines whether the same summary data extraction item exists in the hash table, so as to improve the implementation efficiency of this technical step. And in the subsequent data management process, when it is determined that it is necessary to obtain summary data or complete data of the custom contract event operation that has occurred for query or statistics, the local database or blockchain network node can be targeted through the corresponding container to better achieve data management efficiency.

[0068] Optionally, in one embodiment of the present application, the management module 203 is also used to: set a distributed lock (mechanism) between the application system end and the corresponding local database, and when it is determined that there is no summary data extraction item associated with the operation corresponding to the custom contract event in the hash table, the data operation that applies for and obtains the distributed lock permission is allowed to store the summary data in the local database corresponding to the application system end. Thereby further ensuring the ability of the local database to remove and store duplicate or identical data, improving the utilization rate of system resources, and to a certain extent ensuring the efficiency of later data search and the accuracy of data statistics. Specifically, in an embodiment of the present application, especially in an application system end with multi-container deployment, by comparing hash values ​​between multiple containers and subsequently storing event summary data in a local database, a distributed lock mechanism is introduced to better deduplicate data.

[0069] Optionally, in one embodiment of the present application, the data management device 20 further includes a built-in module (not shown in the accompanying drawings) to configure a built-in blockchain client for the at least one application system end for data uplinking. In the blockchain node system, the blockchain client is software that is linked to the blockchain node in a point-to-point manner. Since the blockchain nodes can communicate with each other, a peer-to-peer network is formed. This ensures the accuracy of uplinking data to the blockchain network nodes.

[0070] An embodiment of the present application provides a data management device, which establishes a monitoring channel between at least one application system end of a distributed blockchain application system and a blockchain network node by setting an establishment module, so as to monitor the relevant data of user operations uploaded to the blockchain network node by the application system end; a parsing module is set to parse the summary data of the operation corresponding to the custom contract event when an operation containing a custom contract event is monitored on the application system end; a management module is set to store the summary data in a local database of the corresponding application system end to support query or statistics of data associated with user operations. This device for storing data related to custom contract events initiated by users has a simple structure and is easy to implement. The data writing process is simple and effective during use. When it is necessary to search or count contract events, the working process can be realized through the local database storing the summary data. The search or statistics process is safe and effective, thereby improving query efficiency and system availability.

[0071] Embodiment 3

[0072] The present application also provides a storage medium on which a computer program is stored. When the program is executed by a processor, any one of the data management methods described in the first embodiment of the present application is implemented. The data management method includes but is not limited to:

[0073] Establishing a monitoring channel between at least one application system end of the distributed blockchain application system and a blockchain network node, for monitoring relevant data of user operations uploaded to the blockchain network node by the application system end;

[0074] When monitoring an operation including a custom contract event on the application system side, parsing summary data of the operation corresponding to the custom contract event;

[0075] The summary data is stored in a local database corresponding to the application system to support query or statistics of data associated with user operations.

[0076] Embodiment 4:

[0077] The present application also provides an electronic device, such as Figure 3 As shown, the electronic device includes:

[0078] One or more processors 301;

[0079] The memory 303 is used to store one or more programs.

[0080] When the one or more programs are instructed to be executed by the one or more processors 301 through the communication bus 304 based on the operation command received through the communication interface 302, the one or more processors 301 implement any one of the data management methods described in the above embodiment 1. The data management method includes but is not limited to:

[0081] Establishing a monitoring channel between at least one application system end of the distributed blockchain application system and a blockchain network node, for monitoring relevant data of user operations uploaded to the blockchain network node by the application system end;

[0082] When monitoring an operation including a custom contract event on the application system side, parsing summary data of the operation corresponding to the custom contract event;

[0083] The summary data is stored in a local database corresponding to the application system to support query or statistics of data associated with user operations.

[0084] So far, the application has described specific embodiments of the subject matter. Other embodiments are within the scope of the appended claims. In some cases, the actions recorded in the claims can be performed in a different order and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing can be advantageous.

[0085] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system layer on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0086] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0087] The system layers, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0088] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0089] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, system layers, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0090] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0091] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, system layers or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0092] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific transactions or implement specific abstract data types. The present application may also be practiced in distributed computing environments where transactions are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0093] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system layer embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0094] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A data management method, applied to manage data in a distributed blockchain application system, characterized in that: include: Establishing a monitoring channel between at least one application system end of the distributed blockchain application system and a blockchain network node, for monitoring relevant data of user operations uploaded by the application system end to the blockchain network node; When monitoring an operation including a custom contract event on the application system side, parsing summary data of the operation corresponding to the custom contract event; The summary data is stored in a local database corresponding to the application system to support query or statistics of data associated with user operations.

2. The data management method according to claim 1, characterized in that: The method further comprises: generating a hash table of the data stored in the local database of the at least one application system end based on a preset rule; Correspondingly, storing the summary data in a local database corresponding to the application system end includes: Based on the preset rule, generating a hash value corresponding to the summary data extraction item; Determining, according to the hash value of the summary data extraction item, whether there is an identical summary data extraction item in the hash table; If it does not exist, the summary data is stored in the local database corresponding to the application system end, and the hash table is updated.

3. The data management method according to claim 2, characterized in that: The method further comprises: Containerizing the at least one application system end to deploy a single or multiple containers on the application system end; Network communication between each container and the blockchain network node is established.

4. The data management method according to claim 3, characterized in that: The method further includes: configuring a hash table of at least one application system-side local database in a single or multiple containers of the application system-side containerization.

5. The data management method according to claim 4, characterized in that: If the summary data does not exist, if the summary data does not exist, storing the summary data in a local database corresponding to the application system end includes: Setting a distributed lock between the application system end and the corresponding local database; When it is determined that the summary data extraction item does not exist in the hash table of the data stored in the local database of the application system end, the data operation applying for the distributed lock permission is allowed to store the summary data in the local database corresponding to the application system end.

6. The data management method according to claim 1, characterized in that: The method also includes: configuring a built-in blockchain client for the at least one application system end to upload data to the chain.

7. A data management device, used to manage data in a distributed blockchain application system, characterized in that: include: An establishment module is used to establish a monitoring channel between at least one application system end of the distributed blockchain application system and a blockchain network node, and is used to monitor the relevant data of user operations uploaded by the application system end to the blockchain network node; A parsing module, for parsing summary data of the operation corresponding to the custom contract event when an operation including the custom contract event occurs on the application system side; The management module is used to store the summary data in a local database corresponding to the application system end to support query or statistics of data associated with user operations.

8. The data management device according to claim 7, characterized in that: It also includes a generation module, which is used to generate a hash table of the data stored in the local database of the at least one application system end based on preset rules; Correspondingly, the management module is also used for: Based on the preset rule, generating a hash value corresponding to the summary data extraction item; Determining, according to the hash value of the summary data extraction item, whether there is an identical summary data extraction item in the hash table; If it does not exist, the summary data is stored in the local database corresponding to the application system end, and the hash table is updated.

9. A computer storage medium, characterized in that The computer storage medium stores computer executable instructions, and when the computer executable instructions are executed, the data management method according to any one of claims 1 to 6 is executed.

10. An electronic device, characterized in that: include: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the data management method according to any one of claims 1 to 6.