Data audit method, device, electronic device and storage medium
By using smart contracts and cross-chain technology on the blockchain, the problem of data non-isolation caused by multiple applications sharing the same blockchain is solved, the safe interaction and isolation of data is realized, and the security and safety of data auditing are improved. reliability.
Patent Information
- Application Number
- CN202410778587.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-17
AI Technical Summary
In the existing technology, multiple applications share the same blockchain for data auditing, resulting in data not being isolated and easily causing data leakage.
By calling the audit initiation method in the preset smart contract on the first blockchain, requesting data statistical reports from the second blockchain that needs to be audited, and performing data interaction through cross-chain technology to generate and compare Audit the data results to ensure that data is isolated between blockchains.
It achieves safe and reliable interaction and isolation of data, maximizes the security of data in each domain, reduces the cost of data loss, and improves the accuracy and reliability of data auditing.
Smart Images

Figure CN118364511B
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and in particular to a method, device, electronic device and storage medium for data auditing. Background Art
[0002] With the development of science and technology, blockchain technology has received more and more attention worldwide and has been widely used in many fields such as finance, supply chain, medical care, real estate, etc. Due to business needs, data auditing technology based on blockchain is also a key focus.
[0003] In the existing technology, usually multiple application parties jointly build an additional blockchain, and all business data is uploaded to the same blockchain, and then data statistics and audits are performed. However, the mode in which multiple application parties share the same blockchain for data auditing will result in the data of each party not being isolated, which is prone to data leakage. Summary of the invention
[0004] In view of this, the present application provides a data auditing method, device, electronic device and storage medium to solve the problem in the prior art that multiple application parties share the same blockchain for data auditing, which will result in the data of each party not being isolated and easily cause data leakage.
[0005] To achieve the above objectives, this application provides the following technical solutions:
[0006] In a first aspect, the present application discloses a data audit method, which is applied to a first blockchain, where the first blockchain is a data audit processing party, wherein the data audit method includes:
[0007] If a data audit request is received from the audit platform, the audit initiation method is called to request a second data statistical report from the second blockchain; wherein the second blockchain is a blockchain that needs to conduct data audit with the first blockchain; the audit initiation method is a method in a pre-set smart contract, and the smart contract includes the audit initiation method, the audit processing method, the data report statistical method, and the audit result query method; the first blockchain and the second blockchain interact with each other through cross-chain technology; the second data statistical report is a data statistical report of the second blockchain;
[0008] Receive the second data statistical report, and call the data report statistical method to generate a first data statistical report; wherein the first data statistical report is a data statistical report of the first blockchain;
[0009] Calling the audit processing method to perform data audit on the first data statistical report and the second data statistical report to obtain a data audit result;
[0010] The audit result is updated in the first database of the first blockchain.
[0011] Optionally, in the above method, the step of calling the data report statistics method to generate a first data statistics report includes:
[0012] Determining data audit dimensions based on the data audit request;
[0013] Based on the data audit dimension, data that meets the data audit dimension is searched from the first database, and the first data statistical report is generated.
[0014] Optionally, in the above method, the step of calling the audit processing method to perform data audit on the first data statistical report and the second data statistical report to obtain a data audit result includes:
[0015] Compare the first data statistical report with the second data statistical report to obtain difference items and non-difference items;
[0016] Statistics are collected on the difference items and the non-difference items to obtain data audit results.
[0017] Optionally, in the above method, updating the audit result into the first database of the first blockchain further includes:
[0018] If a data audit result query request sent by the audit platform is received, the audit result query method is called to query the first database for the data audit result corresponding to the data audit result query request;
[0019] The data audit result corresponding to the data audit result query request is sent to the audit platform.
[0020] The second aspect of the present application discloses a data auditing device, which is applied to a first blockchain, where the first blockchain is a data auditing processor, wherein the data auditing device includes:
[0021] A calling unit is used for calling an audit initiation method to request a second data statistical report from a second blockchain if a data audit request sent by an audit platform is received; wherein the second blockchain is a blockchain that needs to conduct data audit with the first blockchain; the audit initiation method is a method in a pre-set smart contract, and the smart contract includes the audit initiation method, the audit processing method, the data report statistical method, and the audit result query method; the first blockchain and the second blockchain exchange data through cross-chain technology; the second data statistical report is a data statistical report of the second blockchain;
[0022] A generating unit, configured to receive the second data statistical report, and call the data report statistical method to generate a first data statistical report; wherein the first data statistical report is a data statistical report of the first blockchain;
[0023] An audit unit, used for calling the audit processing method to perform data audit on the first data statistical report and the second data statistical report to obtain a data audit result;
[0024] An updating unit is used to update the audit result into the first database of the first blockchain.
[0025] Optionally, in the above device, the generating unit includes:
[0026] A determination subunit, configured to determine a data audit dimension based on the data audit request;
[0027] A generating subunit is used to search the first database for data that meets the data auditing dimension based on the data auditing dimension, and generate the first data statistical report.
[0028] Optionally, the above-mentioned device, the audit unit, includes:
[0029] A comparison subunit, configured to compare the first data statistical report with the second data statistical report to obtain difference items and non-difference items;
[0030] The statistical subunit is used to collect statistics on the difference items and the non-difference items to obtain data audit results.
[0031] Optionally, the above device further includes:
[0032] A query unit, configured to, upon receiving a data audit result query request sent by the audit platform, call the audit result query method to query the first database for the data audit result corresponding to the data audit result query request;
[0033] The sending unit is used to send the data audit result corresponding to the data audit result query request to the audit platform.
[0034] The third aspect of the present application discloses an electronic device, comprising:
[0035] one or more processors;
[0036] a storage device having one or more programs stored thereon;
[0037] When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of the first aspects of the present application.
[0038] A fourth aspect of the present application discloses a computer storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method described in any one of the first aspects of the present application is implemented.
[0039] It can be seen from the above technical scheme that a data audit method provided by the present application is applied to the first blockchain, and the first blockchain is the data audit processing party. If a data audit request sent by the audit platform is received, the audit initiation method is called to request the second data statistical report from the second blockchain; wherein the second blockchain is the blockchain that needs to conduct data audit with the first blockchain; the audit initiation method is a method in a pre-set smart contract, and the smart contract includes an audit initiation method, an audit processing method, a data report statistical method, and an audit result query method; the first blockchain and the second blockchain interact with data through cross-chain technology; the second data statistical report is the data statistical report of the second blockchain. Then the second data statistical report is received, and the data report statistical method is called to generate the first data statistical report; wherein the first data statistical report is the data statistical report of the first blockchain. Then the audit processing method is called to perform data audit on the first data statistical report and the second data statistical report to obtain the data audit result. Finally, the audit result is updated to the first database of the first blockchain. It can be seen that this application uses blockchain-based smart contracts and cross-chain technology to build a safe and reliable data audit mechanism. For each domain application system that needs to perform data audit, it can ensure that the original data does not leave the domain, and maximize the data security of each domain. At the same time, it has the characteristics of decentralization and inter-domain data isolation, which can not only greatly reduce the cost of preventing data loss after downtime, but also is not easily affected by equipment and environment, and the security, accuracy and reliability of data auditing are higher. It solves the problem that the mode in the prior art where multiple application parties share the same blockchain for data auditing will result in the data of each party not being isolated, which is easy to cause data leakage. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0041] Figure 1 A flowchart of a data audit method disclosed in an embodiment of the present application;
[0042] Figure 2 A schematic diagram of an overall architecture of cross-blockchain interaction disclosed in another embodiment of the present application;
[0043] Figure 3 A schematic diagram of a data auditing device disclosed in another embodiment of the present application;
[0044] Figure 4 A schematic diagram of an electronic device disclosed in another embodiment of the present application. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0046] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0047] Furthermore, in this document, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0048] As can be seen from the background technology, in the prior art, multiple application parties usually build an additional blockchain together, and all business data is uploaded to the same blockchain, and then data statistics and audits are performed. However, the mode in which multiple application parties share the same blockchain for data auditing will result in the data of each party not being isolated, which is prone to data leakage.
[0049] In view of this, the present application provides a method, device, electronic device and storage medium for data auditing to solve the problem in the prior art that multiple application parties share the same blockchain for data auditing, which will result in the data of each party not being isolated and easily cause data leakage.
[0050] The present application embodiment discloses a data audit method, which is applied to a first blockchain, where the first blockchain is a data audit processing party, wherein the data audit method is as follows: Figure 1 As shown, specifically including:
[0051] S101. If a data audit request is received from the audit platform, the audit initiation method is called to request a second data statistical report from the second blockchain; wherein the second blockchain is a blockchain that needs to conduct data audit with the first blockchain; the audit initiation method is a method in a pre-set smart contract, and the smart contract includes an audit initiation method, an audit processing method, a data report statistical method, and an audit result query method; data is exchanged between the first blockchain and the second blockchain through cross-chain technology; the second data statistical report is a data statistical report of the second blockchain.
[0052] It should be noted that the first blockchain takes domain A as an example, and the second blockchain takes domain B as an example. The overall architecture of their interaction is as follows: Figure 2 As shown, a data audit request is initiated by an external audit platform. If the first blockchain receives a data audit request sent by the audit platform, the audit initiation method is called to request a second data statistical report from the second blockchain through cross-chain technology. The cross-chain technology can adopt a notary mechanism, a side chain, a relay chain, etc., which is not limited in this application. After receiving the request, the second blockchain calls the data report statistics method to query the data audit that needs to be counted, and merges and counts the second data statistical report. Among them, the second data statistical report is the data statistical report of the second blockchain. The second blockchain is a blockchain that needs to perform data audit with the first blockchain, that is, domain B; the first blockchain and the second blockchain interact with data through cross-chain technology. The audit initiation method is a method in a pre-set smart contract. The smart contract includes an audit initiation method, an audit processing method, a data report statistics method, and an audit result query method. Its specific contents are as follows:
[0053] Audit initiation method: the audit entry point, which is called when external triggers occur. It requires a cross-chain request for the data report statistics method of the peer domain.
[0054] Audit processing method: It is necessary to receive the data report statistical method results of the peer domain and call the data report statistical method of this domain. Calculate the audit difference, generate the audit result information, update and save it.
[0055] Data report statistical method: query and count the data that needs to be audited in this domain.
[0056] Audit result query method: After the audit is processed, it is called when the audit result needs to be queried externally.
[0057] The pseudo codes of the above-mentioned audit initiation method, audit processing method, data report statistics method, and audit result query method are as follows:
[0058] Contract {
[0059] / / Audit initiation method: parameters (audit object, condition parameters), return value (current latest identifier)
[0060] function StartAudit(string obj, args …string) return (boolsuccFlag);
[0061] / / Audit processing method: parameters (audit object, condition parameters), return value (current latest identifier)
[0062] function DealAudit(string obj, args …string) return (bool succFlag);
[0063] / / Data report statistics method: parameters (statistical object, conditional parameters), return value (statistical report details)
[0064] function Statistic(string obj, args …string) return (map<string,string> reportDtl);
[0065] / / Audit result query method: parameters (audit object, condition parameters), return value (audit result details)
[0066] function QryAuditResult(string obj, args …string) return (map<string, string> auditDtl);
[0067] }
[0068] S102. Receive a second data statistical report, and call a data report statistical method to generate a first data statistical report; wherein the first data statistical report is a data statistical report of the first blockchain.
[0069] It should be noted that after the second blockchain compiles the second data statistical report, it also sends the second data statistical report to the first blockchain through cross-chain technology. After the first blockchain receives the second data statistical report, it calls the data report statistical method to generate the first data statistical report; wherein, the first data statistical report is the data statistical report of the first blockchain.
[0070] Optionally, in another embodiment of the present application, an implementation of calling the data report statistics method to generate the first data statistics report in step S102 may include:
[0071] Determine the data audit dimensions based on the data audit request.
[0072] Based on the data audit dimension, data that meets the data audit dimension is found from the first database, and a first data statistical report is generated.
[0073] It should be noted that the data audit request is parsed to determine the data audit dimension information. There are two audit parameters. One is the audit object, that is, whose data is audited, such as an account; the other is the audit data range condition parameter. This variable parameter is determined by the audit requirements of the business. For example, if the account bill needs to be audited on a daily basis, then this condition parameter can be defined as date; more complex, if the account bill for a certain type of consumption needs to be audited on a daily basis, then this condition parameter can be defined as date, bill category. Therefore, the data audit dimension can be account_date or account_date_bill category, etc. Then, the data that meets the data audit dimension is found from the first database, and the found data is counted to generate the first data statistical report. Among them, the first data statistical report is a map, whose key is the audit dimension information, which is spliced by the audit parameters, such as account_date, and its value is the detailed report result statistics under this dimension.
[0074] S103: Call the audit processing method to perform data audit on the first data statistical report and the second data statistical report to obtain the data audit result.
[0075] It should be noted that after the first data statistical report is generated, the audit processing method is called to calculate the audit difference between the first data statistical report and the second data statistical report to generate a data audit result. The data audit result is also a map, whose key is the audit dimension information + two domain identifiers related to the audit, and the value is the comparison result of the statistical reports in the two domains, which contains the audit difference information.
[0076] Optionally, in another embodiment of the present application, an implementation of step S103 may include:
[0077] The first data statistical report and the second data statistical report are compared to obtain difference items and non-difference items.
[0078] Statistics are collected on the difference items and non-difference items to obtain the data audit results.
[0079] It should be noted that the first data statistical report and the second data statistical report are compared to obtain difference items and non-difference items, and then the difference items and non-difference items are counted to obtain data audit results.
[0080] S104: Update the audit results to the first database of the first blockchain.
[0081] It should be noted that after the audit result is generated, the audit result is updated to the first database of the first blockchain for subsequent data audit result query. The pseudo code for its storage is as follows:
[0082] / / Internal world state storage
[0083] map<string, string > / / key is the audit dimension information (cannot be empty), value is the audit result information of this dimension.
[0084] In a data audit method provided in an embodiment of the present application, it is applied to the first blockchain, and the first blockchain is the data audit processing party. If a data audit request sent by the audit platform is received, the audit initiation method is called to request the second data statistical report from the second blockchain; wherein the second blockchain is the blockchain that needs to conduct data audit with the first blockchain; the audit initiation method is a method in a pre-set smart contract, and the smart contract includes an audit initiation method, an audit processing method, a data report statistical method, and an audit result query method; the first blockchain and the second blockchain interact with data through cross-chain technology; the second data statistical report is the data statistical report of the second blockchain. Then the second data statistical report is received, and the data report statistical method is called to generate the first data statistical report; wherein the first data statistical report is the data statistical report of the first blockchain. Then the audit processing method is called to perform data audit on the first data statistical report and the second data statistical report to obtain the data audit result. Finally, the audit result is updated to the first database of the first blockchain. It can be seen that this application uses blockchain-based smart contracts and cross-chain technology to build a safe and reliable data audit mechanism. For each domain application system that needs to perform data audit, it can ensure that the original data does not leave the domain, and maximize the data security of each domain. At the same time, it has the characteristics of decentralization and inter-domain data isolation, which can not only greatly reduce the cost of preventing data loss after downtime, but also is not easily affected by equipment and environment, and the security, accuracy and reliability of data auditing are higher. It solves the problem that the mode in the prior art where multiple application parties share the same blockchain for data auditing will result in the data of each party not being isolated, which is easy to cause data leakage.
[0085] Optionally, in another embodiment of the present application, after executing step S104, the following may also be included:
[0086] If a data audit result query request sent by the audit platform is received, the audit result query method is called to query the first database for the data audit result corresponding to the data audit result query request.
[0087] The data audit results corresponding to the data audit result query request are sent to the audit platform.
[0088] It should be noted that if a data audit result query request sent by the audit platform is received, the audit result query method is called to query the first database for the data audit result corresponding to the data audit result query request, and then the queried data audit result is sent to the audit platform for users to view.
[0089] Another embodiment of the present application further discloses a data auditing device, which is applied to a first blockchain, and the first blockchain is a data auditing processor, such as Figure 3 As shown, specifically including:
[0090] The calling unit 301 is used to call the audit initiation method to request the second data statistical report from the second blockchain if a data audit request sent by the audit platform is received; wherein the second blockchain is a blockchain that needs to perform data audit with the first blockchain; the audit initiation method is a method in a pre-set smart contract, and the smart contract includes an audit initiation method, an audit processing method, a data report statistical method, and an audit result query method; the first blockchain and the second blockchain interact with each other through cross-chain technology; the second data statistical report is a data statistical report of the second blockchain.
[0091] The generating unit 302 is used to receive the second data statistical report and call the data report statistical method to generate the first data statistical report; wherein the first data statistical report is the data statistical report of the first blockchain.
[0092] The audit unit 303 is used to call the audit processing method to perform data audit on the first data statistical report and the second data statistical report to obtain a data audit result.
[0093] The updating unit 304 is used to update the audit result to the first database of the first blockchain.
[0094] In this embodiment, the specific execution process of the calling unit 301, the generating unit 302, the auditing unit 303 and the updating unit 304 can be referred to in the corresponding Figure 1 The content of the method implementation example will not be repeated here.
[0095] In a data audit device provided in an embodiment of the present application, it is applied to the first blockchain, the first blockchain is the data audit processing party, and if a data audit request sent by the audit platform is received, the calling unit 301 calls the audit initiation method to request the second data statistical report from the second blockchain; wherein the second blockchain is the blockchain that needs to conduct data audit with the first blockchain; the audit initiation method is a method in a pre-set smart contract, and the smart contract includes an audit initiation method, an audit processing method, a data report statistical method, and an audit result query method; the first blockchain and the second blockchain interact with each other through cross-chain technology; the second data statistical report is the data statistical report of the second blockchain. Then the generating unit 302 receives the second data statistical report and calls the data report statistical method to generate the first data statistical report; wherein the first data statistical report is the data statistical report of the first blockchain. Then the audit unit 303 calls the audit processing method to perform data audit on the first data statistical report and the second data statistical report to obtain the data audit result. Finally, the updating unit 304 updates the audit result to the first database of the first blockchain. It can be seen that this application uses blockchain-based smart contracts and cross-chain technology to build a safe and reliable data audit mechanism. For each domain application system that needs to perform data audit, it can ensure that the original data does not leave the domain, and maximize the data security of each domain. At the same time, it has the characteristics of decentralization and inter-domain data isolation, which can not only greatly reduce the cost of preventing data loss after downtime, but also is not easily affected by equipment and environment, and the security, accuracy and reliability of data auditing are higher. It solves the problem that the mode in the prior art where multiple application parties share the same blockchain for data auditing will result in the data of each party not being isolated, which is easy to cause data leakage.
[0096] Optionally, in another embodiment of the present application, an implementation of the above-mentioned generating unit 302 may include:
[0097] Determine subunits, which are used to determine data audit dimensions based on data audit requests.
[0098] The generating subunit is used to search for data that meets the data auditing dimension from the first database based on the data auditing dimension, and generate a first data statistical report.
[0099] In this embodiment, the specific execution process of determining the sub-unit and generating the sub-unit can be found in the corresponding method embodiment described above, and will not be repeated here.
[0100] Optionally, in another embodiment of the present application, an implementation of the audit unit 303 may include:
[0101] The comparison subunit is used to compare the first data statistical report and the second data statistical report to obtain difference items and non-difference items.
[0102] The statistical subunit is used to collect statistics on difference items and non-difference items to obtain data audit results.
[0103] In this embodiment, the specific execution process of the comparison subunit and the statistical subunit can be found in the corresponding method embodiments described above, and will not be repeated here.
[0104] Optionally, in another embodiment of the present application, the data auditing device may further include:
[0105] The query unit is used to call the audit result query method to query the first database for the data audit result corresponding to the data audit result query request if a data audit result query request sent by the audit platform is received.
[0106] The sending unit is used to send the data audit result corresponding to the data audit result query request to the audit platform.
[0107] In this embodiment, the specific execution process of the query unit and the sending unit can refer to the corresponding method embodiment content above, which will not be repeated here.
[0108] Another embodiment of the present application further provides an electronic device, such as Figure 4 As shown, specifically including:
[0109] One or more processors 401 .
[0110] The storage device 402 stores one or more programs.
[0111] When one or more programs are executed by one or more processors 401 , the one or more processors 401 implement any one of the methods in the above embodiments.
[0112] Another embodiment of the present application further provides a computer storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, any one of the methods in the above embodiments is implemented.
[0113] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0114] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0115] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A data audit method, characterized in that: Applied to a first blockchain, the first blockchain is a data audit processing party, wherein the data audit method includes: If a data audit request is received from the audit platform, the audit initiation method is called to request a second data statistical report from the second blockchain; wherein the second blockchain is a blockchain that needs to conduct data audit with the first blockchain; the audit initiation method is a method in a pre-set smart contract, and the smart contract includes the audit initiation method, the audit processing method, the data report statistical method, and the audit result query method; the first blockchain and the second blockchain interact with each other through cross-chain technology; the second data statistical report is a report obtained by invoking the report statistical method to query and count the data that needs to be audited after the second blockchain receives the request; the audit initiation method includes audit object parameters and condition parameters; the data that needs to be audited is data determined based on the audit object parameters and the condition parameters; Receive the second data statistical report, and call the data report statistical method to generate a first data statistical report; wherein the first data statistical report is a data statistical report of the first blockchain; Calling the audit processing method to perform data audit on the first data statistical report and the second data statistical report to obtain a data audit result; The audit result is updated in the first database of the first blockchain.
2. The method according to claim 1, characterized in that The calling of the data report statistical method to generate a first data statistical report includes: Determining data audit dimensions based on the data audit request; Based on the data audit dimension, data that meets the data audit dimension is searched from the first database, and the first data statistical report is generated.
3. The method according to claim 1, characterized in that The calling of the audit processing method to perform data audit on the first data statistical report and the second data statistical report to obtain a data audit result includes: Compare the first data statistical report with the second data statistical report to obtain difference items and non-difference items; Statistics are collected on the difference items and the non-difference items to obtain data audit results.
4. The method according to claim 1, characterized in that: The step of updating the audit result into the first database of the first blockchain further includes: If a data audit result query request sent by the audit platform is received, the audit result query method is called to query the first database for the data audit result corresponding to the data audit result query request; The data audit result corresponding to the data audit result query request is sent to the audit platform.
5. A data auditing device, characterized in that: Applied to a first blockchain, the first blockchain is a data audit processing party, wherein the data audit device includes: A calling unit, for invoking an audit initiation method to request a second data statistical report from a second blockchain if a data audit request sent by an audit platform is received; wherein the second blockchain is a blockchain that needs to conduct data audit with the first blockchain; the audit initiation method is a method in a pre-set smart contract, and the smart contract includes the audit initiation method, the audit processing method, the data report statistical method, and the audit result query method; the first blockchain and the second blockchain interact with each other through cross-chain technology; the second data statistical report is a report obtained by invoking a report statistical method to query and count the data that needs to be audited after the second blockchain receives the request; the audit initiation method includes an audit object parameter and a condition parameter; the data that needs to be audited is data determined based on the audit object parameter and the condition parameter; A generating unit, configured to receive the second data statistical report, and call the data report statistical method to generate a first data statistical report; wherein the first data statistical report is a data statistical report of the first blockchain; An audit unit, used for calling the audit processing method to perform data audit on the first data statistical report and the second data statistical report to obtain a data audit result; An updating unit is used to update the audit result into the first database of the first blockchain.
6. The device according to claim 5, characterized in that The generating unit comprises: A determination subunit, configured to determine a data audit dimension based on the data audit request; A generating subunit is used to search the first database for data that meets the data auditing dimension based on the data auditing dimension, and generate the first data statistical report.
7. The device according to claim 5, characterized in that The audit unit comprises: A comparison subunit, configured to compare the first data statistical report with the second data statistical report to obtain difference items and non-difference items; The statistical subunit is used to collect statistics on the difference items and the non-difference items to obtain data audit results.
8. The device according to claim 5, characterized in that Also includes: A query unit, configured to, upon receiving a data audit result query request sent by the audit platform, call the audit result query method to query the first database for the data audit result corresponding to the data audit result query request; The sending unit is used to send the data audit result corresponding to the data audit result query request to the audit platform.
9. An electronic device, characterized in that: include: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method according to any one of claims 1 to 4.
10. A computer storage medium, characterized in that: A computer program is stored thereon, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
