Data processing method based on block chain and related device thereof
By applying blockchain technology in the field of financial services, the problem of long transaction information sharing and audit cycles is solved, transparent sharing and rapid circulation of transaction information is realized, and transaction efficiency and trust are improved.
Patent Information
- Application Number
- CN202411186603.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-13
AI Technical Summary
In the field of financial services, the lack of a transaction information sharing platform has led to a long transaction process and a long data review and circulation cycle, which has reduced transaction circulation efficiency and trust.
The blockchain-based data processing method is adopted to receive settlement requests through the service system, generate settlement application logos and put them on the link, store and review data, establish mapping relationships, reduce audit cycles, and improve system credibility and security.
It realizes transparent sharing and rapid circulation of transaction information, improves the efficiency and trust of financial service transactions, and reduces the time for data review.
Smart Images

Figure CN119130647A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and in particular to a blockchain-based data processing method and related devices. Background Art
[0002] With the rapid development of science and technology and the globalization and digitalization of financial trade in recent years, many new businesses and new demands have emerged in the field of financial services, especially the volume and scope of import and export trade and offshore trade are expanding rapidly. Among them, transaction security is the most basic, and transaction information sharing is an important link in promoting zero-trust transactions and expanding trade flows. Only when transactions are secure can enterprises and banks trust each other.
[0003] However, there is currently a lack of a platform for sharing transaction information during the transaction process. Enterprises need to provide the required supporting documents, bills, etc. at their leisure, and the document review cycle is long, which leads to the transaction process being too lengthy. In addition, various transaction information during the transaction process cannot be shared, further increasing the review time during the transaction process. Summary of the invention
[0004] In order to solve or partially solve the problems existing in the related technologies, the present application provides a blockchain-based data processing method and related devices, which can apply blockchain technology to the service system, improve the credibility and security of the service system, and users on the service system can obtain transaction information and circulation information throughout the transaction process, thereby reducing the data review circulation cycle.
[0005] A first aspect of the present application provides a blockchain-based data processing method, which is applied to a data management system, wherein the data management system includes a service system and a blockchain, and the method includes: when the service system receives a settlement request submitted by a first user, the service system generates a settlement application identifier for the settlement request and sends a first on-chain request to the blockchain; in response to the first on-chain request, the blockchain stores the settlement application data in the first on-chain request on the blockchain, and generates a first transaction identifier for the first on-chain request, wherein the first transaction identifier is used to uniquely indicate the settlement application data; the service system establishes a first mapping relationship between the settlement application identifier, the first transaction identifier and the first user information carried in the settlement request; the service system audits the settlement application according to the first mapping relationship, and stores the audit data on the blockchain.
[0006] In combination with the first aspect, in a possible implementation manner of the first aspect, storing the settlement application data in the first on-chain request on the blockchain includes: serializing the settlement application data to obtain a target format string; securely hashing the target format string to obtain encrypted data; determining a corresponding target block based on the encrypted data; and storing the encrypted data in the target block of the blockchain.
[0007] In combination with the first aspect, in a possible implementation manner of the first aspect, storing the encrypted data in the target block of the blockchain includes: forwarding the encrypted data to the remaining nodes on the blockchain; obtaining verification results of the encrypted data by all nodes on the blockchain; if the verification result of the target node on the blockchain is passed, storing the encrypted data in the target block of each of the nodes, and the target nodes include: a preset number of nodes and nodes whose importance is greater than or equal to a preset threshold.
[0008] In combination with the first aspect, in a possible implementation of the first aspect, the service system reviews the settlement application according to the first mapping relationship, and stores the review data on the blockchain, including: the service system receives a review request from a second user, and the review request carries the settlement application identifier; the service system obtains a first transaction identifier from the first mapping relationship according to the settlement application identifier; the service system obtains the settlement application data from the blockchain according to the first transaction identifier and displays it; when the service system receives the review processing of the settlement application data by the second user, the review data is stored on the blockchain.
[0009] In combination with the first aspect, in a possible implementation method of the first aspect, after the audit data is stored on the blockchain, it also includes: the service system records the second mapping relationship between the second transaction identifier, the second user information and the settlement application identifier generated by the blockchain for the audit data; the service system obtains the settlement application data from the blockchain according to the first transaction identifier, and displays it, including: the service system obtains the second transaction identifier from the second mapping relationship generated by the audit processing that has been performed; the service system obtains the settlement application data and the audit data generated by the audit processing that has been performed from the blockchain according to the first transaction identifier and the second transaction identifier, and displays them.
[0010] In combination with the first aspect, in a possible implementation method of the first aspect, the obtaining the settlement application data and the audit data generated by the audit processing that has been performed from the blockchain and displaying them includes: generating a processing flow chart for the settlement application data and the audit data in chronological order; and displaying the processing flow chart.
[0011] The second aspect of the present application provides a data processing device based on blockchain, comprising:
[0012] A receiving module is used to generate a settlement application identifier for the settlement request submitted by the first user and send a first on-chain request to the blockchain when receiving the settlement request submitted by the first user; a processing module is used to store the settlement application data in the first on-chain request on the blockchain in response to the first on-chain request, and to generate a first transaction identifier for the first on-chain request, wherein the first transaction identifier is used to uniquely indicate the settlement application data; a generating module is used to establish a first mapping relationship between the settlement application identifier, the first transaction identifier and the first user information carried in the settlement request; and an auditing module is used to audit the settlement application according to the first mapping relationship and store the auditing data on the blockchain.
[0013] In combination with the second aspect, in a possible implementation of the second aspect, the processing module is also used to serialize the settlement application data to obtain a target format string; securely hash encrypt the target format string to obtain encrypted data; determine the corresponding target block based on the encrypted data; and store the encrypted data in the target block of the blockchain.
[0014] In combination with the second aspect, in a possible implementation of the second aspect, the processing module is also used to forward the encrypted data to the remaining nodes on the blockchain; obtain the verification results of the encrypted data by all nodes on the blockchain; if the verification result of the target node on the blockchain is passed, the encrypted data is stored in the target block of each of the nodes, and the target nodes include: a preset number of nodes, and nodes whose importance is greater than or equal to a preset threshold.
[0015] In combination with the second aspect, in a possible implementation of the second aspect, the review module is also used to receive a review request from a second user, the review request carrying the settlement application identifier; obtain a first transaction identifier from the first mapping relationship according to the settlement application identifier; obtain the settlement application data from the blockchain according to the first transaction identifier, and display it; when the service system receives the review processing of the settlement application data by the second user, the review data is stored on the blockchain.
[0016] In combination with the second aspect, in a possible implementation of the second aspect, the audit module is also used to record a second mapping relationship between a second transaction identifier, second user information and the settlement application identifier generated by the blockchain for the audit data; obtain the second transaction identifier from the second mapping relationship generated by the audit processing that has been performed; and obtain the settlement application data and the audit data generated by the audit processing that has been performed from the blockchain according to the first transaction identifier and the second transaction identifier, and display them.
[0017] In combination with the second aspect, in a possible implementation of the second aspect, the audit module is further used to generate a processing flow chart for the settlement application data and the audit data in chronological order; and display the processing flow chart.
[0018] A third aspect of the present application provides an electronic device, including:
[0019] Processor; and
[0020] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.
[0021] A fourth aspect of the present application provides a computer-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described above.
[0022] The technical solution provided by this application may have the following beneficial effects:
[0023] The blockchain-based data processing method of the present application is applied to a data management system, which includes a service system and a blockchain. The method includes: when the service system receives a settlement request submitted by a first user, it generates a settlement application identifier for the settlement request and sends a first on-chain request to the blockchain; in response to the first on-chain request, the blockchain can store the settlement application data in the first on-chain request on the blockchain, and generate a first transaction identifier for the first on-chain request, the first transaction identifier is used to uniquely indicate the settlement application data; the service system establishes a first mapping relationship between the settlement application identifier, the first transaction identifier and the first user information carried in the settlement request; the service system reviews the settlement application according to the first mapping relationship, and stores the review data on the blockchain, so that the blockchain technology can be used on the service system to improve the credibility and security of the service system, and users on the service system can obtain transaction information and flow information in the entire transaction process, reducing the data review flow cycle.
[0024] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The above and other objects, features and advantages of the present application will become more apparent by describing in more detail exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.
[0026] Figure 1 It is a flowchart of a data processing method based on blockchain shown in an embodiment of the present application;
[0027] Figure 2 It is a structural schematic diagram of a blockchain-based data processing device shown in an embodiment of the present application;
[0028] Figure 3 is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application;
[0029] Figure 4 It is a schematic diagram of a blockchain-based data processing flow chart shown in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.
[0031] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "a", "an" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items.
[0032] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0033] In the relevant technologies, in the previous transaction process, both banks and enterprises need to process and audit offline with multiple parties. Due to the lack of transaction information sharing and trust, the offline audit requires a lot of materials, complicated procedures, and a long circulation cycle. In addition, most of the historical transaction information between banks and enterprises is not open and transparent, which seriously reduces the transaction circulation efficiency between banks and enterprises and the trust between enterprises and banks.
[0034] In response to the above problems, the embodiments of the present application provide a data processing method based on blockchain, which can apply blockchain technology to the service system, improve the credibility and security of the service system, and users on the service system can obtain transaction information and circulation information throughout the transaction process, thereby reducing the data review circulation cycle.
[0035] The technical solution of the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0036] Figure 1 It is a flowchart of a blockchain-based data processing method shown in an embodiment of the present application.
[0037] See also Figure 1 , a data processing method based on blockchain is applied to a data management system, the data management system includes a service system and a blockchain, including:
[0038] S110: When the service system receives the settlement request submitted by the first user, it generates a settlement application identifier for the settlement request and sends a first on-chain request to the blockchain.
[0039] Specifically, the first user can submit a settlement request to the service system. The first user can be an enterprise. The settlement request can be for Party B (the enterprise) to resubmit a trade settlement application to the service system. The data in the settlement request can include basic order information, settlement information, transaction conditions, transportation information, contract information, invoice information, commodity inspection certificate, risk warnings and other document information. When the service system receives the settlement request, it can generate a settlement application identifier corresponding to the settlement request and send a first on-chain request to the blockchain. The first on-chain request can be for the service system to apply to the blockchain to upload the settlement request to the blockchain.
[0040] Specifically, the basic order information may include order number, information of both parties to the transaction (address, contact person, etc.), transaction time, type of purchase and sale, transaction currency type, type of goods, quantity of goods, etc.; settlement information may include trade type, settlement amount, settlement bank, payment direction, etc.; transaction conditions may include transaction validity period, execution method, etc.; transportation information may include transportation information divided into three types according to transportation mode: sea, land, and air. Sea transportation information includes bill of lading, container information, customs declaration, ship, voyage, registration record, departure port information, destination port information, etc.; air transportation information includes transport bill, route information, departure place, destination, cargo information, etc.; land transportation information includes transport bill, site information, train number information, cargo information, etc.; risk warnings may include that there may be high-risk issues for certain special commodities (such as precious metals, fresh cold chain, etc.). Including risk warnings in trade can help both parties to take risk control measures in advance.
[0041] S120: In response to the first on-chain request, the blockchain stores the settlement application data in the first on-chain request on the blockchain, and generates a first transaction identifier for the first on-chain request, where the first transaction identifier is used to uniquely indicate the settlement application data.
[0042] Specifically, after the blockchain receives the first on-chain request, the first on-chain request includes the settlement request data, and the settlement request data can be stored on the blockchain, and a corresponding first transaction identifier can be generated based on the first on-chain request. When it is necessary to retrieve the settlement request application data in the first on-chain request on the blockchain, the settlement application data uniquely corresponding to the first transaction identifier can be obtained through the first transaction identifier.
[0043] In one possible implementation, the settlement application data is serialized to obtain a target format string; the target format string is securely hashed and encrypted, and the secure hash algorithm may be a SHA-256 algorithm to obtain encrypted data, and the encrypted data may be transaction hash data, and the transaction hash data is generally displayed in hexadecimal; the corresponding target block is determined according to the encrypted data; the encrypted data is stored in the target block of the blockchain, and a second user, such as Party A, can view the encrypted data or the settlement application data.
[0044] Specifically, the blockchain can serialize the settlement application data according to the first on-chain request. For example, the order basic information, settlement information, transaction conditions, transportation information, contract information, invoice information, commodity inspection certificate, risk warning and other documents in the settlement application data can be serialized into a JSON format string. The JSON format string is a lightweight data exchange format. On the blockchain, the blockchain generally uses the JSON format string to request and respond to data to obtain the target format string corresponding to the settlement application data; then the blockchain can call a specific function in the smart contract to securely hash the target format string to obtain the encrypted data corresponding to the target format string, and store the encrypted data in the block of the blockchain that conforms to the specific hash rule. It can be understood that after the settlement application data is Hami encrypted, the encrypted data is obtained. Due to the characteristics of the hash algorithm, the data in the encrypted data will not be changed after entering the blockchain, so the security of the data can be guaranteed.
[0045] In one possible implementation, the encrypted data is forwarded to the remaining nodes on the blockchain; the verification results of the encrypted data by all nodes on the blockchain are obtained; if the verification result of the target node on the blockchain is passed, the encrypted data is stored in the target block of each target node, and the target nodes include: a preset number of nodes, and nodes whose importance is greater than or equal to a preset threshold.
[0046] Specifically, there are multiple nodes on the blockchain. When encrypted data needs to be stored in a specific block, the encrypted data can be sent to all nodes on the blockchain at the same time. The nodes on the blockchain can verify the encrypted data. For example, the nodes can verify the encrypted data through the consistency of the consensus algorithm. When the nodes can reach a consensus on the encrypted data, the encrypted data can be stored in the target block of each target node. The target nodes can include a preset number of nodes and nodes whose importance is greater than or equal to a preset threshold. For example, the number of nodes can be 4, 5, etc., and there is no limitation here.
[0047] In the blockchain, the target block in each target node has a corresponding unique block height according to the order in which the target block is added to the blockchain. The hash value of the target block is obtained by performing a hash operation on all the data information packaged in the target block. According to the mathematical properties of the hash operation, as long as the data information packaged in the two target blocks is not exactly the same, it can be considered that the block hash values of the two target blocks must be different. In other words, each target block has a corresponding unique target block hash value. Therefore, at least one of the block height and the block hash value can be used as the identifier of the target block to query the unique target block from the blockchain.
[0048] S130: The service system establishes a first mapping relationship between the settlement application identifier, the first transaction identifier, and the first user information carried in the settlement request.
[0049] Specifically, after the blockchain generates the first transaction identifier, the service system can obtain the first transaction identifier and establish a first mapping relationship between the settlement application identifier, the first transaction identifier and the first user information carried in the settlement request. Through the first mapping relationship, after obtaining one of the data in the first mapping relationship, the other data in the first mapping relationship can be obtained accordingly. For example, if it is necessary to query the settlement request corresponding to the settlement application identifier, the first transaction identifier can be obtained, and through the first mapping relationship, the settlement application identifier corresponding to the first transaction identifier can be obtained, and the corresponding settlement request can be obtained through the settlement application identifier.
[0050] S140: The service system reviews the settlement application according to the first mapping relationship and stores the review data on the blockchain.
[0051] Specifically, after obtaining the settlement request submitted by the first user, the service system can review the settlement application data and obtain the review data corresponding to the settlement application data. According to the first mapping relationship, the review data can be stored in a specific block of the blockchain. When it is necessary to query the review data corresponding to the settlement application data, according to the first mapping relationship, the review data corresponding to the settlement application data can be queried on the blockchain through the first transaction identifier.
[0052] In a possible implementation, the service system receives a review request from a second user, the review request carrying a settlement application identifier; the service system obtains a first transaction identifier from a first mapping relationship based on the settlement application identifier; the service system obtains settlement application data from the blockchain based on the first transaction identifier and displays it; when the service system receives the review processing of the settlement application data from the second user, the review data is stored on the blockchain.
[0053] Specifically, the second user can be the auditor, such as a bank or a regulator. The second user can send an audit request to the service system. The application request includes a settlement application identifier. The service system can obtain the corresponding first transaction identifier through the settlement application identifier. The first transaction identifier corresponds to the settlement application data on the blockchain. The settlement application data can be obtained from the blockchain through the first transaction identifier, that is, the second user can obtain the settlement application data and display the settlement application data from the blockchain through the audit request carrying the settlement application identifier, and can audit the settlement application data to form audit data, and then store the audit data on the blockchain. It can be understood that after the audit data is stored on the blockchain, when other users want to query the audit data or settlement application data, they can directly obtain the corresponding audit data or settlement application data through the settlement application identifier or the first transaction identifier.
[0054] In one possible implementation, the service system records the second mapping relationship between the second transaction identifier, the second user information, and the settlement application identifier generated by the blockchain for the audit data; the service system obtains the second transaction identifier from the second mapping relationship generated by the audit processing that has been performed; the service system obtains the settlement application data and the audit data generated by the audit processing that has been performed from the blockchain based on the first transaction identifier and the second transaction identifier, and displays them.
[0055] Specifically, after uploading the audit data to the corresponding block of the blockchain, a second transaction identifier corresponding to the audit data can be generated. The second transaction identifier is used to uniquely indicate the audit data. The second transaction identifier, the second user information and the settlement application identifier can form a second mapping relationship. When other users want to query the audit data and the corresponding settlement application data, they can send a query request to the service system. The query request can include the settlement application identifier. After receiving the query request, the service system can obtain the settlement application data and the audit data from the blockchain according to the first transaction identifier and the second transaction identifier, and display them. Other users can obtain the settlement application data and the audit data corresponding to the settlement application identifier, as well as the corresponding first user information and the second user information.
[0056] See also Figure 4 In a possible implementation, the settlement application data and the review data are generated into a processing flow chart in chronological order; and the processing flow chart is displayed.
[0057] Specifically, a settlement application data can be reviewed multiple times, that is, the settlement application identifier can correspond to multiple review data, and the first transaction identifier can also correspond to multiple second transaction identifiers. A processing flow chart can be generated according to the time sequence and displayed. When other users need to query the process information of the settlement application, they can obtain various information of the settlement application through the processing flow chart, such as upload time, review time, number of reviews, etc. It can be understood that when the second user, such as Party A or the regulator, can view the processing flow chart, obtain all the flow information of the settlement application, and can also view the encrypted data or original data of the settlement application.
[0058] Specifically, in the processing flow chart, the number of blocks is the current block height - 1, the number of trades is the sum of the number of settlement applications excluding the same, the number of transactions is the sum of the settlement application identifiers, the number of smart contracts is the sum of the number of deduplicated chain codes, the average response time is the sum of the response time of calling smart contracts / the number of times smart contracts are called, the block node distribution is the geographical location of the server to which the IP address belongs, such as the IP address of the first user, the IP address of the second user, etc. The node list includes the node name, organization, type, node status, IP address, and joining time, which is achieved by real-time monitoring of the corresponding image in the docker container. The recent chain information displays the most recent 10 transactions sorted by chain time, including the block hash, transaction id, block height, user name (trader), chain code name (the name of the corresponding smart contract running in the docker container), and chain time.
[0059] Corresponding to the aforementioned application function implementation method embodiment, the present application also provides a blockchain-based data processing device, electronic device and corresponding embodiments.
[0060] Figure 2 It is a structural diagram of a blockchain-based data processing device shown in an embodiment of the present application.
[0061] See also Figure 2 , a data processing device 200 based on blockchain, including a receiving module 210, a processing module 220, a generating module 230, and an auditing module 240. Among them,
[0062] The receiving module 210 is used to generate a settlement application identifier for the settlement request when receiving the settlement request submitted by the first user, and send a first on-chain request to the blockchain.
[0063] Specifically, the first user can submit a settlement request to the service system. The first user can be an enterprise. The settlement request can be for Party B (the enterprise) to resubmit a trade settlement application to the service system. The data in the settlement request can include basic order information, settlement information, transaction conditions, transportation information, contract information, invoice information, commodity inspection certificate, risk warnings and other document information. When the service system receives the settlement request, it can generate a settlement application identifier corresponding to the settlement request and send a first on-chain request to the blockchain. The first on-chain request can be for the service system to apply to the blockchain to upload the settlement request to the blockchain.
[0064] The processing module 220 is used to store the settlement application data in the first on-chain request on the blockchain in response to the first on-chain request, and to generate a first transaction identifier for the first on-chain request, where the first transaction identifier is used to uniquely indicate the settlement application data.
[0065] Specifically, after the blockchain receives the first on-chain request, the first on-chain request includes the settlement request data, and the settlement request data can be stored on the blockchain, and a corresponding first transaction identifier can be generated based on the first on-chain request. When it is necessary to retrieve the settlement request application data in the first on-chain request on the blockchain, the settlement application data uniquely corresponding to the first transaction identifier can be obtained through the first transaction identifier.
[0066] In a possible implementation, the processing module 220 is also used to serialize the settlement application data to obtain a target format string; securely hash encrypt the target format string to obtain encrypted data; determine the corresponding target block based on the encrypted data; and store the encrypted data in the target block of the blockchain.
[0067] In a possible implementation, the processing module 220 is also used to forward encrypted data to other nodes on the blockchain; obtain verification results of the encrypted data by all nodes on the blockchain; if the verification result of the target node on the blockchain is passed, the encrypted data is stored in the target block of each node, and the target nodes include: a preset number of nodes, and nodes whose importance is greater than or equal to a preset threshold.
[0068] The generating module 230 is used to establish a first mapping relationship between the settlement application identifier, the first transaction identifier and the first user information carried in the settlement request.
[0069] Specifically, after the blockchain generates the first transaction identifier, the service system can obtain the first transaction identifier and establish a first mapping relationship between the settlement application identifier, the first transaction identifier and the first user information carried in the settlement request. Through the first mapping relationship, after obtaining one of the data in the first mapping relationship, the other data in the first mapping relationship can be obtained accordingly. For example, if it is necessary to query the settlement request corresponding to the settlement application identifier, the first transaction identifier can be obtained, and through the first mapping relationship, the settlement application identifier corresponding to the first transaction identifier can be obtained, and the corresponding settlement request can be obtained through the settlement application identifier.
[0070] The audit module 240 is used to audit the settlement application according to the first mapping relationship and store the audit data on the blockchain.
[0071] Specifically, after obtaining the settlement request submitted by the first user, the service system can review the settlement application data and obtain the review data corresponding to the settlement application data. According to the first mapping relationship, the review data can be stored in a specific block of the blockchain. When it is necessary to query the review data corresponding to the settlement application data, according to the first mapping relationship, the review data corresponding to the settlement application data can be queried on the blockchain through the first transaction identifier.
[0072] In a possible implementation, the audit module 240 is also used to receive an audit request from a second user, the audit request carrying a settlement application identifier; obtain a first transaction identifier from a first mapping relationship based on the settlement application identifier; obtain settlement application data from the blockchain based on the first transaction identifier, and display it; when the service system receives the audit processing of the settlement application data by the second user, the audit data is stored on the blockchain.
[0073] In a possible implementation, the audit module 240 is also used to record the second mapping relationship between the second transaction identifier, the second user information, and the settlement application identifier generated by the blockchain for the audit data; obtain the second transaction identifier from the second mapping relationship generated by the audit processing that has been performed; and obtain the settlement application data and the audit data generated by the audit processing that has been performed from the blockchain based on the first transaction identifier and the second transaction identifier, and display them.
[0074] In a possible implementation, the review module 240 is further configured to generate a processing flow chart from the settlement application data and the review data in chronological order; and display the processing flow chart.
[0075] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated again here.
[0076] Figure 3It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application.
[0077] See also Figure 3 , the electronic device 300 includes a memory 310 and a processor 320.
[0078] The processor 320 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0079] The memory 310 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 320 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 310 may include any combination of computer-readable storage media, including various types of semiconductor storage chips (such as DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 310 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. Computer-readable storage media do not include carrier waves and transient electronic signals transmitted wirelessly or wired.
[0080] The memory 310 stores executable codes, and when the executable codes are processed by the processor 320 , the processor 320 can execute part or all of the methods described above.
[0081] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.
[0082] Alternatively, the present application can also be implemented as a computer-readable storage medium (or non-transitory machine-readable storage medium or machine-readable storage medium) on which executable code (or computer program or computer instruction code) is stored. When the executable code (or computer program or computer instruction code) is executed by a processor of an electronic device (or server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.
[0083] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A data processing method based on blockchain, characterized in that: Applied to a data management system, the data management system includes a service system and a blockchain, and the method includes: When receiving the settlement request submitted by the first user, the service system generates a settlement application identifier for the settlement request and sends a first on-chain request to the blockchain; In response to the first on-chain request, the blockchain stores the settlement application data in the first on-chain request on the blockchain, and generates a first transaction identifier for the first on-chain request, where the first transaction identifier is used to uniquely indicate the settlement application data; The service system establishes a first mapping relationship between the settlement application identifier, the first transaction identifier, and the first user information carried in the settlement request; The service system audits the settlement application data according to the first mapping relationship, and stores the audit data on the blockchain.
2. The method according to claim 1, characterized in that The storing of the settlement application data in the first on-chain request on the blockchain includes: Serializing the settlement application data to obtain a target format character string; Performing secure hash encryption on the target format string to obtain encrypted data; Determine a corresponding target block according to the encrypted data; The encrypted data is stored in the target block of the blockchain.
3. The method according to claim 2, characterized in that The storing the encrypted data in the target block of the blockchain comprises: Forwarding the encrypted data to other nodes on the blockchain; Obtain verification results of the encrypted data by all nodes on the blockchain; If the verification result of the target node on the blockchain is passed, the encrypted data is stored in the target block of each target node, and the target nodes include: a preset number of nodes and nodes whose importance is greater than or equal to a preset threshold.
4. The method according to claim 3, characterized in that The service system audits the settlement application according to the first mapping relationship and stores the audit data on the blockchain, including: The service system receives a review request from a second user, wherein the review request carries the settlement application identifier; The service system acquires a first transaction identifier from the first mapping relationship according to the settlement application identifier; The service system obtains the settlement application data from the blockchain according to the first transaction identifier and displays it; When the service system receives the review process of the settlement application data by the second user, the review data is stored in the blockchain.
5. The method according to claim 4, characterized in that After the audit data is stored on the blockchain, the process further includes: The service system records a second mapping relationship between the second transaction identifier, the second user information, and the settlement application identifier generated by the blockchain for the audit data; The service system obtains the settlement application data from the blockchain according to the first transaction identifier and displays the data, including: The service system obtains the second transaction identifier from the second mapping relationship generated by the performed audit process; The service system obtains the settlement application data and the audit data generated by the performed audit processing from the blockchain according to the first transaction identifier and the second transaction identifier, and displays them.
6. The method according to claim 5, characterized in that The obtaining of the settlement application data and the audit data generated by the audit process performed from the blockchain and displaying the same include: Generate a processing flow chart based on the settlement application data and the review data in chronological order; The process flow chart is displayed.
7. A data processing device based on blockchain, comprising: A receiving module, configured to, upon receiving a settlement request submitted by a first user, generate a settlement application identifier for the settlement request and send a first on-chain request to a blockchain; a processing module, configured to, in response to the first on-chain request, store the settlement application data in the first on-chain request on the blockchain, and generate a first transaction identifier for the first on-chain request, wherein the first transaction identifier is used to uniquely indicate the settlement application data; A generating module, configured to establish a first mapping relationship between the settlement application identifier, the first transaction identifier and the first user information carried in the settlement request; An audit module is used to audit the settlement application according to the first mapping relationship and store the audit data on the blockchain.
8. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.
9. An electronic device, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: An executable code is stored thereon, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as claimed in any one of claims 1 to 6.
