Data auditing method, device and storage medium

By dividing data into subsets and employing hash values ​​and key mechanisms for data auditing, the problem of data leakage and forgery during the transaction of digital goods is solved, achieving detailed and reliable data auditing and compliance assurance.

CN115906109BActive Publication Date: 2026-11-24TSINGHUA UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210959268.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-08-20
Filing Date
2022-08-10
Publication Date
2026-11-24
Estimated Expiration
2042-08-10

AI Technical Summary

Technical Problem

Existing data auditing methods are insufficient to prevent digital goods from being copied and leaked during transactions, and cannot effectively prevent data owners from falsifying data to pass audits, making it difficult to guarantee data compliance and security.

Method used

By dividing the data to be audited into at least one first subset, and then dividing the first subset into at least one second subset, and using hash values ​​and key mechanisms for sampling and verification, the integrity and compliance of the data are ensured, and data concealment and forgery are prevented.

Benefits of technology

It enables detailed and targeted auditing of large amounts of data, preventing missed and false detections, ensuring the credibility and controllability of data, and preventing data leakage and forgery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115906109B_ABST
    Figure CN115906109B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a data auditing method, device and storage medium. The method comprises: receiving, by a second server, first data to be audited sent by a first server, the first data comprising hash values of at least one first subset and hash values of at least one second subset, the first subset comprising at least one second subset; sending, to the first server, an inspection request for second data, the second data comprising at least one first subset and / or at least one second subset; receiving return information sent by the first server in response to the inspection request; determining hash values of the second data according to the hash values of the at least one first subset and the hash values of the at least one second subset comprised in the first data; and verifying the second data according to the return information and the hash values of the second data, to audit the first data. According to the embodiments of the present disclosure, the original data of the first data can be prevented from being leaked, and the data auditing process is credible and controllable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data processing, and more particularly to a data auditing method, apparatus, and storage medium. Background Technology

[0002] The scenarios requiring data circulation and trading are increasing, making data evaluation and regulation essential. Regulators want the data circulating and traded to be legal and compliant, and they also want to audit the data while protecting it to prevent risks to national security, economic development, and the public interest.

[0003] Because digital goods differ from ordinary goods in that they are easily copied and unknown before a transaction, current auditing methods inevitably carry the risk of data being copied, leaked, or resold by third parties. Even if data is sampled for auditing, it is impossible to prevent data owners from deliberately falsifying data to cover up the original data in order to pass the audit. Therefore, there is an urgent need for reliable and controllable new technological means. Summary of the Invention

[0004] In view of this, this disclosure proposes a data auditing method, apparatus and storage medium.

[0005] According to one aspect of this disclosure, a data auditing method is provided, the method comprising:

[0006] Receive auditable first data sent by a first server, the first data including the hash value of at least one first subset and the hash value of at least one second subset, the first subset including at least one second subset;

[0007] Send a sampling request for the second data to the first server, wherein the second data includes at least one first subset and / or at least one second subset;

[0008] Receive the response information sent by the first server in response to the sampling request;

[0009] The hash value of the second data is determined based on the hash values ​​of at least one first subset and at least one second subset included in the first data;

[0010] The second data is verified based on the returned information and the hash value of the second data in order to audit the first data.

[0011] According to the embodiments of this application, by dividing the data to be audited into at least one first subset and then further dividing the first subset into at least one second subset, the audit requirements for different data volumes can be adapted. Sampling can be performed on the first and / or second subsets. Especially when the data volume is large, the audit process can be carried out in two steps, targeting the first and second subsets, preventing omissions and false positives when the first server conceals data content or provides incomplete data, thus achieving a more detailed and targeted audit. During the audit process, the second user cannot obtain the original data of the first subset. Since the sampling request is initiated by the second user, the first server cannot determine the second subset to be sampled, and therefore cannot pre-select higher-quality data for sampling to pass the audit. Because the first server sends the first subset first and then performs sampling, it prevents the first server from deliberately falsifying data in the returned information to conceal the original data and pass the audit, making the process randomized, reliable, and controllable.

[0012] In one possible implementation, if the number of first subsets included in the first data is greater than a predetermined threshold, the second data includes at least one first subset and at least one second subset.

[0013] According to the embodiments of this application, it is possible to prevent missed or false detections caused by the first server concealing data content or providing incomplete data when the data volume is large, thereby achieving more detailed and targeted auditing.

[0014] In one possible implementation, the returned information includes third data, and the second data is verified based on the hash value of the returned information and the second data, including:

[0015] Determine if the hash value of the third data is the same as the hash value of the second data.

[0016] The second data is verified based on the judgment result.

[0017] According to the embodiments of this application, by determining whether the hash value of the third data and the hash value of the second data included in the returned information are consistent, it can be determined whether the first server has provided the data specified in the sampling request, thus preventing the first server from providing false data. Furthermore, during the above process, the auditor cannot obtain the original data of the data in the first data that was not sampled, preventing the original data of the first data from being leaked.

[0018] In one possible implementation, verifying the second data based on the returned information and the hash value of the second data further includes:

[0019] If the number of first subsets included in the first data is greater than a predetermined threshold, determine whether the relative position of the data in the third data is consistent with the relative position of the corresponding second subset and the corresponding first subset in the second data;

[0020] The second data is verified based on the judgment result.

[0021] Therefore, when the amount of data to be audited is large, it can prevent omissions and false positives caused by performing only one step of inspection, and achieve a more detailed and targeted inspection of the data to be audited.

[0022] In one possible implementation, the first data includes an encrypted first subset and an encrypted second subset, the returned information includes a key corresponding to the second data, and the second data is verified based on the returned information and the hash value of the second data, including:

[0023] Based on the key, the encrypted second data in the encrypted first subset and the encrypted second subset are decrypted to obtain the fourth data;

[0024] Determine if the hash value of the fourth data is the same as the hash value of the second data.

[0025] The second data is verified based on the judgment result.

[0026] According to the embodiments of this application, by decrypting the encrypted second data in the encrypted first subset and the encrypted second subset according to the key in the returned information to obtain the fourth data, and judging whether the hash value of the fourth data and the hash value of the second data are consistent, it can be determined whether the first server has provided the data specified in the sampling request, thus preventing the first server from providing false data.

[0027] In one possible implementation, verifying the second data based on the returned information and the hash value of the second data further includes:

[0028] If the number of first subsets included in the first data exceeds a predetermined threshold, determine whether the relative position of the data in the fourth data is consistent with the relative position of the corresponding second subset and the corresponding first subset in the second data;

[0029] The second data is verified based on the judgment result.

[0030] Therefore, when the amount of data to be audited is large, it can prevent omissions and false positives caused by performing only one step of inspection, and achieve a more detailed and targeted inspection of the data to be audited.

[0031] In one possible implementation, the key includes at least one key corresponding to a first subset and / or a second subset in the second data, wherein the keys corresponding to different first subsets and second subsets are different.

[0032] According to the embodiments of this application, by making the keys corresponding to different subsets different, it is possible to prevent the auditor from obtaining the original data of the data that was not sampled in the first data during the sampling process, thereby preventing the original data of the first data from being leaked.

[0033] In one possible implementation, the sampling request includes at least one data location that indicates the position of a first subset included in the first data, and / or the position of a second subset included in the first subset.

[0034] According to the embodiments of this application, by including data locations in the sampling request, the order of each first subset in the first data, and / or the order of the second subset in the first subset can be determined. If the original data is obtained in the subsequent process, the hash value of the data at the selected data location can be checked to see if it is consistent with the hash value of the corresponding position in the first data initially provided by the first server. This can prevent the first server from replacing part or all of the data in the first data before and after the sampling, so that the first server cannot provide false data to pass the audit during the audit process.

[0035] In one possible implementation, the method further includes:

[0036] Publish one or more of the following to an immutable database: the hash value of a first subset of the first data, the hash value of a second subset of the first data, the encrypted first subset of the first data, the encrypted second subset of the first data, and a sampling request.

[0037] Therefore, in the event of a dispute, the information published in the database can be used to trace the relevant process, thereby enabling a traceable data audit process.

[0038] According to another aspect of this disclosure, a data auditing method is provided, the method comprising:

[0039] Send the first data to be audited to the second server. The first data includes the hash value of at least one first subset and the hash value of at least one second subset. The first subset includes at least one second subset.

[0040] Receive a sampling request for second data sent by a second server, wherein the second data includes at least one first subset and / or at least one second subset;

[0041] In response to the sampling inspection request, a return message is sent to the second server. The return message is used by the second server to verify the second data based on the return message and the hash value of the second data, so as to audit the first data. The hash value of the second data is determined based on the hash values ​​of at least one first subset and at least one second subset included in the first data.

[0042] According to the embodiments of this application, by dividing the data to be audited into at least one first subset and then further dividing the first subset into at least one second subset, the audit requirements for different data volumes can be adapted. Sampling can be performed on the first and / or second subsets. Especially when the data volume is large, the audit process can be carried out in two steps, targeting the first and second subsets, preventing omissions and false positives when the first server conceals data content or provides incomplete data, thus achieving a more detailed and targeted audit. During the audit process, the second user cannot obtain the original data of the first subset. Since the sampling request is initiated by the second user, the first server cannot determine the second subset to be sampled, and therefore cannot pre-select higher-quality data for sampling to pass the audit. Because the first server sends the first subset first and then performs sampling, it prevents the first server from deliberately falsifying data in the returned information to conceal the original data and pass the audit, making the process randomized, reliable, and controllable.

[0043] In one possible implementation, if the number of first subsets included in the first data is greater than a predetermined threshold, the second data includes at least one first subset and at least one second subset.

[0044] According to the embodiments of this application, it is possible to prevent missed or false detections caused by the first server concealing data content or providing incomplete data when the data volume is large, thereby achieving more detailed and targeted auditing.

[0045] In one possible implementation, the returned information includes third data. The second server verifies the second data based on the returned information and the hash value of the second data, including:

[0046] The second server checks whether the hash value of the third data is consistent with the hash value of the second data.

[0047] The second server verifies the second data based on the judgment result.

[0048] According to the embodiments of this application, by determining whether the hash value of the third data and the hash value of the second data included in the returned information are consistent, it can be determined whether the first server has provided the data specified in the sampling request, thus preventing the first server from providing false data. Furthermore, during the above process, the auditor cannot obtain the original data of the data in the first data that was not sampled, preventing the original data of the first data from being leaked.

[0049] In one possible implementation, the second server verifies the second data based on the returned information and the hash value of the second data, and further includes:

[0050] If the number of first subsets included in the first data is greater than a predetermined threshold, the second server determines whether the relative position of the data in the third data is consistent with the relative position of the corresponding second subset and the corresponding first subset in the second data.

[0051] The second server verifies the second data based on the judgment result.

[0052] Therefore, when the amount of data to be audited is large, it can prevent omissions and false positives caused by performing only one step of inspection, and achieve a more detailed and targeted inspection of the data to be audited.

[0053] In one possible implementation, the first data includes an encrypted first subset and an encrypted second subset, the returned information includes a key corresponding to the second data, and the second server verifies the second data based on the returned information and the hash value of the second data, including:

[0054] The second server uses the key to decrypt the encrypted first subset and the encrypted second data in the encrypted second subset to obtain the fourth data;

[0055] The second server checks whether the hash value of the fourth data is consistent with the hash value of the second data.

[0056] The second server verifies the second data based on the judgment result.

[0057] According to the embodiments of this application, the second server decrypts the encrypted second data in the encrypted first subset and the encrypted second subset based on the key in the returned information to obtain the fourth data, and determines whether the hash value of the fourth data is consistent with the hash value of the second data. This can determine whether the first server has provided the data specified in the sampling request, and prevent the first server from providing false data.

[0058] In one possible implementation, the second server verifies the second data based on the returned information and the hash value of the second data, and further includes:

[0059] If the number of first subsets included in the first data is greater than a predetermined threshold, the second server determines whether the relative position of the data in the fourth data is consistent with the relative position of the corresponding second subset and the corresponding first subset in the second data.

[0060] The second server verifies the second data based on the judgment result.

[0061] Therefore, when the amount of data to be audited is large, it can prevent omissions and false positives caused by performing only one step of inspection, and achieve a more detailed and targeted inspection of the data to be audited.

[0062] In one possible implementation, the key includes at least one key corresponding to a first subset and / or a second subset in the second data, with different keys corresponding to different first and second subsets.

[0063] According to the embodiments of this application, by making the keys corresponding to different subsets different, it is possible to prevent the auditor from obtaining the original data of the data that was not sampled in the first data during the sampling process, thereby preventing the original data of the first data from being leaked.

[0064] In one possible implementation, the sampling request includes at least one data location indicating the position of a first subset included in the first data, and / or the position of a second subset included in the first subset.

[0065] According to the embodiments of this application, by including data locations in the sampling request, the order of each first subset in the first data, and / or the order of the second subset in the first subset can be determined. If the original data is obtained in the subsequent process, the hash value of the data at the selected data location can be checked to see if it is consistent with the hash value of the corresponding position in the first data initially provided by the first server. This can prevent the first server from replacing part or all of the data in the first data before and after the sampling, so that the first server cannot provide false data to pass the audit during the audit process.

[0066] According to another aspect of this disclosure, a data auditing apparatus is provided, the apparatus comprising:

[0067] The first receiving module is used to receive the first data to be audited sent by the first server. The first data includes the hash values ​​of at least one first subset and at least one second subset. The first subset includes at least one second subset.

[0068] The first sending module is used to send a sampling request for the second data to the first server. The second data includes at least one first subset and / or at least one second subset.

[0069] The second receiving module is used to receive the return information sent by the first server in response to the sampling request;

[0070] A determining module is configured to determine the hash value of the second data based on the hash values ​​of at least one first subset and at least one second subset included in the first data;

[0071] The verification module is used to verify the second data based on the returned information and the hash value of the second data, in order to audit the first data.

[0072] In one possible implementation, if the number of first subsets included in the first data is greater than a predetermined threshold, the second data includes at least one first subset and at least one second subset.

[0073] In one possible implementation, the returned information includes third-party data, a verification module, used for:

[0074] Determine if the hash value of the third data is the same as the hash value of the second data.

[0075] The second data is verified based on the judgment result.

[0076] In one possible implementation, the verification module is also used for:

[0077] If the number of first subsets included in the first data is greater than a predetermined threshold, determine whether the relative position of the data in the third data is consistent with the relative position of the corresponding second subset and the corresponding first subset in the second data;

[0078] The second data is verified based on the judgment result.

[0079] In one possible implementation, the first data includes an encrypted first subset and an encrypted second subset, and the returned information includes a key corresponding to the second data. A verification module is used for:

[0080] Based on the key, the encrypted second data in the encrypted first subset and the encrypted second subset are decrypted to obtain the fourth data;

[0081] Determine if the hash value of the fourth data is the same as the hash value of the second data.

[0082] The second data is verified based on the judgment result.

[0083] In one possible implementation, the verification module is also used for:

[0084] If the number of first subsets included in the first data exceeds a predetermined threshold, determine whether the relative position of the data in the fourth data is consistent with the relative position of the corresponding second subset and the corresponding first subset in the second data;

[0085] The second data is verified based on the judgment result.

[0086] In one possible implementation, the key includes at least one key corresponding to a first subset and / or a second subset in the second data, wherein the keys corresponding to different first subsets and second subsets are different.

[0087] In one possible implementation, the sampling request includes at least one data location that indicates the position of a first subset included in the first data, and / or the position of a second subset included in the first subset.

[0088] In one possible implementation, the device further includes:

[0089] The publishing module is used to publish one or more of the following to an immutable database: the hash value of a first subset of the first data, the hash value of a second subset of the first data, the encrypted first subset of the first data, the encrypted second subset of the first data, and a sampling request.

[0090] According to another aspect of this disclosure, a data auditing apparatus is provided, the apparatus comprising:

[0091] The second sending module is used to send the first data to be audited to the second server. The first data includes the hash value of at least one first subset and the hash value of at least one second subset. The first subset includes at least one second subset.

[0092] The third receiving module is used to receive a sampling request for the second data sent by the second server, wherein the second data includes at least one first subset and / or at least one second subset;

[0093] The third sending module is used to send return information to the second server in response to the sampling inspection request. The return information is used by the second server to verify the second data based on the return information and the hash value of the second data, so as to audit the first data. The hash value of the second data is determined based on the hash values ​​of at least one first subset and at least one second subset included in the first data.

[0094] In one possible implementation, if the number of first subsets included in the first data is greater than a predetermined threshold, the second data includes at least one first subset and at least one second subset.

[0095] In one possible implementation, the returned information includes third data. The second server verifies the second data based on the returned information and the hash value of the second data, including:

[0096] The second server checks whether the hash value of the third data is consistent with the hash value of the second data.

[0097] The second server verifies the second data based on the judgment result.

[0098] In one possible implementation, the second server verifies the second data based on the returned information and the hash value of the second data, and further includes:

[0099] If the number of first subsets included in the first data is greater than a predetermined threshold, the second server determines whether the relative position of the data in the third data is consistent with the relative position of the corresponding second subset and the corresponding first subset in the second data.

[0100] The second server verifies the second data based on the judgment result.

[0101] In one possible implementation, the first data includes an encrypted first subset and an encrypted second subset, the returned information includes a key corresponding to the second data, and the second server verifies the second data based on the returned information and the hash value of the second data, including:

[0102] The second server uses the key to decrypt the encrypted first subset and the encrypted second data in the encrypted second subset to obtain the fourth data;

[0103] The second server checks whether the hash value of the fourth data is consistent with the hash value of the second data.

[0104] The second server verifies the second data based on the judgment result.

[0105] In one possible implementation, the second server verifies the second data based on the returned information and the hash value of the second data, and further includes:

[0106] If the number of first subsets included in the first data is greater than a predetermined threshold, the second server determines whether the relative position of the data in the fourth data is consistent with the relative position of the corresponding second subset and the corresponding first subset in the second data.

[0107] The second server verifies the second data based on the judgment result.

[0108] In one possible implementation, the key includes at least one key corresponding to a first subset and / or a second subset in the second data, with different keys corresponding to different first and second subsets.

[0109] In one possible implementation, the sampling request includes at least one data location indicating the position of a first subset included in the first data, and / or the position of a second subset included in the first subset.

[0110] According to another aspect of this disclosure, a data auditing apparatus is provided, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the above method when executing instructions stored in the memory.

[0111] According to another aspect of this disclosure, a non-volatile computer-readable storage medium is provided that stores computer program instructions thereon, wherein the computer program instructions, when executed by a processor, implement the above-described method.

[0112] According to another aspect of this disclosure, a computer program product is provided, including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code, wherein when the computer-readable code is run in a processor of an electronic device, the processor in the electronic device performs the above-described method.

[0113] Other features and aspects of this disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description

[0114] The accompanying drawings, which are included in and form part of this specification, illustrate exemplary embodiments, features, and aspects of this disclosure together with the specification and serve to explain the principles of this disclosure.

[0115] Figure 1 A schematic diagram illustrating an application scenario according to an embodiment of this application is shown.

[0116] Figure 2 A flowchart illustrating a data auditing method according to an embodiment of this application is shown.

[0117] Figure 3 A flowchart illustrating a data auditing method according to an embodiment of this application is shown.

[0118] Figure 4 A structural diagram of a data auditing apparatus according to an embodiment of this application is shown.

[0119] Figure 5 A structural diagram of a data auditing apparatus according to an embodiment of this application is shown.

[0120] Figure 6 The diagram illustrates a block diagram of an apparatus 1900 for data auditing according to an exemplary embodiment. Detailed Implementation

[0121] Various exemplary embodiments, features, and aspects of this disclosure will now be described in detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of the embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.

[0122] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments.

[0123] Furthermore, to better illustrate this disclosure, numerous specific details are set forth in the following detailed description. Those skilled in the art will understand that this disclosure can be practiced without certain specific details. In some instances, methods, means, components, and circuits well known to those skilled in the art have not been described in detail in order to highlight the main points of this disclosure.

[0124] With the rise of data circulation and trading, data evaluation and regulation have become essential. Because digital goods differ from ordinary goods in that they are easily copied and unknown before a transaction, current auditing methods inevitably carry the risk of data being copied, leaked, or resold by third parties. Even with sampling audits, it is impossible to prevent data owners from deliberately falsifying data to conceal the original data in order to pass the audit. Therefore, there is an urgent need for reliable and controllable new technological means to audit data.

[0125] In view of this, this application provides a data auditing method. In this method, since the amount of data involved in the auditing process is usually large, the first user (i.e., the data owner) can divide the data to be audited into at least one first subset, wherein the first subset may include at least one second subset. The data auditor (which may be called the second user) can sample some data in the first data (i.e., the second data). By receiving the return information sent by the first user in response to the sampling request, the second data can be verified using the return information to prevent the first user from concealing data or providing incomplete data, thereby enabling the auditing of the first data. In this process, the first user cannot forge data to pass the audit, and the second user cannot obtain the original data of other data in the first data besides the second data, preventing the data from being resold or misused, making the process credible and controllable.

[0126] Figure 1 A schematic diagram illustrating an application scenario according to an embodiment of this application is shown. For example... Figure 1As shown in the embodiments of this application, the data auditing method provided can be used in scenarios where a second user audits data owned by a first user. The first user can be understood as the party possessing the data to be audited (the original data of the first user), and the second user can be understood as the party wishing to audit the data to be audited (or a portion of the original data of the first user). The second user can be a regulatory agency or other third-party organization; this application does not impose any restrictions on this. This application also does not limit the specific type of data to be audited; for example, it can be a labeled dataset (i.e., a collection of labeled data, which can be used for model training, etc.), algorithm model code, etc.

[0127] In one possible implementation, an immutable database may exist, which could be hosted on a platform operated by a second user, or by a third party other than the first and second users. This database can be used to publish relevant information uploaded by the first or second user through the platform. This information may include information related to auditing data and other related processes (such as transactions), and may also be the hash value of the original information. The platform can periodically sign the uploaded information to ensure that its content is tamper-proof and traceable once uploaded. In another possible implementation, this database could be a blockchain-based database.

[0128] The first and second users can also possess their own public and private keys. These keys can be authenticated by a legitimate third party and certified accordingly. The authenticated public keys and certificate information of the first and second users can also be published in the aforementioned database. The public keys of the first and second users can be used to verify files signed with their private keys. During data auditing, the first and second users can also use their respective private keys to sign relevant operations to prevent tampering and to ensure that they cannot deny their own actions.

[0129] This ensures that the auditing process for the data to be audited is credible and traceable.

[0130] Below, in Figure 1 Based on this, the data auditing method of the embodiments of this application will be described in detail. See [link to relevant documentation]. Figure 2 , Figure 2 A flowchart illustrating a data auditing method according to an embodiment of this application is shown. This method can be used on a second server, which can be applied to the aforementioned second user. For example, the second user can implement the method of this embodiment through a terminal device or server. Figure 2 As shown, the method includes:

[0131] Step S201: Receive the first data to be audited sent by the first server.

[0132] The first data sent by the first user (i.e., the first server) can be received by the second user (i.e., the second server). The first data may include the hash values ​​of at least one first subset and at least one second subset, and the first subset may include at least one second subset.

[0133] For example, the data to be audited by the first user (the original data of the first user, which can be called D) can be split into k subsets (i.e., the first subsets). Any first subset after splitting D can be called Doc. i If i can represent the index of the first subset, then the data set corresponding to D after splitting can include the first subset Doc1, Doc2, Doc3...Doc k This application does not impose a limit on the number k of the first subset after splitting.

[0134] Since the amount of data being audited is usually large, it can be further stratified for subsequent sampling inspection. In one possible implementation, any second subset obtained by splitting the first subset of each item can be called an Item. ij Where i can represent the index of the first subset corresponding to the second subset, and j can represent the index of the second subset. After splitting, Doc1 can, for example, include the second subset Item. 11 Item 12 ……Item 1n1 Doc2, for example, can include a second subset, Item. 21 Item 22 ……Item 2n2 Doc k For example, it can include a second subset of items. k1 Item k2 ...Item knk Here, n1, n2...nk can represent the number of second subsets included in the corresponding first subset. In one possible implementation, each second subset can represent the smallest unit of the corresponding data D, that is, the second subset cannot be further divided.

[0135] We can compress each first subset and second subset of the data D to be audited using a hash function to obtain hash values ​​for each first subset and each second subset. For example, H(Doc) k ) can represent the first subset Doc k The hash value of H(Item) ij ) can represent the second subset Item ijThe hash value can be obtained. The complete auditable data D can also be compressed using a hash function to obtain H(D). The second user can also receive the hash value H(D) of the auditable data sent by the first user.

[0136] In one possible implementation, each first subset and each second subset of D can be encrypted separately to obtain the corresponding encrypted data set. For example, E(Doc) k ) can represent the first encrypted subset Doc k E(Item) ij ) can represent the encrypted second subset Item ij .

[0137] One method for encrypting subsets of data D is for the first user to create a master key MK, and then use MK to determine the key corresponding to each subset. The following example illustrates the encryption method for the first subset:

[0138] For example, we can first determine (or randomly generate) a key K(Doc1) corresponding to the first subset Doc1, then K(Doc1) i+1 This can be achieved by using the master key MK to pair K(Doc) i The key is determined after encryption, which allows us to determine the key corresponding to all first subsets.

[0139] For example, we can first determine the hash value H(Doc) corresponding to each first subset. i If ), then the first subset Doc i The corresponding key K (Doc) i This can be achieved by using the master key MK to the corresponding H(Doc) i The key is determined after encryption, which allows us to determine the key corresponding to all first subsets.

[0140] The above are just two examples of using MK to determine the key K (Doc) corresponding to the first subset. i This application does not restrict the method of using MK to determine the key corresponding to the first subset, as long as the key corresponding to all first subsets can be determined based on MK or other very few keys, and even if others know the key corresponding to any number of first subsets, they cannot deduce the key corresponding to the other first subsets. The method of encrypting the second subset is similar.

[0141] This allows for the relative independence of the keys corresponding to each subset. That is, even if the second user obtains the key of the sampled subset during the audit process, they will not be able to decrypt the data of other subsets besides the sampled subset, thus effectively preventing data leakage.

[0142] Step S202: Send a sampling request for the second data to the first server.

[0143] The second data may include at least one first subset and / or at least one second subset. That is, the second data may include either the first subset, the second subset, or both. In one possible implementation, if the number of first subsets included in the first data exceeds a predetermined threshold (i.e., the amount of first data is large), the first and second subsets can be sampled separately, meaning the second data may include at least one first subset and at least one second subset. Alternatively, only the first subset may be sampled, meaning the second data may include at least one first subset. Or, only the second subset may be sampled, meaning the second data may include at least one second subset.

[0144] Optionally, if the number of first subsets included in the first data exceeds a predetermined threshold, the sampling request may further include a first sampling request and a second sampling request. The second data corresponding to the first sampling request may include at least one second subset, and the second data corresponding to the second sampling request may include at least one first subset. The second user may first send a first sampling request to the first user. The second user may then determine the first subsets included in the second data corresponding to the second sampling request based on the information returned by the first user. For example, based on the content of the second subsets returned by the first user, the importance of each first subset corresponding to the second subset can be evaluated, and based on the importance of each first subset, a predetermined number of first subsets can be selected as the content included in the second data of the second sampling request before sending the second sampling request to the first user. This allows for more detailed and targeted sampling of the data.

[0145] It should be noted that a second sampling request can also be sent to the first user first, and the first sampling request can be determined based on the information returned by the first user, and then the first sampling request can be sent to the first user. This application does not restrict this.

[0146] If the number of first subsets included in the first data is less than a predetermined threshold, such as when the first data includes only one first subset or includes a small number of first subsets, the second data may include only the second subset, that is, only at least one second subset in the first subset is sampled.

[0147] The second data may be a subset of the first set, and / or a subset of a predetermined proportion of the second set, which may be pre-agreed upon by the second user and the first user. The sampling request may be published to the aforementioned database.

[0148] It should be noted that the larger this predetermined percentage, the lower the probability that the data provided by the first user is falsified. Assuming the first user divides the data into 300 subsets (e.g., the first and second subsets together contain 300 items, or the first subset contains 300 items, or the second subset contains 300 items), and 30 items (10%) are falsified, if the second user selects 10% of the data (i.e., the 30 subsets, e.g., the first and second subsets together contain 30 items, or the first subset contains 30 items, or the second subset contains 30 items) for inspection, the probability that the data provided by the first user is falsified without being detected is only about 3%.

[0149] In one possible implementation, the sampling request includes at least one data location that can be used to indicate the position of a first subset included in the first data, and / or the position of a second subset included in the second data within the first subset.

[0150] In this case, in step S201, the order of the first subset and / or second subset corresponding to the data in the first data sent by the first user can be consistent with the order of the subsets in the original data.

[0151] For the first subset, the selected data positions can be (a1, a2, ..., am), which can represent the positions of the m subsets in the k-item first subset. For the second subset, the selected data positions can be (bi1, bi2, ..., bip), which can represent the positions of the p-item subsets in the second subset corresponding to the first subset with index i in the first subset (p is less than the total number of subsets included in the second subset).

[0152] In one possible implementation, when the second user submits a sampling request, they can also publish the selected data location and the hash values ​​of each subset corresponding to that data location in the aforementioned database.

[0153] By selecting data locations, the order of each first subset in the first data and / or the order of the second subset in the first subset can be determined. If the original data is obtained in the subsequent process, the hash value of the data at the selected data location can be checked to see if it is consistent with the hash value of the corresponding location received in step S201. This can prevent the first user from replacing part or all of the data in the first data before and after sampling, so that the first user cannot provide false data to pass the audit during the audit process.

[0154] Step S203: Receive the return information sent by the first server in response to the sampling request.

[0155] The second user can receive the return information sent by the first user. This return information may include third data or a key corresponding to the second data, as detailed in step S204.

[0156] Step S204: Determine the hash value of the second data based on the hash values ​​of at least one first subset and at least one second subset included in the first data.

[0157] Since the second data includes at least one first subset and / or at least one second subset of the first data, the hash value of the second data can be determined based on the portion of the first data sent by the first user that corresponds to the second data.

[0158] For example, the hash value of the first subset in the second data can be determined based on the portion of the first data corresponding to the first subset included in the second data; the hash value of the second subset in the second data can be determined based on the portion of the first data corresponding to the second subset included in the second data. If, in step S201, the second data includes at least one first subset and at least one second subset, in step S204, the hash value of the first subset in the second data can be determined based on the hash value of the at least one first subset included in the first data, and the hash value of the second subset in the second data can be determined based on the hash value of the at least one second subset included in the first data; if, in step S201, the second data includes at least one first subset and at least one second subset, in step S204, the hash value of the first subset in the second data can be determined based on the hash value of the at least one first subset included in the first data; if, in step S201, the second data includes at least one second subset, in step S204, the hash value of the second subset in the second data can be determined based on the hash value of the at least one second subset included in the first data.

[0159] Step S205: Verify the second data based on the returned information and the hash value of the second data in order to audit the first data.

[0160] Specifically, based on the returned information, it can be determined whether the data indicated in the returned information is consistent with the second data, thereby determining whether the first user has provided the data specified in the sampling request. If they are consistent, the sampled data (i.e., the data indicated in the returned information) can be audited. For example, the audit may include checking whether the sampled data is legal and compliant in order to determine whether it poses a risk to national security, economic development, public interests, etc.

[0161] According to the embodiments of this application, by dividing the data to be audited into at least one first subset and then further dividing the first subset into at least one second subset, the audit requirements for different data volumes can be adapted. Sampling can be performed on the first and / or second subsets. Especially when the data volume is large, the audit process can be carried out in two steps, targeting the first and second subsets, preventing omissions or false positives when the first user conceals data content or provides incomplete data, thus achieving a more detailed and targeted audit. During the audit process, the second user cannot obtain the original data of the first subset. Since the sampling request is initiated by the second user, the first user cannot determine the second subset to be sampled, and therefore cannot pre-select higher-quality data for sampling to pass the audit. Because the first user sends the first subset first, and then the sampling is performed, it prevents the first user from deliberately falsifying data in the returned information to conceal the original data and pass the audit, making the process randomized, reliable, and controllable.

[0162] In one possible implementation, the returned information may include third data. Step S205 includes: determining whether the hash value of the third data is consistent with the hash value of the second data; and verifying the second data based on the determination result.

[0163] The third data can refer to the data returned by the first user corresponding to the sampling request. This data can be the original data, and the hash value of the second data can be the hash values ​​of the first data sent by the first user in step S201 that correspond to the second data. Therefore, the second user can calculate the hash value of the third data based on the third data and determine whether the hash value of the third data is consistent with the hash value of the second data to determine whether the first user has provided the data specified in the sampling request. If the number of the first subset in the first data is not greater than a predetermined threshold, the sampling request can sample only a portion of the second subset within the first subset. If the data volume is large (i.e., the number of the first subset is greater than the predetermined threshold), sampling only a portion of the second subset within the first subset may result in missed or false detections if the first user provides incomplete data or conceals data content. Therefore, the sampling request can also sample a portion of the first subset in the data to be audited and a portion of the corresponding second subset within the first subset. For example, the second subset can be sampled first, and then the first subset can be sampled based on the content of the obtained second subset, thus enabling multi-step checks. During this process, when sampling the first subset, it is possible to verify whether the hash value of the first subset in the third data matches the hash value sent by the first user in step S201. Based on the first and second subsets, more detailed and targeted checks can be performed, as described below. In one possible implementation, sampling can also be performed on only a portion of the first subset.

[0164] In one possible implementation, step S205 further includes: if the number of first subsets included in the first data is greater than a predetermined threshold, determining whether the relative position of the data in the third data is consistent with the corresponding position of the corresponding second subset and the corresponding first subset in the second data; and verifying the second data based on the determination result.

[0165] For example, if the obtained third data includes the first subset Doc1 and Doc3, and also includes the second subset Item 12 Item 14 Item 33 Item 34 In the case where (the second user can also respond to the first sampling request to receive the second subset first, and then respond to the second sampling request to receive the first subset), it can be determined that the Item in the third data... 12 Item 14 Whether the relative position of the item matches the corresponding position of item number 2 and 4 in Doc1 of the second subset, and to determine the item in the third data. 33 Item 34 Whether the relative positions of Doc1 and Doc3 in the third data are consistent with the corresponding positions of Items numbered 3 and 4 in the second subset can also determine whether the relative positions of Doc1 and Doc3 in the third data are consistent with the corresponding positions of Docs numbered 1 and 3 in the second subset.

[0166] The verification of the second data based on the judgment result may include determining that the first user has provided the data specified in the sampling request if the relative position of the data in the third data is consistent with the corresponding position of the corresponding second subset and the corresponding first subset in the second data. In this case, the sampled data can be audited in the manner described above. Otherwise, it can be determined that the first user has not provided the data specified in the sampling request. In one possible implementation, the first user may be required to provide the return information again, or the sampling of the second data may be deemed to have failed.

[0167] When the sampling request includes data locations, it can also be determined whether the relative positions of the data in the third set of data are consistent with the corresponding data locations in the sampling request. For example, if the sampling request includes data locations (b12, b14) and (b33, b34), and the data locations of the first subset (b1, b3) (where the second user can first send a first sampling request including the data locations of the second subset, and then send a second sampling request including the data locations of the first subset), the resulting third set of data includes the first subsets Doc1 and Doc3, and also includes the second subset Item. 12 Item 14 Item 33 Item 34In this case, the items included in the third data can be determined. 12 Item 14 Whether to specify the corresponding positions (b12, b14) in Doc1, and to determine the Item. 33 Item 34 Whether they are located at the corresponding positions (b33, b34) in Doc3 respectively.

[0168] Therefore, when the amount of data to be audited is large, it can prevent omissions and false positives caused by performing only one step of inspection, and achieve a more detailed and targeted inspection of the data to be audited.

[0169] In one possible implementation, the first data sent by the first user in step S201 may include an encrypted first subset and an encrypted second subset, and the returned information may include a key corresponding to the second data. Step S205 includes: decrypting the encrypted second data in the encrypted first subset and the encrypted second subset according to the key to obtain fourth data; determining whether the hash value of the fourth data and the hash value of the second data are consistent; and verifying the second data according to the determination result.

[0170] The key may include at least one key corresponding to a first subset and / or a second subset in the second data, and the keys corresponding to different first subsets and second subsets are different.

[0171] For example, in a sampling request, the second user selects to view the second subset E(Item). IJ In the case of data content, the return information sent by the first user may include the second subset E(Item). IJ The key K(Item) corresponding to ) IJ The second user can then use the key to open the encrypted second subset and view the second subset items. IJThe data content in the first data is used to obtain the fourth data, which allows us to determine whether the hash value of the fourth data matches the hash value of the second data, thus confirming whether the first user provided the data specified in the sampling request. If the number of the first subset in the first data is no greater than a predetermined threshold, the sampling request can sample only a portion of the second subset within the first subset. If the data volume is large (i.e., the number of the first subset exceeds the predetermined threshold), sampling only a portion of the second subset within the first subset may result in missed or false detections if the first user provides incomplete data or conceals data content. Therefore, the sampling request can also sample a portion of the first subset and a corresponding portion of the second subset within the first data. For example, the second subset can be sampled first, and then the first subset can be sampled based on the content of the obtained second subset, allowing for multi-step checks. During this process, sampling the first subset allows for overall verification of whether the hash value of the first subset in the fourth data matches the hash value sent by the first user in step S201. Sampling the second subset allows for more detailed and targeted checks, as described below. In one possible implementation, sampling can be performed only on a portion of the first subset.

[0172] In one possible implementation, step S205 further includes: if the number of first subsets included in the first data is greater than a predetermined threshold, determining whether the relative position of the data in the fourth data is consistent with the relative position of the corresponding second subset and the corresponding first subset in the second data; and verifying the second data based on the determination result.

[0173] For example, if the fourth set of data includes the first subset Doc1 and Doc3, and also includes the second subset Item 12 Item 14 Item 33 Item 34 In the case where the second user can first respond to the first sampling request to receive the second subset, and then respond to the second sampling request to receive the first subset, it can be determined that the Item in the fourth data... 12 Item 14 Whether the relative position of the item matches the corresponding position of item number 2 and 4 in Doc1 of the second subset, and to determine the item in the third data. 33 Item 34 Whether the relative positions of Doc1 and Doc3 in the fourth data are consistent with the corresponding positions of Items numbered 3 and 4 in Doc3 of the second subset can also determine whether the relative positions of Doc1 and Doc3 in the fourth data are consistent with the corresponding positions of Docs numbered 1 and 3 in the second subset.

[0174] The verification of the second data based on the judgment result may include determining that the first user has provided the data specified in the sampling request if the relative position of the data in the fourth data is consistent with the corresponding position of the corresponding second subset and the corresponding first subset in the second data. In this case, the sampled data can be audited in the manner described above. Otherwise, it can be determined that the first user has not provided the data specified in the sampling request. In one possible implementation, the first user may be required to provide the return information again, or the sampling of the second data may be deemed to have failed.

[0175] When the sampling request includes data locations, it can also be determined whether the relative positions of the data in the fourth set are consistent with the corresponding data locations in the sampling request. For example, if the sampling request includes data locations (b12, b14) and (b33, b34) of the second subset, and data locations (b1, b3) of the first subset (where the second user can first send a first sampling request including the data locations of the second subset, and then send a second sampling request including the data locations of the first subset), the resulting fourth set includes the first subsets Doc1 and Doc3, and also includes the second subset Item. 12 Item 14 Item 33 Item 34 In this case, the items included in the fourth data can be determined. 12 Item 14 Whether to specify the corresponding positions (b12, b14) in Doc1, and to determine the Item. 33 Item 34 Whether they are located at the corresponding positions (b33, b34) in Doc3 respectively.

[0176] Therefore, when the amount of data to be audited is large, it can prevent omissions and false positives caused by performing only one step of inspection, and achieve a more detailed and targeted inspection of the data to be audited.

[0177] In one possible implementation, the method further includes:

[0178] Step S206: Publish one or more of the following to an immutable database: the hash value of the first subset included in the first data, the hash value of the second subset included in the first data, the encrypted first subset included in the first data, the encrypted second subset included in the first data, and the sampling request.

[0179] The content can be published to an immutable database by a second user or by the first user; this application does not impose any restrictions on this. The database can also be a blockchain-based database.

[0180] In addition to the above, other data from the audit process may also be published in the database, and this application does not impose any restrictions on this.

[0181] Therefore, in the event of a dispute, the information published in the database can be used to trace the relevant process, thereby enabling a traceable data audit process.

[0182] See Figure 3 This diagram illustrates a flowchart of a data processing method according to an embodiment of this application. The method can be used on a first server, which can be applied to the aforementioned first user. For example, the first user can implement the method of this embodiment through a terminal device. Figure 3 As shown, the method includes:

[0183] Step S301: Send the first data to be audited to the second server.

[0184] The first data may include the hash values ​​of at least one first subset and at least one second subset, wherein the first subset includes at least one second subset.

[0185] For example, the data to be audited by the first user (the original data of the first user, which can be called D) can be split into k subsets (i.e., the first subsets). Any first subset after splitting D can be called Doc. i If i can represent the index of the first subset, then the data set corresponding to D after splitting can include the first subset Doc1, Doc2, Doc3...Doc k This application does not impose a limit on the number k of the first subset after splitting.

[0186] Since the amount of data being audited is usually large, it can be further stratified for subsequent sampling inspection. In one possible implementation, any second subset obtained by splitting the first subset of each item can be called an Item. ij Where i can represent the index of the first subset corresponding to the second subset, and j can represent the index of the second subset. After splitting, Doc1 can, for example, include the second subset Item. 11 Item 12 ...Item 1n1 Doc2, for example, can include a second subset, Item. 21 Item 22 ...Item 2n2 Doc k For example, it can include a second subset of items. k1 Item k2 ...Item knkHere, n1, n2...nk can represent the number of second subsets included in the corresponding first subset. In one possible implementation, each second subset can represent the smallest unit of the corresponding data D, that is, the second subset cannot be further divided.

[0187] We can compress each first subset and second subset of the data D to be audited using a hash function to obtain hash values ​​for each first subset and each second subset. For example, H(Doc) k ) can represent the first subset Doc k The hash value of H(Item) ij ) can represent the second subset Item ij The hash value can be obtained. The complete auditable data D can also be compressed using a hash function to obtain H(D). The second user can also receive the hash value H(D) of the auditable data sent by the first user.

[0188] In one possible implementation, each first subset and each second subset of D can be encrypted separately to obtain the corresponding encrypted data set. For example, E(Doc k ) can represent the first encrypted subset Doc k E(Item) ij ) can represent the encrypted second subset Item ij .

[0189] One method for encrypting subsets of data D is for the first user to create a master key MK, and then use MK to determine the key corresponding to each subset. The following example illustrates the encryption method for the first subset:

[0190] For example, we can first determine (or randomly generate) a key K(Doc1) corresponding to the first subset Doc1, then K(Doc i+1 This can be achieved by using the master key MK to pair K(Doc) i The key is determined after encryption, which allows us to determine the key corresponding to all first subsets.

[0191] For example, we can first determine the hash value H(Doc) corresponding to each first subset. i If ), then the first subset Doc i The corresponding key K (Doc) i This can be achieved by using the master key MK to the corresponding H(Doc) i The key is determined after encryption, which allows us to determine the key corresponding to all first subsets.

[0192] The above are just two examples of using MK to determine the key K (Doc) corresponding to the first subset. iThis application does not restrict the method of using MK to determine the key corresponding to the first subset, as long as the key corresponding to all first subsets can be determined based on MK or other very few keys, and even if others know the key corresponding to any number of first subsets, they cannot deduce the key corresponding to the other first subsets. The method of encrypting the second subset is similar.

[0193] This allows for the relative independence of the keys corresponding to each subset. That is, even if the second user obtains the key of the sampled subset during the audit process, they will not be able to decrypt the data of other subsets besides the sampled subset, thus effectively preventing data leakage.

[0194] Step S302: Receive a sampling request for the second data sent by the second server.

[0195] The second data includes at least one first subset and / or at least one second subset.

[0196] In other words, the second data may include the first subset, the second subset, or both. In one possible implementation, if the number of first subsets included in the first data exceeds a predetermined threshold (i.e., the amount of first data is large), the first and second subsets can be sampled separately, meaning the second data may include at least one first subset and at least one second subset. Alternatively, only the first subset can be sampled, meaning the second data may include at least one first subset. Or, only the second subset can be sampled, meaning the second data may include at least one second subset.

[0197] Optionally, if the number of first subsets included in the first data exceeds a predetermined threshold, the sampling request may further include a first sampling request and a second sampling request. The second data corresponding to the first sampling request may include at least one second subset, and the second data corresponding to the second sampling request may include at least one first subset. The first user may first receive the first sampling request sent by the second user and send a return message to the second user. The second user may determine the first subsets included in the second data corresponding to the second sampling request based on the return message from the first user. For example, based on the content of the second subsets returned by the first user, the importance of each first subset corresponding to the second subset can be evaluated, and based on the importance of each first subset, a predetermined number of first subsets can be selected as the content included in the second data of the second sampling request. The first user may then receive the second sampling request sent by the second user. This allows for more detailed and targeted sampling of the data.

[0198] It should be noted that, alternatively, the first user may first receive the second sampling request sent by the second user, the second user may determine the first sampling request based on the information returned by the first user, and the first user may then receive the first sampling request sent by the second user. This application does not impose any restrictions on this.

[0199] If the number of first subsets included in the first data is less than a predetermined threshold, such as when the first data includes only one first subset or includes a small number of first subsets, the second data may include only the first subsets, that is, only at least one first subset in the first data is sampled.

[0200] The second data may be a subset of the first set, and / or a subset of a predetermined proportion of the second set, which may be pre-agreed upon by the second user and the first user. The sampling request may be published to the aforementioned database.

[0201] It should be noted that the larger this predetermined percentage, the lower the probability that the data provided by the first user is falsified. Assuming the first user divides the data into 300 subsets (e.g., the first and second subsets together contain 300 items, or the first subset contains 300 items, or the second subset contains 300 items), and 30 items (10%) are falsified, if the second user selects 10% of the data (i.e., the 30 subsets, e.g., the first and second subsets together contain 30 items, or the first subset contains 30 items, or the second subset contains 30 items) for inspection, the probability that the data provided by the first user is falsified without being detected is only about 3%.

[0202] Optionally, the sampling request includes at least one data location, which can be used to indicate the position of the first subset included in the second data within the first data, and / or the position of the second subset included in the second data within the first subset.

[0203] In this case, in step S301, the order of the first subset and / or second subset corresponding to the data in the first data sent by the first user can be consistent with the order of the subsets in the original data.

[0204] For the first subset, the selected data positions can be (a1, a2, ..., am), which can represent the positions of the m subsets in the k-item first subset. For the second subset, the selected data positions can be (bi1, bi2, ..., bip), which can represent the positions of the p-item subsets in the second subset corresponding to the first subset with index i in the first subset (p is less than the total number of subsets included in the second subset).

[0205] In one possible implementation, when the second user submits a sampling request, they can also publish the selected data location and the hash values ​​of each subset corresponding to that data location in the aforementioned database.

[0206] By selecting data locations, the order of each first subset in the first data and / or the order of the second subset in the first subset can be determined. If the original data is obtained in subsequent processes, the hash value of the data at the selected data location can be checked against the hash value of the corresponding location sent by the first user in step S301. This can prevent the first user from replacing part or all of the data in the first data before or after sampling, and prevent the first user from providing false data to pass the audit during the audit process.

[0207] Step S303: In response to the sampling inspection request, send a return message to the second server.

[0208] The returned information is used by the second server to verify the second data based on the returned information and the hash value of the second data, so as to audit the first data. The hash value of the second data is determined based on the hash values ​​of at least one first subset and at least one second subset included in the first data.

[0209] Since the second data includes at least one first subset and / or at least one second subset of the first data, the second user can determine the hash value of the second data based on the portion of the first data sent by the first user that corresponds to the second data.

[0210] For example, a second user can determine the hash value of the first subset in the second data based on the portion of the first data corresponding to the first subset included in the second data; the second user can also determine the hash value of the second subset in the second data based on the portion of the first data corresponding to the second subset included in the second data. If, in step S301, the second data includes at least one first subset and at least one second subset, the hash value of the first subset in the second data can be determined based on the hash value of the at least one first subset included in the first data, and the hash value of the second subset in the second data can be determined based on the hash value of the at least one second subset included in the first data; if, in step S301, the second data includes at least one first subset and at least one second subset, the hash value of the second subset in the second data can be determined based on the hash value of the at least one second subset included in the first data.

[0211] The second user can determine whether the data indicated in the returned information is consistent with the second data, thereby determining whether the first user has provided the data specified in the sampling request. If they are consistent, the sampled data (i.e. the data indicated in the returned information) can be audited, for example, to determine whether the sampled data conforms to the specifications, thereby enabling the auditing of the first data.

[0212] According to the embodiments of this application, by dividing the data to be audited into at least one first subset and then further dividing the first subset into at least one second subset, the audit requirements for different data volumes can be adapted. Sampling can be performed on the first and / or second subsets. Especially when the data volume is large, the audit process can be carried out in two steps, targeting the first and second subsets, preventing omissions or false positives when the first user conceals data content or provides incomplete data, thus achieving a more detailed and targeted audit. During the audit process, the second user cannot obtain the original data of the first subset. Since the sampling request is initiated by the second user, the first user cannot determine the second subset to be sampled, and therefore cannot pre-select higher-quality data for sampling to pass the audit. Because the first user sends the first subset first, and then the sampling is performed, it prevents the first user from deliberately falsifying data in the returned information to conceal the original data and pass the audit, making the process randomized, reliable, and controllable.

[0213] Optionally, the returned information may include third data. The second server verifies the second data based on the returned information and the hash value of the second data. This may include: the second server determining whether the hash value of the third data and the hash value of the second data are consistent; and the second server verifying the second data based on the determination result.

[0214] The third data can refer to the data returned by the first user corresponding to the sampling request. This data can be the original data, and the hash value of the second data can be the hash values ​​of the first data sent by the first user in step S301 that correspond to the second data. Therefore, the second user can calculate the hash value of the third data based on the third data and determine whether the hash value of the third data is consistent with the hash value of the second data to determine whether the first user has provided the data specified in the sampling request. If the number of the first subset in the first data is not greater than a predetermined threshold, the sampling request can sample only a portion of the second subset within the first subset. If the data volume is large (i.e., the number of the first subset is greater than the predetermined threshold), sampling only a portion of the second subset within the first subset may result in missed or false detections if the first user provides incomplete data or conceals data content. Therefore, the sampling request can also sample a portion of the first subset in the data to be audited and a portion of the corresponding second subset within the first subset. For example, the second subset can be sampled first, and then the first subset can be sampled based on the content of the obtained second subset, thus enabling multi-step checks. During this process, when sampling the first subset, the hash value of the first subset in the third data can be verified as a whole to see if it matches the hash value sent by the first user in step S301. Based on the first and second subsets, more detailed and targeted checks can also be performed, as described below. In one possible implementation, sampling can also be performed only on a portion of the first subset.

[0215] Optionally, the second server verifies the second data based on the returned information and the hash value of the second data. This may further include: if the number of first subsets included in the first data is greater than a predetermined threshold, the second server determines whether the relative position of the data in the third data is consistent with the relative position of the corresponding second subset and the corresponding first subset in the second data; the second server verifies the second data based on the determination result.

[0216] For example, if the third data obtained by the server includes the first subset Doc1 and Doc3, and also includes the second subset Item 12 Item 14 Item 33 Item 34 In the case where (the second user can also respond to the first sampling request to receive the second subset first, and then respond to the second sampling request to receive the first subset), it can be determined that the Item in the third data... 12 Item 14 Whether the relative position of the item matches the corresponding position of item number 2 and 4 in Doc1 of the second subset, and to determine the item in the third data. 33 Item 34 Whether the relative positions of Doc1 and Doc3 in the third data are consistent with the corresponding positions of Items numbered 3 and 4 in the second subset can also determine whether the relative positions of Doc1 and Doc3 in the third data are consistent with the corresponding positions of Docs numbered 1 and 3 in the second subset.

[0217] The server verifies the second data based on the judgment result. This may include determining that the first user has provided the data specified in the sampling request if the relative position of the data in the third data matches the corresponding position of the corresponding second subset and the corresponding first subset in the second data. In this case, the second user can further audit the sampled data in the manner described above. Otherwise, it may be determined that the first user has not provided the data specified in the sampling request. In one possible implementation, the second user may request the first user to provide the returned information again or determine that the sampling of the second data has failed.

[0218] If the sampling request includes data locations, the second user can also determine whether the relative positions of the data in the third data are consistent with the corresponding data locations in the sampling request. For example, if the sampling request includes data locations (b12, b14) and (b33, b34), and the data locations of the first subset (b1, b3) (where the second user can first send a first sampling request including the data locations of the second subset, and then send a second sampling request including the data locations of the first subset), the resulting third data includes the first subsets Doc1 and Doc3, and also includes the second subset Item. 12 Item 14 Item 33 Item 34 In this case, the items included in the third data can be determined. 12 Item 14 Whether to specify the corresponding positions (b12, b14) in Doc1, and to determine the Item. 33 Item 34 Whether they are located at the corresponding positions (b33, b34) in Doc3 respectively.

[0219] Therefore, when the amount of data to be audited is large, it can prevent omissions and false positives caused by performing only one step of inspection, and achieve a more detailed and targeted inspection of the data to be audited.

[0220] Optionally, the first data may include an encrypted first subset and an encrypted second subset, and the returned information may include a key corresponding to the second data. The second server verifies the second data based on the returned information and the hash value of the second data, which may include: the second server decrypting the encrypted second data in the encrypted first subset and the encrypted second subset according to the key to obtain the fourth data; the second server determining whether the hash value of the fourth data is consistent with the hash value of the second data; and the second server verifying the second data based on the determination result.

[0221] The key may include at least one key corresponding to a first subset and / or a second subset in the second data, and the keys corresponding to different first subsets and second subsets are different.

[0222] For example, in a sampling request, the second user selects to view the second subset E(Item). IJ In the case of data content, the return information sent by the first user may include the second subset E(Item). IJ The key K(Item) corresponding to ) IJ The second user can then use the key to open the encrypted second subset and view the second subset items. IJThe data content in the first data is used to obtain the fourth data, which allows us to determine whether the hash value of the fourth data matches the hash value of the second data, thus confirming whether the first user provided the data specified in the sampling request. If the number of the first subsets in the first data does not exceed a predetermined threshold, the sampling request can sample only a portion of the second subsets within the first subset. If the data volume is large (i.e., the number of the first subsets exceeds the predetermined threshold), sampling only a portion of the second subsets within the first subset may result in missed or false detections if the first user provides incomplete data or conceals data content. Therefore, the sampling request can also sample a portion of the first subset and a corresponding portion of the second subset within the first data. For example, the second subset can be sampled first, and then the first subset can be sampled based on the content of the obtained second subset, allowing for multi-step checks. During this process, sampling the first subset allows for overall verification of whether the hash value of the first subset in the fourth data matches the hash value sent by the first user in step S301. Sampling the second subset allows for more detailed and targeted checks, as described below. In one possible implementation, sampling can be performed only on a portion of the first subset.

[0223] Optionally, the second server verifies the second data based on the returned information and the hash value of the second data, and further includes: if the number of first subsets included in the first data is greater than a predetermined threshold, the second server determines whether the relative position of the data in the fourth data is consistent with the relative position of the corresponding second subset and the corresponding first subset in the second data; the second server verifies the second data based on the determination result.

[0224] For example, if the fourth data obtained by the second user includes the first subset Doc1 and Doc3, and also includes the second subset Item 12 Item 14 Item 33 Item 34 In the case where the second user can first respond to the first sampling request to receive the second subset, and then respond to the second sampling request to receive the first subset, it can be determined that the Item in the fourth data... 12 Item 14 Whether the relative position of the item matches the corresponding position of item number 2 and 4 in Doc1 of the second subset, and to determine the item in the third data. 33 Item 34 Whether the relative positions of Doc1 and Doc3 in the fourth data are consistent with the corresponding positions of Items numbered 3 and 4 in Doc3 of the second subset can also determine whether the relative positions of Doc1 and Doc3 in the fourth data are consistent with the corresponding positions of Docs numbered 1 and 3 in the second subset.

[0225] The server verifies the second data based on the judgment result. This may include determining that the first user has provided the data specified in the sampling request if the relative position of the data in the fourth data matches the corresponding position of the second subset and the corresponding first subset in the second data. In this case, the sampled data can be audited further in the manner described above. Otherwise, it can be determined that the first user has not provided the data specified in the sampling request. In one possible implementation, the second user may request the first user to provide the returned information again or determine that the sampling of the second data has failed.

[0226] If the sampling request includes data locations, the second user can also determine whether the relative positions of the data in the fourth data set are consistent with the corresponding data locations in the sampling request. For example, if the sampling request includes data locations (b12, b14) and (b33, b34), and the data locations of the first subset (b1, b3) (where the second user can first send a first sampling request including the data locations of the second subset, and then send a second sampling request including the data locations of the first subset), the resulting fourth data set includes the first subsets Doc1 and Doc3, and also includes the second subset Item. 12 Item 14 Item 33 Item 34 In this case, the items included in the fourth data can be determined. 12 Item 14 Whether to specify the corresponding positions (b12, b14) in Doc1, and to determine the Item. 33 Item 34 Whether they are located at the corresponding positions (b33, b34) in Doc3 respectively.

[0227] Therefore, when the amount of data to be audited is large, it can prevent omissions and false positives caused by performing only one step of inspection, and achieve a more detailed and targeted inspection of the data to be audited.

[0228] Figure 4 A structural diagram of a data auditing apparatus according to an embodiment of this application is shown. Figure 4 As shown, the device includes:

[0229] The first receiving module 401 is used to receive the first data to be audited sent by the first server. The first data includes the hash value of at least one first subset and the hash value of at least one second subset. The first subset includes at least one second subset.

[0230] The first sending module 402 is used to send a sampling request for the second data to the first server. The second data includes at least one first subset and / or at least one second subset.

[0231] The second receiving module 403 is used to receive the return information sent by the first server in response to the sampling request;

[0232] The determining module 404 is configured to determine the hash value of the second data based on the hash values ​​of at least one first subset and at least one second subset included in the first data;

[0233] The verification module 405 is used to verify the second data based on the returned information and the hash value of the second data, so as to audit the first data.

[0234] According to the embodiments of this application, by dividing the data to be audited into at least one first subset and then further dividing the first subset into at least one second subset, the audit requirements for different data volumes can be adapted. Sampling can be performed on the first and / or second subsets. Especially when the data volume is large, the audit process can be carried out in two steps, targeting the first and second subsets, preventing omissions and false positives when the first server conceals data content or provides incomplete data, thus achieving a more detailed and targeted audit. During the audit process, the second user cannot obtain the original data of the first subset. Since the sampling request is initiated by the second user, the first server cannot determine the second subset to be sampled, and therefore cannot pre-select higher-quality data for sampling to pass the audit. Because the first server sends the first subset first and then performs sampling, it prevents the first server from deliberately falsifying data in the returned information to conceal the original data and pass the audit, making the process randomized, reliable, and controllable.

[0235] In one possible implementation, if the number of first subsets included in the first data is greater than a predetermined threshold, the second data includes at least one first subset and at least one second subset.

[0236] According to the embodiments of this application, it is possible to prevent missed or false detections caused by the first server concealing data content or providing incomplete data when the data volume is large, thereby achieving more detailed and targeted auditing.

[0237] In one possible implementation, the returned information includes third data, verified by module 405, for:

[0238] Determine if the hash value of the third data is the same as the hash value of the second data.

[0239] The second data is verified based on the judgment result.

[0240] According to the embodiments of this application, whether the hash values ​​of the data are consistent can determine whether the first server has provided the data specified in the sampling request, preventing the first server from providing false data. Furthermore, during the above process, the auditor cannot obtain the original data of the data not sampled from the first data, thus preventing the original data of the first data from being leaked.

[0241] In one possible implementation, the verification module 405 is also used for:

[0242] If the number of first subsets included in the first data is greater than a predetermined threshold, determine whether the relative position of the data in the third data is consistent with the relative position of the corresponding second subset and the corresponding first subset in the second data;

[0243] The second data is verified based on the judgment result.

[0244] Therefore, when the amount of data to be audited is large, it can prevent omissions and false positives caused by performing only one step of inspection, and achieve a more detailed and targeted inspection of the data to be audited.

[0245] In one possible implementation, the first data includes an encrypted first subset and an encrypted second subset, and the returned information includes a key corresponding to the second data. The verification module 405 is used for:

[0246] Based on the key, the encrypted second data in the encrypted first subset and the encrypted second subset are decrypted to obtain the fourth data;

[0247] Determine if the hash value of the fourth data is the same as the hash value of the second data.

[0248] The second data is verified based on the judgment result.

[0249] According to the embodiments of this application, by decrypting the encrypted second data in the encrypted first subset and the encrypted second subset according to the key in the returned information to obtain the fourth data, and judging whether the hash value of the fourth data and the hash value of the second data are consistent, it can be determined whether the first server has provided the data specified in the sampling request, thus preventing the first server from providing false data.

[0250] In one possible implementation, the verification module 405 is also used for:

[0251] If the number of first subsets included in the first data exceeds a predetermined threshold, determine whether the relative position of the data in the fourth data is consistent with the relative position of the corresponding second subset and the corresponding first subset in the second data;

[0252] The second data is verified based on the judgment result.

[0253] Therefore, when the amount of data to be audited is large, it can prevent omissions and false positives caused by performing only one step of inspection, and achieve a more detailed and targeted inspection of the data to be audited.

[0254] In one possible implementation, the key includes at least one key corresponding to a first subset and / or a second subset in the second data, wherein the keys corresponding to different first subsets and second subsets are different.

[0255] According to the embodiments of this application, by making the keys corresponding to different subsets different, it is possible to prevent the auditor from obtaining the original data of the data that was not sampled in the first data during the sampling process, thereby preventing the original data of the first data from being leaked.

[0256] In one possible implementation, the sampling request includes at least one data location that indicates the position of a first subset included in the first data, and / or the position of a second subset included in the first subset.

[0257] According to the embodiments of this application, by including data locations in the sampling request, the order of each first subset in the first data, and / or the order of the second subset in the first subset can be determined. If the original data is obtained in the subsequent process, the hash value of the data at the selected data location can be checked to see if it is consistent with the hash value of the corresponding position in the first data initially provided by the first server. This can prevent the first server from replacing part or all of the data in the first data before and after the sampling, so that the first server cannot provide false data to pass the audit during the audit process.

[0258] In one possible implementation, the device further includes:

[0259] The publishing module is used to publish one or more of the following to an immutable database: the hash value of a first subset of the first data, the hash value of a second subset of the first data, the encrypted first subset of the first data, the encrypted second subset of the first data, and a sampling request.

[0260] Therefore, in the event of a dispute, the information published in the database can be used to trace the relevant process, thereby enabling a traceable data audit process.

[0261] Figure 5 A structural diagram of a data auditing apparatus according to an embodiment of this application is shown. Figure 5 As shown, the device includes:

[0262] The second sending module 501 is used to send the first data to be audited to the second server. The first data includes the hash value of at least one first subset and the hash value of at least one second subset. The first subset includes at least one second subset.

[0263] The third receiving module 502 is used to receive a sampling request for the second data sent by the second server, wherein the second data includes at least one first subset and / or at least one second subset;

[0264] The third sending module 503 is used to send return information to the second server in response to the sampling inspection request. The return information is used by the second server to verify the second data based on the return information and the hash value of the second data, so as to audit the first data. The hash value of the second data is determined based on the hash values ​​of at least one first subset and at least one second subset included in the first data.

[0265] According to the embodiments of this application, by dividing the data to be audited into at least one first subset, and then further dividing the first subset into at least one second subset, the audit requirements for different data volumes can be adapted. Sampling can be performed on the first and / or second subsets. Especially when the data volume is large, the audit process can be carried out in two steps, targeting the first and second subsets, preventing omissions and false positives when the first server conceals data content or provides incomplete data, thus achieving a more detailed and targeted audit. During the audit process, the second server also cannot obtain the original data of the first subset. Since the sampling request is initiated by the second server, the first server cannot determine the second subset to be sampled, and therefore cannot pre-select higher-quality data for sampling to pass the audit. Because the first server sends the first subset first, and then performs sampling, it prevents the first server from deliberately falsifying data in the returned information to conceal the original data and pass the audit, making the process randomized, reliable, and controllable.

[0266] In one possible implementation, if the number of first subsets included in the first data is greater than a predetermined threshold, the second data includes at least one first subset and at least one second subset.

[0267] According to the embodiments of this application, it is possible to prevent missed or false detections caused by the first server concealing data content or providing incomplete data when the data volume is large, thereby achieving more detailed and targeted auditing.

[0268] In one possible implementation, the returned information includes third data. The second server verifies the second data based on the returned information and the hash value of the second data, including:

[0269] The second server checks whether the hash value of the third data is consistent with the hash value of the second data.

[0270] The second server verifies the second data based on the judgment result.

[0271] According to the embodiments of this application, by determining whether the hash value of the third data and the hash value of the second data included in the returned information are consistent, it can be determined whether the first server has provided the data specified in the sampling request, thus preventing the first server from providing false data. Furthermore, during the above process, the auditor cannot obtain the original data of the data in the first data that was not sampled, preventing the original data of the first data from being leaked.

[0272] In one possible implementation, the second server verifies the second data based on the returned information and the hash value of the second data, and further includes:

[0273] If the number of first subsets included in the first data is greater than a predetermined threshold, the second server determines whether the relative position of the data in the third data is consistent with the relative position of the corresponding second subset and the corresponding first subset in the second data.

[0274] The second server verifies the second data based on the judgment result.

[0275] Therefore, when the amount of data to be audited is large, it can prevent omissions and false positives caused by performing only one step of inspection, and achieve a more detailed and targeted inspection of the data to be audited.

[0276] In one possible implementation, the first data includes an encrypted first subset and an encrypted second subset, the returned information includes a key corresponding to the second data, and the second server verifies the second data based on the returned information and the hash value of the second data, including:

[0277] The second server uses the key to decrypt the encrypted first subset and the encrypted second data in the encrypted second subset to obtain the fourth data;

[0278] The second server checks whether the hash value of the fourth data is consistent with the hash value of the second data.

[0279] The second server verifies the second data based on the judgment result.

[0280] According to the embodiments of this application, the second server decrypts the encrypted second data in the encrypted first subset and the encrypted second subset based on the key in the returned information to obtain the fourth data, and determines whether the hash value of the fourth data is consistent with the hash value of the second data. This can determine whether the first server has provided the data specified in the sampling request, and prevent the first server from providing false data.

[0281] In one possible implementation, the second server verifies the second data based on the returned information and the hash value of the second data, and further includes:

[0282] If the number of first subsets included in the first data is greater than a predetermined threshold, the second server determines whether the relative position of the data in the fourth data is consistent with the relative position of the corresponding second subset and the corresponding first subset in the second data.

[0283] The second server verifies the second data based on the judgment result.

[0284] Therefore, when the amount of data to be audited is large, it can prevent omissions and false positives caused by performing only one step of inspection, and achieve a more detailed and targeted inspection of the data to be audited.

[0285] In one possible implementation, the key includes at least one key corresponding to a first subset and / or a second subset in the second data, with different keys corresponding to different first and second subsets.

[0286] According to the embodiments of this application, by making the keys corresponding to different subsets different, it is possible to prevent the auditor from obtaining the original data of the data that was not sampled in the first data during the sampling process, thereby preventing the original data of the first data from being leaked.

[0287] In one possible implementation, the sampling request includes at least one data location indicating the position of a first subset included in the first data, and / or the position of a second subset included in the first subset.

[0288] According to the embodiments of this application, by including data locations in the sampling request, the order of each first subset in the first data, and / or the order of the second subset in the first subset can be determined. If the original data is obtained in the subsequent process, the hash value of the data at the selected data location can be checked to see if it is consistent with the hash value of the corresponding position in the first data initially provided by the first server. This can prevent the first server from replacing part or all of the data in the first data before and after the sampling, so that the first server cannot provide false data to pass the audit during the audit process.

[0289] In some embodiments, the functions or modules of the apparatus provided in this disclosure can be used to perform the methods described in the above method embodiments. The specific implementation can be referred to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0290] This disclosure also proposes a computer-readable storage medium storing computer program instructions that, when executed by a processor, implement the above-described method. The computer-readable storage medium can be volatile or non-volatile.

[0291] This disclosure also proposes an electronic device, including: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.

[0292] This disclosure also provides a computer program product, including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code, wherein when the computer-readable code is run in a processor of an electronic device, the processor in the electronic device performs the above-described method.

[0293] Figure 6 This diagram illustrates a block diagram of an apparatus 1900 for data auditing according to an exemplary embodiment. For example, apparatus 1900 may be provided as a server or terminal device. (Refer to...) Figure 6 The apparatus 1900 includes a processing component 1922, which further includes one or more processors, and memory resources represented by memory 1932 for storing instructions, such as application programs, that can be executed by the processing component 1922. The application programs stored in memory 1932 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 1922 is configured to execute instructions to perform the methods described above.

[0294] Device 1900 may also include a power supply component 1926 configured to perform power management of device 1900, a wired or wireless network interface 1950 configured to connect device 1900 to a network, and an input / output (I / O) interface 1958. Device 1900 can operate on an operating system stored in memory 1932, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™, or similar.

[0295] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions that can be executed by a processing component 1922 of the device 1900 to perform the above-described method.

[0296] This disclosure can be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of this disclosure.

[0297] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination thereof. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.

[0298] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.

[0299] Computer program instructions used to perform the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing the status information of the computer-readable program instructions to implement various aspects of this disclosure.

[0300] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.

[0301] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0302] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0303] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0304] The various embodiments of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or technical improvements to the embodiments in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.

Claims

1. A data auditing method, characterized in that, The method includes: Receive auditable first data sent by a first server, the first data including the hash values ​​of at least one first subset and at least one second subset, the first subset including at least one second subset; Send a sampling request for the second data to the first server, wherein the second data includes at least one first subset and / or at least one second subset; The system receives a response from a first server in response to the sampling request. The response includes third data or a key corresponding to the second data. The key is used to decrypt the encrypted second data in the first data to obtain the fourth data. The hash value of the second data is determined based on the hash values ​​of at least one first subset and at least one second subset included in the first data; The second data is verified based on the returned information and the hash value of the second data in order to audit the first data; the verification is used to determine whether the data indicated by the returned information is consistent with the second data, so as to determine whether the first server has provided the data specified in the sampling request.

2. The method according to claim 1, characterized in that, If the number of first subsets included in the first data is greater than a predetermined threshold, the second data includes at least one first subset and at least one second subset.

3. The method according to claim 1 or 2, characterized in that, The returned information includes third data, and the verification of the second data based on the returned information and the hash value of the second data includes: Determine whether the hash value of the third data is consistent with the hash value of the second data; The second data is verified based on the judgment result.

4. The method according to claim 3, characterized in that, The step of verifying the second data based on the returned information and the hash value of the second data further includes: If the number of first subsets included in the first data is greater than a predetermined threshold, determine whether the relative position of the data in the third data is consistent with the relative position of the corresponding second subset and the corresponding first subset in the second data; The second data is verified based on the judgment result.

5. The method according to claim 1 or 2, characterized in that, The first data includes an encrypted first subset and an encrypted second subset, the returned information includes a key corresponding to the second data, and the verification of the second data based on the returned information and the hash value of the second data includes: Based on the key, the encrypted second data in the encrypted first subset and the encrypted second subset are decrypted to obtain the fourth data; Determine whether the hash value of the fourth data is consistent with the hash value of the second data; The second data is verified based on the judgment result.

6. The method according to claim 5, characterized in that, The step of verifying the second data based on the returned information and the hash value of the second data further includes: If the number of first subsets included in the first data is greater than a predetermined threshold, determine whether the relative position of the data in the fourth data is consistent with the relative position of the corresponding second subset and the corresponding first subset in the second data; The second data is verified based on the judgment result.

7. The method according to claim 5, characterized in that, The key includes at least one key corresponding to a first subset and / or a second subset in the second data, and the keys corresponding to different first subsets and second subsets are different.

8. The method according to claim 1, characterized in that, The sampling request includes at least one data location, which indicates the position of the first subset included in the second data within the first data, and / or the position of the second subset included in the second data within the first subset.

9. The method according to claim 1, characterized in that, The method further includes: Publish one or more of the following to an immutable database: the hash value of a first subset of the first data, the hash value of a second subset of the first data, the encrypted first subset of the first data, the encrypted second subset of the first data, and the sampling request.

10. A data auditing method, characterized in that, The method includes: Send the first data to be audited to the second server. The first data includes the hash value of at least one first subset and the hash value of at least one second subset. The first subset includes at least one second subset. Receive a sampling request for second data sent by the second server, wherein the second data includes at least one first subset and / or at least one second subset; In response to the sampling request, a return message is sent to the second server. The return message includes third data or a key corresponding to the second data. The key is used to decrypt the encrypted second data in the first data to obtain fourth data. The return message is used by the second server to verify the second data based on the hash value of the return message and the second data, in order to audit the first data. The hash value of the second data is determined based on the hash values ​​of at least one first subset and at least one second subset included in the first data. The verification is used to determine whether the data indicated by the return message is consistent with the second data, so as to determine whether the first server has provided the data specified in the sampling request.

11. The method according to claim 10, characterized in that, If the number of first subsets included in the first data is greater than a predetermined threshold, the second data includes at least one first subset and at least one second subset.

12. The method according to claim 10 or 11, characterized in that, The returned information includes third data. The second server verifies the second data based on the returned information and the hash value of the second data, including: The second server determines whether the hash value of the third data is consistent with the hash value of the second data; The second server verifies the second data based on the judgment result.

13. The method according to claim 12, characterized in that, The second server verifies the second data based on the returned information and the hash value of the second data, and further includes: If the number of the first subsets included in the first data is greater than a predetermined threshold, the second server determines whether the relative position of the data in the third data is consistent with the relative position of the corresponding second subset and the corresponding first subset in the second data. The second server verifies the second data based on the judgment result.

14. The method according to claim 10 or 11, characterized in that, The first data includes an encrypted first subset and an encrypted second subset. The returned information includes a key corresponding to the second data. The second server verifies the second data based on the returned information and the hash value of the second data, including: The second server decrypts the encrypted second data in the encrypted first subset and the encrypted second subset according to the key to obtain the fourth data; The second server determines whether the hash value of the fourth data and the hash value of the second data are consistent; The second server verifies the second data based on the judgment result.

15. The method according to claim 14, characterized in that, The second server verifies the second data based on the returned information and the hash value of the second data, and further includes: If the number of the first subsets included in the first data is greater than a predetermined threshold, the second server determines whether the relative position of the data in the fourth data is consistent with the relative position of the corresponding second subset and the corresponding first subset in the second data. The second server verifies the second data based on the judgment result.

16. The method according to claim 14, characterized in that, The key includes at least one key corresponding to a first subset and / or a second subset in the second data, and the keys corresponding to different first subsets and second subsets are different.

17. The method according to claim 10, characterized in that, The sampling request includes at least one data location, which indicates the position of the first subset included in the second data within the first data, and / or the position of the second subset included in the second data within the first subset.

18. A data auditing device, characterized in that, The device includes: The first receiving module is configured to receive auditable first data sent by the first server, the first data including the hash values ​​of at least one first subset and at least one second subset, the first subset including at least one second subset; The first sending module is configured to send a sampling request for the second data to the first server, wherein the second data includes at least one first subset and / or at least one second subset; The second receiving module is used to receive return information sent by the first server in response to the sampling request; the return information includes third data or a key corresponding to the second data; the key is used to decrypt the encrypted second data in the first data to obtain the fourth data; The determining module is configured to determine the hash value of the second data based on the hash values ​​of at least one first subset and at least one second subset included in the first data; The verification module is used to verify the second data based on the returned information and the hash value of the second data, so as to audit the first data; the verification is used to determine whether the data indicated by the returned information is consistent with the second data, so as to determine whether the first server has provided the data specified in the sampling request.

19. A data auditing device, characterized in that, The device includes: The second sending module is used to send the first data to be audited to the second server. The first data includes the hash values ​​of at least one first subset and at least one second subset. The first subset includes at least one second subset. The third receiving module is used to receive a sampling request for the second data sent by the second server, wherein the second data includes at least one first subset and / or at least one second subset; The third sending module is configured to send return information to the second server in response to the sampling request. The return information includes third data or a key corresponding to the second data. The key is used to decrypt the encrypted second data in the first data to obtain fourth data. The return information is used by the second server to verify the second data based on the hash value of the return information and the second data, in order to audit the first data. The hash value of the second data is determined based on the hash values ​​of at least one first subset and at least one second subset included in the first data. The verification is used to determine whether the data indicated by the return information is consistent with the second data, so as to determine whether the first server has provided the data specified in the sampling request.

20. A data auditing device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to, when executing instructions stored in the memory, implement the method of any one of claims 1 to 9, or implement the method of any one of claims 10 to 17.

21. A non-volatile computer-readable storage medium storing computer program instructions thereon, characterized in that, When the computer program instructions are executed by the processor, they implement the method according to any one of claims 1 to 9, or implement the method according to any one of claims 10 to 17.

Citation Information

Patent Citations

  • Cloud platform trusted log auditing method for privacy protection based on trusted third party

    CN108322306A

  • SGX-based cloud data integrity auditing method and apparatus

    CN111859467A