Data processing method and device for transaction system based on blockchain
By converting transaction data stored in binary form in the blockchain network into text format, the problem of poor readability of transaction data is solved and user-friendly data display is achieved.
Patent Information
- Application Number
- CN201910964341.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-11
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-07-31
AI Technical Summary
Transaction data in the blockchain network is stored in binary form, making it difficult for users to understand, reducing the readability of transaction data and increasing the threshold for use.
Provide a blockchain-based transaction system data processing method, by obtaining the original transaction data stored in the form of blocks, converting it into a specified text format understandable by the user, and presenting it.
It improves the readability of transaction data, enables users to view transaction data intuitively, and lowers the threshold for use.
Smart Images

Figure CN110851510B
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology applications, and in particular to a data processing method and device for a blockchain-based transaction system. Background Art
[0002] Blockchain technology is the core technology for realizing decentralized ledger storage systems. It is tamper-proof and has been widely used in many business fields such as finance, credit, Internet of Things, economic and trade settlement, and asset management. It can effectively solve the trust problem in transaction systems (also known as business systems). Transaction data is stored in the transaction system, which is the lifeline of the transaction system and plays a vital role.
[0003] However, usually, the transaction data stored in the shared ledger and world state (World State, i.e. the latest global ledger state) in the blockchain network are saved and displayed in binary form. These binary transaction data are obscure and difficult to understand for users, resulting in poor readability of the transaction data, which increases the threshold for using transaction data in the blockchain network. Summary of the invention
[0004] The embodiment of the present application provides a data processing method and device for a blockchain-based transaction system, which can effectively solve the problem of poor readability of transaction data in related technologies. The technical solution is as follows:
[0005] In a first aspect, a data processing method for a transaction system based on blockchain is provided, comprising:
[0006] Obtaining original transaction data stored in the form of blocks in the transaction system;
[0007] Converting the original transaction data into target transaction data in a specified text format;
[0008] The target transaction data is presented.
[0009] In a second aspect, a data processing device for a blockchain-based transaction system is provided, comprising an acquisition module, a processing module, and a presentation module.
[0010] The acquisition module is used to acquire the original transaction data stored in the form of blocks in the transaction system;
[0011] The processing module is used to convert the original transaction data into target transaction data in a specified text format;
[0012] The presentation module is used for presenting the target transaction data.
[0013] In a third aspect, an electronic device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement a data processing method for a blockchain-based transaction system as described in any one of the first aspects.
[0014] In a fourth aspect, a readable storage medium is provided, wherein instructions are stored in the readable storage medium. When the instructions are executed on a processing component, the processing component executes a data processing method for a blockchain-based transaction system as described in any one of the first aspects.
[0015] The technical solution provided by this application may have the following beneficial effects:
[0016] The data processing method for a blockchain-based transaction system provided in the present application can convert the original transaction data stored in the form of blocks in the transaction system into target transaction data and present it. Since the format of the target transaction data is a specified text format understandable to users, users can view the transaction data in an intuitive form, which solves the problem that the transaction data stored in the transaction system is obscure and difficult to understand.
[0017] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 It is a schematic diagram of the implementation environment of a data processing method for a blockchain-based transaction system provided in an embodiment of the present application.
[0020] Figure 2 It is a flowchart of a data processing method of a blockchain-based transaction system provided in an embodiment of the present application.
[0021] Figure 3 This is a flowchart of another data processing method for a blockchain-based transaction system provided in an embodiment of the present application.
[0022] Figure 4 It is a schematic diagram of the logical architecture of a trading system involved in an embodiment of the present application.
[0023] Figure 5It is a management and control page in a blockchain ledger transaction and analysis system provided in an embodiment of the present application.
[0024] Figure 6 This is a schematic diagram of a blockchain warehouse receipt real-time data page provided in an embodiment of the present application.
[0025] Figure 7 It is a technical architecture diagram of a data processing method for a blockchain-based transaction system provided in an embodiment of the present application.
[0026] Figure 8 It is a block diagram of a data processing device for a blockchain-based transaction system provided in an embodiment of the present application.
[0027] Fig. 9 It is a block diagram of another data processing device of a blockchain-based transaction system provided in an embodiment of the present application.
[0028] Fig.10 It is a block diagram of another data processing device of a blockchain-based transaction system provided in an embodiment of the present application.
[0029] Fig.11 It is a structural block diagram of a terminal provided by an exemplary embodiment of the present application.
[0030] Fig.12 It is a schematic diagram of the structure of a computer device provided by an embodiment of the present application.
[0031] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solutions and advantages of this application clearer, this application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0033] For ease of understanding, the terms involved in the embodiments of the present application are explained below:
[0034] The shared ledger is used to provide functions such as storage, query and modification of business data (account data). The record data of the operation on the business data is sent to other blockchain nodes in the blockchain network. After the other blockchain nodes verify the validity, they will store the record data in a temporary block as a response to acknowledging the validity of the business data. They can also send confirmation information to the blockchain node that initiated the operation.
[0035] Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of transaction data of network transactions, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer and application service layer.
[0036] The underlying blockchain platform can include processing modules such as user management, basic services, smart contracts, and operation monitoring. Among them, the user management module is responsible for the identity information management of all blockchain participants, including maintaining public and private key generation (account management), key management, and the maintenance of the correspondence between the user's real identity and the blockchain address (authority management), etc., and, under authorization, supervises and audits the transactions of certain real identities and provides risk control rule configuration (risk control audit); the basic service module is deployed on all blockchain node devices to verify the validity of business requests, and records valid requests to storage after consensus is reached. For a new business request, the basic service first adapts the interface for parsing and authentication (interface adaptation), and then encrypts the business information through the consensus algorithm (consensus management). The smart contract module is responsible for the registration and issuance of contracts, as well as contract triggering and contract execution. Developers can define the contract logic in a programming language and publish it to the blockchain (contract registration). According to the logic of the contract terms, the key or other events are called to trigger the execution and complete the contract logic. It also provides the function of contract upgrade and cancellation. The operation monitoring module is mainly responsible for the deployment, configuration modification, contract setting, cloud adaptation and real-time status visualization output of the product during the product release process, such as alarm, network monitoring, node equipment health monitoring, etc.
[0037] The platform product service layer provides the basic capabilities and implementation framework of typical applications. Developers can superimpose business features based on these basic capabilities to complete the blockchain implementation of business logic. The application service layer provides application services based on blockchain solutions for business participants to use.
[0038] Please refer to Figure 1 , which shows a schematic diagram of the implementation environment of a data processing method for a blockchain-based transaction system provided by an exemplary embodiment of the present application. Figure 1 As shown, the implementation environment includes a blockchain network 101 and a terminal 102.
[0039] Among them, the blockchain network 101 is configured with multiple servers 1011, and each server 1011 is a blockchain node in the blockchain network 101. The blockchain node can also be any other form of computing device in the access network, such as a user terminal. The blockchain nodes form a peer-to-peer (P2P) network, and the P2P protocol is an application layer protocol running on the Transmission Control Protocol (TCP) protocol. In a distributed system, any machine such as a server or a terminal can join and become a blockchain node. The blockchain node includes a hardware layer, an intermediate layer, an operating system layer, and an application layer.
[0040] Multiple transaction systems can share one blockchain network 101, and each transaction system can also share multiple blockchain networks 101 with other transaction systems at the same time, or each transaction system corresponds to one blockchain network 101. That is, the multiple servers 1011 can be multiple servers used to implement multiple business types corresponding to the same transaction system, or multiple servers used to implement multiple business types corresponding to different transaction systems. For example, the blockchain network 101 can include multiple servers of a bank; or, the blockchain network 101 can include multiple servers of an insurance institution, and so on. For each transaction system, each blockchain node in the blockchain network 101 will set up a shared account book, so the blockchain network 101 can have multiple shared account books, and each shared account book stores the original transaction data of the corresponding transaction system in the form of blocks.
[0041] The user accesses the servers of different trading systems in a wired or wireless network through the terminal 102 to obtain the original trading data stored in the trading system in the form of blocks. The terminal 102 is an electronic device that can access the multiple servers 1011, and the electronic device can be a computer, a smart phone, a tablet computer or other electronic devices.
[0042] In the embodiment of the present application, a transaction system (also referred to as a business system) can execute multiple types of business, and each type of business can include multiple transactions. For example, a bank transfer system can include multiple businesses such as transfer business and deposit business, and each type of business can include multiple transactions. For another example, a supply chain financial system can include multiple financial businesses, and the financial business can include warehouse receipt registration transactions and warehouse receipt cancellation transactions.
[0043] Each transaction may generate corresponding transaction data (or transaction information), which may include a transaction request sent by a user, a transaction response returned by a business system, and binary data carried in the transaction request or transaction response, etc. Therefore, the aforementioned business data includes transaction data.
[0044] However, since transaction data is usually stored in a binary format in a blockchain network, the blockchain network usually does not analyze, convert or translate the transaction data. The transaction data obtained by users from the blockchain network is also data in the binary format, which makes the transaction data obscure and difficult to understand for users of the transaction system and has poor readability.
[0045] Figure 2 The flowchart of a data processing method of a blockchain-based transaction system provided by an embodiment of the present application is shown. The method can be used to solve the problem of poor readability of transaction data in related technologies. The method can be executed by a data processing device of a blockchain-based transaction system, which can be installed in Figure 1 In the terminal 102 in the described implementation environment. The method includes:
[0046] Step 201: Obtain original transaction data stored in the form of blocks in the transaction system.
[0047] Step 202: Convert the original transaction data into target transaction data in a specified text format.
[0048] Step 203: present the target transaction data.
[0049] In summary, the data processing method of the blockchain-based transaction system provided in the embodiment of the present application can convert the original transaction data stored in the form of blocks in the transaction system into target transaction data and present it. Since the format of the target transaction data is a specified text format understandable to the user, the user can view the transaction data in an intuitive form, which solves the problem of obscure transaction data stored in the transaction system.
[0050] Figure 3 A flowchart of another data processing method of a blockchain-based transaction system provided in an embodiment of the present application is shown, the method comprising:
[0051] Step 301: Obtain original transaction data stored in the form of blocks in the transaction system.
[0052] The transaction system may include multiple blockchain networks, that is, the transaction system uses multiple blockchain networks. Each blockchain network may include multiple blocks, each of which stores the original transaction data of the transaction system. Blocks are the basic structural units of blockchain networks, consisting of a block header containing metadata and a block body containing transaction data.
[0053] The transaction system may correspond to a variety of blockchain underlying engines, and each blockchain network included in the transaction system may correspond to one of the blockchain underlying engines, and the blocks in each blockchain network may be obtained using the corresponding blockchain underlying engine. Then in step 301, obtaining the original transaction data stored in the form of blocks in the transaction system may include: for each blockchain network, using an interface corresponding to the blockchain underlying engine of the blockchain network to obtain the original transaction data stored in the form of blocks in the blockchain network.
[0054] In this way, the data processing method of the blockchain-based transaction system provided in the embodiment of the present application can be adapted to a variety of blockchain underlying engines, and effectively manage and analyze the original transaction data on the blockchain network built based on different blockchain underlying engines.
[0055] The original transaction data stored in the form of blocks refers to the data stored in the blockchain network in binary form in the transaction system. The underlying blockchain engine refers to the engine provided by the open source platform for implementing different blockchain technologies. For example, the underlying blockchain engine is Hyperledger-Fabric, FISCO-BCOS or Quorum, etc. The blockchain network can be divided into multiple types according to the different underlying blockchain engines it has, such as Hyperledger-Fabric type, FISCO-BCOS type or Quorum type.
[0056] In a first optional manner, obtaining the original transaction data stored in the form of blocks in the transaction system includes: periodically obtaining the original transaction data stored in the form of blocks in the transaction system, which can reduce the number of times the original transaction data is obtained and save computing resources.
[0057] The acquisition cycle can be set according to the trading system. For example, for a trading system with a strong timeliness requirement, the cycle for acquiring the original transaction data in the trading system can be set shorter, for example, once every half hour. For a trading system with a low timeliness requirement, the cycle for acquiring the original transaction data in the trading system can be set longer, for example, once a day.
[0058] In the second optional method, obtaining the original transaction data stored in the form of blocks in the transaction system includes: obtaining the original transaction data stored in the form of blocks in the transaction system in real time. This can ensure the timely acquisition of the original transaction data and improve the timeliness of data acquisition and conversion.
[0059] Step 302: Convert the original transaction data into target transaction data in a specified text format.
[0060] The process of converting raw transaction data into target transaction data in a specified text format can be understood as a process of parsing the raw transaction data to parse out transaction data that is easy for users to understand, so as to enhance the readability of the raw transaction data.
[0061] The specified text format may refer to a data presentation format that can be seen and understood by the user. The specified text format may include at least one of a standard transaction data format and a user-defined transaction data format.
[0062] The standard transaction data format refers to a common transaction data format that is publicly constrained within a transaction system (i.e., agreed upon by both the user and the transaction system maintainer). The common transaction data format is a transaction data format that is predicted by the blockchain network manager after understanding the user's business and corresponding user needs. For example, the standard transaction data format corresponding to the bank transaction system involving bank transfers may include: the original account user name of the transfer, the other party's account information, the transfer amount, and the text content attached to the transfer, etc.
[0063] User-defined transaction data format refers to the transaction data format customized by the user for a certain transaction system. It is not universal, but more readable for the user. For example, the user-defined transaction data format corresponding to the bank transaction system involving bank transfer may include: transfer time, transfer amount, and transfer information.
[0064] Step 303: Cache target transaction data.
[0065] After the target transaction data is cached, since the cached target transaction data is in a specified text format, the data obtained by the user from the cache in any subsequent time period is user-recognizable data, ensuring that the user can query intuitive transaction data at any time.
[0066] Step 304: present the target transaction data.
[0067] The original transaction data corresponds to multiple attribute features, and accordingly, the target transaction data converted into the specified text format also corresponds to multiple attribute features. The attribute features may include business type, user information or time information, etc. The business type is used to indicate that the original transaction data is a certain type of transaction data, the user information is used to indicate that the original transaction data is a transaction data operated by a certain user, and the time information is used to indicate that the original transaction data is a transaction data operated at the time point or time period described by the time information.
[0068] When presenting the target transaction data, the target transaction data may be presented in multiple dimensions according to the various attribute features corresponding to the original transaction data, so as to further enhance the readability of the transaction data and facilitate subsequent processing of the transaction data by the user.
[0069] It should be noted that after the original transaction data is converted into target transaction data in a specified text format, the target transaction data may be further processed, for example, the target transaction data may be presented in the form of a graph, table or map.
[0070] Further, referring to the second optional method of the aforementioned step 301, if the aforementioned original transaction data is transaction data acquired in real time, since the delay of data conversion in step 302 is short, the corresponding target transaction data presented can also be regarded as real-time transaction data. In this way, the user can view the transaction data in time, improving the timeliness of the transaction data received by the user.
[0071] The above steps 301 to 304 describe the function of presenting the original transaction data in a user-readable manner in the data processing method of the blockchain-based transaction system provided in the embodiment of the present application. Among them, step 303 is an optional step, that is, after the original transaction data is converted into the target transaction data in a specified text format, the target transaction data can be directly presented without storing the target transaction data, that is, the target transaction data is displayed in real time. The order of the display can be arranged according to the time sequence, and the higher the time sequence, the higher the sorting priority, which is convenient for users to quickly view recent transaction data. The embodiment of the present application does not limit this.
[0072] In the data processing method of the blockchain-based transaction system provided in the embodiment of the present application, in addition to presenting the target transaction data, the original transaction data can also be analyzed and the analysis results can be presented. Figure 3 As shown, the method may include:
[0073] Step 305: Perform data analysis on the transaction data to be analyzed, where the transaction data to be analyzed includes original transaction data or target transaction data.
[0074] As described in steps 301 to 303, the target transaction data is converted from the original transaction data, and the two correspond one to one. The contents of the two are the same, but the forms are different. Therefore, the results of analyzing the corresponding original transaction and target transaction data are consistent.
[0075] Optionally, the transaction system includes data processing engines of multiple business types, and each business type corresponds to a data processing engine. The data processing engine is a code package that parses the transaction data to be analyzed according to the transaction data format, and is used to implement functions such as classification, filtering, and profiling of the transaction data to be analyzed. In step 305, data analysis of the transaction data to be analyzed may include the following process:
[0076] Step 305a: Determine the business type of the transaction data to be analyzed.
[0077] The business type of the transaction data to be analyzed can be determined according to the purpose of the shared account book to which the transaction data to be analyzed belongs. For example, in a banking system, the shared account book used to record bank transfer transaction data corresponds to the bank transfer business, and the business type is the bank transfer business; in a supply chain finance system, the shared account book used to record the currency balance (also known as the money balance) corresponds to the currency balance business, and the business type is the bank transfer business is the currency balance business.
[0078] Step 305b: Use a data processing engine corresponding to the business type to perform data analysis on the transaction data to be analyzed.
[0079] The process of performing data analysis on the transaction data to be analyzed may include: a process of collecting and / or collecting statistics on the transaction data to be analyzed according to a specified analysis condition. The specified analysis condition may be a condition pre-set in the transaction system or a condition set by the user.
[0080] For example, the specified analysis conditions are: in the supply chain finance system, analyzing the changing trend of historical transaction volume and / or the changing trend of historical transaction speed, etc.; in the banking system, analyzing the distribution of user assets, the activity of user asset circulation, the age of the user and / or the job type of the user, etc.
[0081] It should be noted that the analysis conditions can be updated according to actual business needs, thus enhancing the flexibility of the data processing method provided in the embodiment of the present application. In addition, the trading system can select a data processing engine corresponding to the business type according to actual business needs, thus enhancing the versatility of the data processing method provided in the embodiment of the present application.
[0082] Step 306: Present the data analysis results in a visual form.
[0083] It is worth noting that when the transaction data to be analyzed is the original transaction data, since the original transaction data is binary data, the analysis process thereof is the process of collecting and / or counting the binary data; since the target transaction data is data in a specified text format, which includes one or more text information, the analysis process thereof is the process of collecting and / or counting the text data.
[0084] The data analysis results can be presented to users in a visual form such as text or numbers. In order to further enhance the readability of transaction data, the data analysis results can be presented in a more intuitive visual form such as tables, curves or histograms. Of course, the data analysis results can also be stored without displaying them for subsequent data analysis result query or statistical processes.
[0085] It should be noted that the presented data analysis result may be a partial data analysis result or the entire data analysis result obtained by the data analysis in the above step 305 .
[0086] The above steps 305 and 306 describe the function of performing data analysis on the transaction data to be analyzed and presenting the data analysis results in the data processing method of the blockchain-based transaction system provided in the embodiment of the present application. Among them, step 306 may be an optional step.
[0087] In addition, the data processing method provided in the embodiment of the present application may also provide a data query function or a data processing function. Accordingly, when the transaction system provides a data query function, step 307 may be continued after caching the target transaction data, and when the transaction system provides a data processing function, step 310 may be continued after caching the target transaction data. Of course, when the transaction system provides both a data query function and a data processing function, both step 307 and step 310 may be executed.
[0088] Step 307: Receive a data query request in an interactive data language (IDL) format, where the data query request includes a query condition.
[0089] IDL is a programming language for data analysis. For example, in the embodiment of the present application, the data query request in the IDL format can be used to query the total transfer amount of a user in a certain historical period in the bank system, or to query the transfer amount at a specified historical time point, etc.
[0090] The transaction system may provide an entry for inputting a data query request in an IDL format, and the entry may be presented in the form of a search box or an input box.
[0091] Step 308: Obtain the first target data that meets the query condition from the cached data.
[0092] After receiving the corresponding data query request from the aforementioned entry, by analyzing the query condition carried in the data query request, the first target data that meets the query condition can be obtained from the cached data. As mentioned above, since the cached data is the target transaction data, and the first target data is the target transaction data that meets the query condition, the first target data is also data in a specified text format.
[0093] Optionally, the aforementioned entry may include multiple reference options, each of which may correspond to one or more query conditions, thereby reducing the user's text input action for the query conditions, reducing user operations, and improving user experience.
[0094] For example, in a supply chain finance system, the transaction information that users are usually mainly concerned about includes the time when the transaction data was generated, the transaction quantity, the transaction performance trend, the user corresponding to the transaction, and the change of the user corresponding to the transaction. The above-mentioned entry may include 5 reference options, and the 5 reference options correspond to: the time when the transaction data was generated, the transaction quantity, the transaction performance trend, the user corresponding to the transaction, and the change of the user corresponding to the transaction, a total of 5 query conditions. When the user inputs a data query request under a certain reference option, the data processing device can obtain the first target data of the query condition corresponding to the certain reference option in the cached data.
[0095] In an optional manner, the aforementioned target transaction data may be cached in a first database, and the data processing device may query the first database for first target data that meets the query conditions.
[0096] In another optional manner, please refer to the aforementioned step 305. The data processing device performs data analysis on the transaction data to be analyzed. After analyzing the transaction data to be analyzed based on different specified analysis conditions, a second database can be established for the target transaction data corresponding to each specified analysis condition. That is, after the data processing device performs data analysis, multiple second databases are established, and each second database corresponds to a specified analysis condition. In this way, in step 308, the query conditions carried by the data query request (including the query conditions corresponding to the aforementioned reference options and the query conditions input by the user) can be matched with the specified analysis conditions of each second database. If there is a specified analysis condition that matches the query condition, the first target data that meets the query condition is queried in the second database corresponding to the specified analysis condition. In this way, there is no need to traverse the data in the first database with more data, which reduces the delay of data query. If the query conditions carried by the data query request do not match the specified analysis conditions of each second database, the first target data that meets the query condition is queried in the first database.
[0097] The query condition matches the specified analysis condition if: the query condition is the same as the specified analysis condition (e.g., the query condition and the specified analysis condition are both: data from 1990 to 2000); or, the query condition and the specified analysis condition have an intersection (e.g., the query condition is: data from 1990 to 2000, and the specified analysis condition is: data from 1995 to 2000); or, the query condition belongs to the specified analysis condition (e.g., the query condition is: data from 1995 to 1996, and the specified analysis condition is: data from 1990 to 2000).
[0098] Step 309: present the first target data.
[0099] Since the data processing method of the blockchain-based transaction system provided in the embodiment of the present application can receive data query requests in IDL format, the first target data presented according to the query conditions in the data query request can better meet user needs and make it easier for users to view the original transaction data in the transaction system.
[0100] It should be noted that in the data processing method of the blockchain-based transaction system provided in the embodiment of the present application, in addition to being able to present the target transaction data, data analysis results and the first target data, the target block information can also be presented. The process of presenting the target block information may include: obtaining the block information in the transaction system; converting the block information into the target block information in a specified text format. Among them, the block information may include block attribute information such as the number of blocks and the latest block time.
[0101] Step 310: Receive a data processing request, where the data processing request is used to instruct to perform specified processing on the second target data, where the specified processing includes data calculation processing and / or machine learning processing.
[0102] Step 311: Based on the data processing request, obtain second target data from the original transaction data or the cached data.
[0103] The second target data is part or all of the transaction data in the target transaction data.
[0104] Step 312: Perform designated processing on the second target data.
[0105] Optionally, performing designated processing on the second target data includes performing data calculation processing and / or machine learning processing on the second target data.
[0106] Optionally, in step 312, the process of performing designated processing on the second target data may include: presenting an entry to a target data processing platform, the target data processing platform including a big data computing platform and / or a machine learning platform, wherein the big data computing platform may be used to perform data computing processing on the second target data (i.e., perform big data analysis processing on the second target data), and the machine learning platform may be used to perform machine learning processing on the second target data. After detecting the triggering operation of the entry, jump to the page of the target data processing platform, and implement data computing processing and / or machine learning processing on the second target data on the page.
[0107] Since the transaction data is obscure and difficult to understand, it is difficult for users to effectively use the original transaction data. By processing the second target data obtained from the original transaction data or cached data in the page of the target data processing platform, the processing capability of the original transaction data is effectively improved.
[0108] In summary, the data processing method of the blockchain-based transaction system provided in the embodiment of the present application can convert the original transaction data stored in the form of blocks in the transaction system into target transaction data and present it. Since the format of the target transaction data is a specified text format understandable to the user, the user can view the transaction data in an intuitive form, which solves the problem of obscure transaction data stored in the transaction system.
[0109] Furthermore, a data processing engine corresponding to the business type can be used to perform data analysis on the transaction data to be analyzed, so that users can perform data queries in the data analysis results based on data query requests carrying query conditions, which not only improves the user experience but also improves the availability of transaction data.
[0110] Furthermore, since the original transaction data stored in the blockchain network can be obtained by adopting an interface corresponding to the underlying blockchain engine of the blockchain network, the data processing method can manage and analyze only the original transaction data stored in the form of blocks without considering the type of blockchain network or the type of transaction system, thus achieving pluggability.
[0111] It should be noted that the above embodiment describes only one of the data processing methods of the blockchain-based transaction system. During the actual implementation of the embodiment of the present application, it can be adjusted according to the situation, and the embodiment of the present application is not limited here.
[0112] When the embodiment of the present application is actually implemented, the device for implementing the data processing method of the blockchain-based transaction system can be set in the form of a blockchain ledger transaction and analysis system (or module) in the regional chain network control and analysis layer, providing blockchain ledger transaction management and analysis functions for the regional chain network control and analysis layer.
[0113] Figure 4 The figure shows a schematic diagram of the logical architecture of the transaction system involved in the embodiment of the present application. Figure 4 In the blockchain network with multiple engines, running on a container cloud, a standalone server or a virtual host (such as a third-party virtual host), the blockchain network may include multiple blockchain underlying engines. Figure 4 The first blockchain underlying engine, the second blockchain underlying engine and the third blockchain underlying engine are used as examples for illustration. For example, the three blockchain underlying engines can be Hyperledger-Fabric, BCOS and Quorum respectively. The blockchain underlying control system can be adapted to different blockchain underlying engines. In the blockchain network control and analysis layer, there are parallel blockchain underlying control systems and a data processing device of a blockchain-based transaction system provided in an embodiment of the present application (also referred to as a blockchain account book transaction and analysis system). Among them, the data processing device of the blockchain-based transaction system is used to call transaction data stored in the blockchain network, and some transaction data can be called through the blockchain underlying control system.
[0114] The data processing device of the transaction system based on blockchain is used to perform data conversion or data presentation on the acquired transaction data, and the relevant steps can refer to the above steps 301 to 304; it can also be used to perform data collection or data statistics on the acquired transaction data, and the relevant steps can refer to the above steps 305 and 306; it can also be used to perform data audit on the acquired transaction data, and the relevant steps can refer to the above steps 307 to 309; it can also be used to perform big data analysis and machine learning on the acquired transaction data, and the relevant steps can refer to the above steps 310 to 312. In addition, the device can also be used to export target transaction data or data analysis results.
[0115] It should be noted that Figure 4 In the blockchain, the transaction system is referred to by transaction data, and the transaction data can be stored in the blockchain network. Figure 4 The description is only of the logical architecture and does not limit the physical location of each structure. Figure 4 In the illustrated embodiment, the transaction system is described by taking a supply chain finance system as an example.
[0116] Figure 5A control page in a blockchain ledger transaction and analysis system is schematically shown. The control page may correspond to a shared ledger in a blockchain network and is used to display a data overview of the shared ledger. The data may include data collected by a data processing device of a blockchain-based transaction system, and the collected data may include at least one of the following: attribute information of the block itself (or referred to as block data) and transaction data. Accordingly, the control page may include an area A for presenting data collection results and an area B for presenting data statistics results. For example, Figure 5 Area A1 in the middle presents the collected block data, which is presented in the form of a block list, and area A2 presents the collected transaction data, which exists in the form of a transaction list. Area B for presenting data statistics can be used to present the data analysis results described in the above step 306, or to present the processing results presented after the second target data is processed in the above step 312, such as big data analysis results and data audit results. In addition, the control page can also display data overviews such as the number of blocks, the latest block time, the number of transactions, the number of organizations, the number of nodes, and the number of contracts, or it can also be used to display data overviews such as contracts of shared ledgers, basic information of contracts, and contract deployment nodes, or display function buttons, which can be triggered to realize the export function of data statistics results, etc., and the embodiments of the present application do not limit this.
[0117] Figure 6 A schematic diagram of a blockchain warehouse receipt real-time data page is shown schematically. Figure 6 Yes Figure 5 In the described embodiment, area B for presenting data statistical results is further presented through a visual transaction map. Figure 6 The transaction data and block data are organically combined together to form a set of visual blockchain warehouse receipt real-time data pages, which helps users better integrate the blockchain network with the transaction system and more easily understand the original transaction data on the blockchain network.
[0118] It should be noted that Figure 6 The transaction data and block data are only schematically shown, which are not real data information. The embodiments of the present application do not limit the actual content of the transaction data and block data.
[0119] Figure 7 The technical architecture diagram of a data processing method of a blockchain-based transaction system provided in an embodiment of the present application is schematically shown. The technical architecture provides data caching services, a transaction rule engine, transaction rule management, and a data aggregation display layer.
[0120] Through the data caching service, the original transaction data in the transaction system is periodically collected, and the corresponding data processing engine is loaded according to the actual business type. By configuring the corresponding transaction rules in the transaction rule engine (the transaction rules can be rules for limiting the transaction format, and the transaction format includes the specified text format described in step 302), the transaction rule engine parses the corresponding original transaction data and displays it. This process can refer to the aforementioned steps 301 to 309.
[0121] Optionally, the technical architecture can also provide big data computing and artificial intelligence computing, as well as corresponding data analysis rules and training algorithms or parameters. When big data computing or artificial intelligence model training samples are required, the cached data can be calculated in real time through a big data computing platform or artificial intelligence platform integrated with a container cloud, and finally displayed uniformly by the aggregation display layer. The process can refer to the aforementioned steps 310 to 312.
[0122] Figure 8 A block diagram of a data processing device 800 for a blockchain-based transaction system provided in an embodiment of the present application is shown, and the device includes an acquisition module 801, a processing module 802, and a presentation module 803.
[0123] The acquisition module 801 is used to acquire the original transaction data stored in the form of blocks in the transaction system;
[0124] The processing module 802 is used to convert the original transaction data into target transaction data in a specified text format;
[0125] The presentation module 803 is used to present the target transaction data.
[0126] In summary, the data processing device of the blockchain-based transaction system provided in the embodiment of the present application can convert the original transaction data stored in the form of blocks in the transaction system into target transaction data and present it. Since the format of the target transaction data is a specified text format understandable to the user, the user can view the original transaction data in an intuitive form, which increases the readability of the original transaction data and solves the problem of obscure transaction data stored in the transaction system.
[0127] Optionally, the processing module 802 is further used to perform data analysis on the transaction data to be analyzed, where the transaction data to be analyzed includes original transaction data or target transaction data;
[0128] The presentation module 803 is also used to present the data analysis results in a visual form.
[0129] Optionally, the transaction system includes data processing engines of multiple business types, and the processing module 802 is used to:
[0130] Determining the business type of the transaction data to be analyzed;
[0131] A data processing engine corresponding to the business type is used to perform data analysis on the transaction data to be analyzed.
[0132] Optional, such as Fig. 9 As shown, the device 800 further includes a storage module 804,
[0133] The acquisition module 801 is used to: periodically acquire the original transaction data stored in the form of blocks in the transaction system;
[0134] The storage module 804 is used to cache the target transaction data after converting the original transaction data into the target transaction data in a specified text format.
[0135] Optional, such as Fig.10 As shown, the device 800 further includes a receiving module 805,
[0136] The receiving module 805 is used to: receive a data query request in an interactive data language IDL format, wherein the data query request includes a query condition;
[0137] The acquisition module 801 is used to: acquire first target data that meets the query condition from the cached data;
[0138] The presenting module 803 is used to present the first target data.
[0139] Optionally, the receiving module 805 is used to: receive a data processing request, where the data processing request is used to instruct to perform a specified processing on the second target data, where the specified processing includes data calculation processing and / or machine learning processing;
[0140] The acquisition module 801 is used to: acquire the second target data from the original transaction data or the cached data based on the data processing request;
[0141] The processing module 802 is used to perform the specified processing on the second target data.
[0142] Optionally, the transaction system includes multiple blockchain networks, and the blocks in each blockchain network are obtained using a blockchain underlying engine.
[0143] The acquisition module 801 is used for:
[0144] For each of the blockchain networks, an interface corresponding to the blockchain underlying engine of the blockchain network is used to obtain the original transaction data stored in the form of blocks in the blockchain network.
[0145] In summary, the data processing device of the blockchain-based transaction system provided in the embodiment of the present application can convert the original transaction data stored in the form of blocks in the transaction system into target transaction data and present it. Since the format of the target transaction data is a specified text format understandable to the user, the user can view the transaction data in an intuitive form, which solves the problem of obscure transaction data stored in the transaction system.
[0146] Furthermore, a data processing engine corresponding to the business type can be used to perform data analysis on the transaction data to be analyzed, so that users can perform data queries in the data analysis results based on data query requests carrying query conditions, which not only improves the user experience but also improves the availability of transaction data.
[0147] Furthermore, since the original transaction data stored in the blockchain network can be obtained by adopting an interface corresponding to the underlying blockchain engine of the blockchain network, the data processing method can manage and analyze only the original transaction data stored in the form of blocks without considering the type of blockchain network or the type of transaction system, thus achieving pluggability.
[0148] Fig.11 The structure block diagram of a terminal 1100 provided by an exemplary embodiment of the present application is shown. The terminal 1100 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV). The terminal 1100 may also be called a user device, a portable terminal, or other names.
[0149] Typically, the terminal 1100 includes a processor 1101 and a memory 1102 .
[0150] The processor 1101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1101 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1101 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1101 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1101 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0151] The memory 1102 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1102 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1102 is used to store at least one instruction, which is used to be executed by the processor 1101 to implement the data processing method of the blockchain-based transaction system provided in this application.
[0152] In some embodiments, the terminal 1100 may further include: a peripheral device interface 1103 and at least one peripheral device. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1104 , a touch display screen 1105 , a camera 1106 , an audio circuit 1107 and a power supply 1109 .
[0153] The peripheral device interface 1103 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1101 and the memory 1102. In some embodiments, the processor 1101, the memory 1102, and the peripheral device interface 1103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1101, the memory 1102, and the peripheral device interface 1103 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0154] The radio frequency circuit 1104 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1104 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1104 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1104 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1104 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0155] The touch display screen 1105 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. The touch display screen 1105 also has the ability to collect touch signals on the surface or above the surface of the touch display screen 1105. The touch signal may be input to the processor 1101 as a control signal for processing. The touch display screen 1105 is used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the touch display screen 1105 may be one, and the front panel of the terminal 1100 is set; in other embodiments, the touch display screen 1105 may be at least two, which are respectively set on different surfaces of the terminal 1100 or are folded; in still other embodiments, the touch display screen 1105 may be a flexible display screen, which is set on a curved surface or a folded surface of the terminal 1100. Even, the touch display screen 1105 may also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The touch display screen 1105 may be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
[0156] The camera assembly 1106 is used to capture images or videos. Optionally, the camera assembly 1106 includes a front camera and a rear camera. Typically, the front camera is used to realize video calls or selfies, and the rear camera is used to realize the shooting of photos or videos. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, and a wide-angle camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, and the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting functions. In some embodiments, the camera assembly 1106 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0157] The audio circuit 1107 is used to provide an audio interface between the user and the terminal 1100. The audio circuit 1107 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1101 for processing, or input them into the radio frequency circuit 1104 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1100. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1101 or the radio frequency circuit 1104 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1107 may also include a headphone jack.
[0158] The power supply 1109 is used to power various components in the terminal 1100. The power supply 1109 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1109 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0159] In some embodiments, the terminal 1100 further includes one or more sensors 1110 , including but not limited to: an acceleration sensor 1111 , a gyroscope sensor 1112 , a pressure sensor 1113 , an optical sensor 1115 , and a proximity sensor 1116 .
[0160] The acceleration sensor 1111 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1100. For example, the acceleration sensor 1111 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1101 can control the touch display screen 1105 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1111. The acceleration sensor 1111 can also be used for collecting game or user motion data.
[0161] The gyro sensor 1112 can detect the body direction and rotation angle of the terminal 1100, and the gyro sensor 1112 can cooperate with the acceleration sensor 1111 to collect the user's 3D actions on the terminal 1100. The processor 1101 can implement the following functions based on the data collected by the gyro sensor 1112: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0162] The pressure sensor 1113 can be set on the side frame of the terminal 1100 and / or the lower layer of the touch display screen 1105. When the pressure sensor 1113 is set on the side frame of the terminal 1100, it can detect the user's holding signal of the terminal 1100, and perform left and right hand recognition or shortcut operation according to the holding signal. When the pressure sensor 1113 is set on the lower layer of the touch display screen 1105, the operability control on the UI interface can be controlled according to the user's pressure operation on the touch display screen 1105. The operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0163] The optical sensor 1115 is used to collect the ambient light intensity. In one embodiment, the processor 1101 can control the display brightness of the touch display screen 1105 according to the ambient light intensity collected by the optical sensor 1115. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1105 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1105 is reduced. In another embodiment, the processor 1101 can also dynamically adjust the shooting parameters of the camera assembly 1106 according to the ambient light intensity collected by the optical sensor 1115.
[0164] The proximity sensor 1116, also called a distance sensor, is usually arranged on the front of the terminal 1100. The proximity sensor 1116 is used to collect the distance between the user and the front of the terminal 1100. In one embodiment, when the proximity sensor 1116 detects that the distance between the user and the front of the terminal 1100 is gradually decreasing, the processor 1101 controls the touch display screen 1105 to switch from the screen-on state to the screen-off state; when the proximity sensor 1116 detects that the distance between the user and the front of the terminal 1100 is gradually increasing, the processor 1101 controls the touch display screen 1105 to switch from the screen-off state to the screen-on state.
[0165] Those skilled in the art will understand that Fig.11 The structure shown in the figure does not constitute a limitation on the terminal 1100, and the terminal 1100 may include more or fewer components than those shown in the figure, or combine certain components, or adopt a different component arrangement.
[0166] Fig.12 The schematic diagram of the structure of a computer device provided in one embodiment of the present application is shown. The computer device is used to implement the operation method of the database instance on the server side provided in the above embodiment. The computer device can be Figure 1 The server 1011 in the embodiment. Specifically:
[0167] The computer device 1200 includes a central processing unit (CPU) 1201, a system memory 1204 including a random access memory (RAM) 1202 and a read-only memory (ROM) 1203, and a system bus 1205 connecting the system memory 1204 and the central processing unit 1201. The computer device 1200 also includes a basic input / output system (I / O system) 1206 for facilitating information transmission between various components in the computer, and a large-capacity storage device 1207 for storing an operating system 1213, application programs 1214, and other program modules 1215.
[0168] The basic input / output system 1206 includes a display 1208 for displaying information and an input device 1209 such as a mouse and a keyboard for user inputting information. The display 1208 and the input device 1209 are connected to the central processing unit 1201 through an input / output controller 1210 connected to the system bus 1205. The basic input / output system 1206 may also include an input / output controller 1210 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 1210 also provides output to a display screen, a printer, or other types of output devices.
[0169] The mass storage device 1207 is connected to the central processing unit 1201 through a mass storage controller (not shown) connected to the system bus 1205. The mass storage device 1207 and its associated computer readable medium provide non-volatile storage for the computer device 1200. That is, the mass storage device 1207 may include a computer readable medium (not shown) such as a hard disk or a compact disc read-only memory (CD-ROM) drive.
[0170] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, Erasable Programmable Read Only Memory (EPROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other solid-state storage technologies, CD-ROM, Digital Versatile Disc (DVD) or other optical storage, cassettes, tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage medium is not limited to the above. The above-mentioned system memory 1204 and mass storage device 1207 can be collectively referred to as memory.
[0171] According to various embodiments of the present application, the computer device 1200 can also be connected to a remote computer on the network through a network such as the Internet. That is, the computer device 1200 can be connected to the network 1212 through the network interface unit 1211 connected to the system bus 1205, or the network interface unit 1211 can be used to connect to other types of networks or remote computer systems (not shown).
[0172] The memory also includes one or more programs, which are stored in the memory and configured to be executed by one or more processors. The one or more programs include instructions for performing the data processing method of the blockchain-based transaction system provided in the above embodiment.
[0173] The present application also provides a computer-readable storage medium, wherein the storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the data processing method of the blockchain-based transaction system provided in the above method embodiment.
[0174] Optionally, the present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the data processing method of the blockchain-based transaction system described in the above aspects.
[0175] In the embodiments of the present application, the terms "first", "second" and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The term "plurality" refers to two or more, unless otherwise clearly defined.
[0176] In the embodiments of the present application, the term "and / or" is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone.
[0177] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims.
[0178] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A data processing method for a transaction system based on blockchain, It is characterized in that include: Acquire original transaction data stored in the form of blocks in the transaction system, wherein the transaction system includes data processing engines of multiple business types; Converting the original transaction data into target transaction data in a specified text format, where the specified text format refers to a data presentation format that can be seen and understood by a user; presenting the target transaction data; Determining a business type of transaction data to be analyzed, wherein the transaction data to be analyzed includes original transaction data or target transaction data; Using a data processing engine corresponding to the business type to perform data analysis on the transaction data to be analyzed; Present data analysis results in a visual form.
2. The method according to claim 1, It is characterized in that The obtaining of the original transaction data stored in the form of blocks in the transaction system comprises: periodically obtaining the original transaction data stored in the form of blocks in the transaction system; The method further comprises: After converting the original transaction data into target transaction data in a specified text format, the target transaction data is cached.
3. The method according to claim 2, It is characterized in that The method further comprises: Receiving a data query request in an interactive data language (IDL) format, wherein the data query request includes a query condition; Acquire first target data that meets the query condition from the cached data; The first target data is presented.
4. The method according to claim 2, It is characterized in that The method further comprises: receiving a data processing request, the data processing request being used to instruct to perform a specified processing on the second target data, the specified processing including data computing processing and / or machine learning processing; Based on the data processing request, obtaining the second target data from the original transaction data or the cached data; The designated processing is performed on the second target data.
5. The method according to claim 1, It is characterized in that The transaction system includes multiple blockchain networks, and the blocks in each blockchain network are obtained using a blockchain underlying engine. The obtaining of the original transaction data stored in the form of blocks in the transaction system includes: For each of the blockchain networks, an interface corresponding to the blockchain underlying engine of the blockchain network is used to obtain the original transaction data stored in the form of blocks in the blockchain network.
6. A data processing device for a transaction system based on blockchain, It is characterized in that Including acquisition module, processing module and presentation module, The acquisition module is used to acquire the original transaction data stored in the form of blocks in the transaction system, and the transaction system includes data processing engines of various business types; The processing module is used to convert the original transaction data into target transaction data in a specified text format; The presentation module is used to present the target transaction data, and the specified text format refers to a data presentation format that can be seen and understood by a user; The processing module is used to determine the business type of the transaction data to be analyzed, wherein the transaction data to be analyzed includes original transaction data or target transaction data; and use a data processing engine corresponding to the business type to perform data analysis on the transaction data to be analyzed; The presentation module is used to present the data analysis results in a visual form.
7. The device according to claim 6, It is characterized in that The acquisition module is used to: periodically acquire the original transaction data stored in the form of blocks in the transaction system; The device also includes a storage module, which is used to: After converting the original transaction data into target transaction data in a specified text format, the target transaction data is cached.
8. The device according to claim 7, It is characterized in that The device also includes a receiving module, which is used to: Receiving a data query request in an interactive data language (IDL) format, wherein the data query request includes a query condition; The acquisition module is used to acquire the first target data that meets the query condition from the cached data; The presentation module is used to present the first target data.
9. The device according to claim 7, It is characterized in that The device also includes a receiving module, which is used to: receiving a data processing request, the data processing request being used to instruct to perform a specified processing on the second target data, the specified processing including data computing processing and / or machine learning processing; The acquisition module is used to acquire the second target data from the original transaction data or the cached data based on the data processing request; The processing module is used to perform the specified processing on the second target data.
10. The device according to claim 6, It is characterized in that The transaction system includes multiple blockchain networks, and the blocks in each blockchain network are obtained using a blockchain underlying engine. The acquisition module is used to obtain the original transaction data stored in the form of blocks in each blockchain network using an interface corresponding to the blockchain underlying engine of the blockchain network.
11. An electronic device, It is characterized in that The electronic device includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the data processing method of the blockchain-based transaction system as described in any one of claims 1 to 5.
12. A computer-readable storage medium, It is characterized in that The storage medium stores at least one program, and the at least one program is loaded and executed by the processor to implement the data processing method of the blockchain-based transaction system as described in any one of claims 1 to 5.
Citation Information
Patent Citations
System and method for dynamic financial management
CA3023325A1
Data storage and query method and device based on block chain
CN107239479A
Block chain-based data processing method and device
CN107451175A
A method and apparatus for transmitting block chain data to a block chain browser
CN109447641A
Methods and apparatus for the interoperablility and manipulation of data in a computer network
US20020152175A1
