A method and device for data auditing
By storing encrypted query results on the blockchain and conducting audits, it solves the data privacy and audit problems in multi-head businesses and improves user experience and data security.
Patent Information
- Application Number
- CN202110527002.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2017-10-23
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2037-10-23
AI Technical Summary
In a multi-headed business, since the user's business data at each service provider belongs to each service provider's own private data, it is difficult to conduct audits and affects the user experience.
By storing the encrypted query results in the blockchain, and when receiving an audit request, obtain the audit results to be audited and the encrypted results returned by the service provider from the blockchain, and perform audits to verify their consistency and avoid private data. Leakage and tampering.
It realizes the audit of multi-head type business, improves user experience, and ensures the privacy and integrity of data.
Smart Images

Figure CN113139009B
Abstract
Description
Technical Field
[0001] The present application relates to the field of information technology, and in particular to a method and device for data auditing. Background Art
[0002] Auditing, as a supervisory mechanism, plays an important role in modern society. At present, with the development of the Internet, the types of audit content are increasing. For example, auditing the user's insurance situation in the insurance company, auditing the user's loan situation, auditing the user's assets, etc. The service provider can determine whether to provide services to the user or what kind of services to provide based on the audit results.
[0003] In the prior art, due to the open market, there may be multiple service providers for the same service in the market. A user can perform the same service at multiple service providers, so that each service provider performs the same service for the same user, that is, multiple-type services.
[0004] The following is an explanation using the loan business as an example. In the prior art, when the loan provided by a single lender cannot meet the user's needs, the user can also submit loan requests to multiple lenders to obtain more loans, which is called multiple borrowing.
[0005] This means that any lender that provides loan services needs to audit the user before executing the service in order to assess the risk of the loan service. The amount of loan that can be provided to the user is determined based on the amount of loan that the user has obtained from other lenders (i.e. the audit results obtained).
[0006] For example, suppose user A needs a loan of 1 million yuan. Since the loan obtained from bank B (assuming 300,000 yuan) cannot meet the needs of user A, user A can continue to initiate loan requests from bank C and bank D. Bank C and bank D can then audit user A and determine whether to lend to user A and the amount of loan to be provided based on the amount of loan obtained by user A from other banks.
[0007] However, since the loan amount obtained by a user from a lender belongs to the private data of the lender, the lender usually does not want to provide the loan amount obtained by the user to a third party (such as other users or other lenders). In addition, in order to ensure the security of private data, private data is usually only stored in the lender's own device. This makes it difficult for a lender to obtain the private data of other lenders on the one hand, and even if other lenders provide the above private data, the authenticity of the private data is difficult to verify on the other hand.
[0008] Based on the prior art, this specification provides a new data auditing method and device. Summary of the invention
[0009] The embodiments of this specification provide a method and device for data auditing, which are used to solve the problem that in existing multi-type businesses, it is difficult to audit multi-type businesses because the business data of users at each service provider is the privacy data of each service provider itself, resulting in poor user experience for multi-type businesses such as multi-loans.
[0010] The embodiments of this specification adopt the following technical solutions:
[0011] A data audit method, comprising:
[0012] When a query request is received, the query request is sent to several service-side devices, so that each service-side device determines the encrypted query result corresponding to the query request according to the query request, and stores it in the blockchain as a result to be audited;
[0013] When receiving an audit request for the query request, for each service party device, obtaining the to-be-audited result stored in the service party device from the blockchain, and sending the audit request to the service party device, so that the service party device returns the encrypted query result corresponding to the query request as the standard result according to the audit request;
[0014] The service provider device is audited according to the results to be audited and the standard results.
[0015] A data audit method, comprising:
[0016] When the service device receives the query request sent by the proxy device, it determines the encrypted query result corresponding to the query request according to the query request, and stores it in the blockchain as the result to be audited;
[0017] When receiving an audit request for a query request sent by the proxy device, determining, according to the audit request, an encrypted query result corresponding to the query request as a standard result;
[0018] The standard result is returned to the proxy device, so that the proxy device audits the service party device according to the standard result and the result to be audited obtained from the blockchain.
[0019] A data auditing device, comprising:
[0020] The evidence storage module, when receiving a query request, sends the query request to a plurality of service party devices, so that each service party device determines the encrypted query result corresponding to the query request according to the query request, and stores it in the blockchain as a result to be audited;
[0021] an acquisition module, when receiving an audit request for a query request, for each service party device, acquiring the to-be-audited result stored in the service party device from the blockchain, and sending the audit request to the service party device, so that the service party device returns the encrypted query result corresponding to the query request as a standard result according to the audit request;
[0022] The audit module audits the service provider device according to the to-be-audited results and the standard results.
[0023] A data auditing device, comprising:
[0024] The evidence storage module, when receiving the query request sent by the proxy device, determines the encrypted query result corresponding to the query request according to the query request, and stores it in the blockchain as the result to be audited;
[0025] a response module, when receiving an audit request for a query request sent by a proxy device, determining, according to the audit request, an encrypted query result corresponding to the query request as a standard result;
[0026] The sending module returns the standard result to the proxy device, so that the proxy device audits the service party device according to the standard result and the result to be audited obtained from the blockchain.
[0027] An agent device includes: one or more processors and a memory, wherein the memory stores a program and is configured to execute the following steps by the one or more processors:
[0028] When a query request is received, the query request is sent to several service-side devices, so that each service-side device determines the encrypted query result corresponding to the query request according to the query request, and stores it in the blockchain as a result to be audited;
[0029] When receiving an audit request for the query request, for each service party device, obtaining the to-be-audited result stored in the service party device from the blockchain, and sending the audit request to the service party device, so that the service party device returns the encrypted query result corresponding to the query request as the standard result according to the audit request;
[0030] The service provider device is audited according to the results to be audited and the standard results.
[0031] A service device includes: one or more processors and a memory, wherein the memory stores a program and is configured to execute the following steps by the one or more processors:
[0032] When receiving a query request sent by the proxy device, determining, according to the query request, an encrypted query result corresponding to the query request, and storing it in the blockchain as a result to be audited;
[0033] When receiving an audit request for a query request sent by the proxy device, determining, according to the audit request, an encrypted query result corresponding to the query request as a standard result;
[0034] The standard result is returned to the proxy device, so that the proxy device audits the service party device according to the standard result and the result to be audited obtained from the blockchain.
[0035] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:
[0036] Through the method and apparatus provided in this specification, when receiving a query request, each service party device can store the audit result obtained by irreversibly encrypting the query result in the blockchain, so that if an audit request for the query request is received later, the audit result stored in the blockchain and the encrypted query result returned by each service party device (as a standard result) can be used to audit each service party device. Since the audit result used for evidence storage is an encrypted query result, the leakage of the privacy data of each service party is avoided. At the same time, storage in the blockchain avoids the possibility of tampering with the audit result. Therefore, each service party device can be audited, which provides a better foundation for the development of multi-head business and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0038] Figure 1 A data audit process provided by the embodiments of this specification;
[0039] Figures 2a to 2c A schematic diagram of a system including various parties in a data audit process provided for an embodiment of this specification;
[0040] Figure 3 Another data audit process provided by the embodiment of this specification;
[0041] Figure 4 A schematic diagram of the structure of a data audit device provided in an embodiment of this specification;
[0042] Figure 5 A schematic diagram of the structure of another data auditing device provided in an embodiment of this specification;
[0043] Figure 6 A schematic diagram of the structure of another proxy device provided in the embodiments of this specification;
[0044] Figure 7 A schematic diagram of the structure of another service-side device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this application will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in the specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0046] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0047] Figure 1 A data audit process provided in the embodiment of the specification may specifically include the following steps:
[0048] S100: When a query request is received, the query request is sent to several service-side devices, so that each service-side device determines the encrypted query result corresponding to the query request according to the query request, and stores it in the blockchain as a result to be audited.
[0049] In one or more embodiments of this specification, the data audit process may be a process of auditing the data of multiple service providers in a multi-head type of business scenario. For example, assuming that user a applies for insurance at insurance company e, insurance company e may send an audit request to other insurance companies to determine the asset status of user a and the total amount of insurance that has been insured, so as to facilitate the subsequent determination of whether to provide insurance services to user a. This specification does not limit what kind of business the multi-head type of business is.
[0050] For the convenience of description, the following description will use multiple loans as the business scenario of the data audit process provided in this specification. Therefore, the query request can be a loan query request, each service provider is a mortgage lender providing loan services, the service provider device can be a lender device, and the audit process is to audit the data corresponding to the loan amount provided by each lender to the user.
[0051] Specifically, in a multiple loan scenario, when a user applies for multiple loans from any lender, the user may provide the total amount of loans obtained from other lenders so that the lender can start multiple loan business and determine subsequent operations. Therefore, in this manual, a user may send a loan query request to query the total amount of loans obtained by the user from each lender. Alternatively, the lender may also query the total amount of loans that the user has obtained, so in this manual, the lender may also send a loan query request to query the total amount of loans obtained by the user from each lender. Of course, other individuals or institutions may also send a loan query request for querying the total amount of loans obtained by a certain user from each lender.
[0052] Therefore, in this specification, when the proxy device receives the above-mentioned loan query request, the proxy device may send the loan query request to each lender device. The proxy device may be a software server, which may be integrated on a third party device that has no interest in each lender, or integrated on a lender device, which is not limited in this specification.
[0053] In addition, in the embodiment of the present specification, after receiving the loan query request, the proxy device can also establish a business process according to the loan query request and determine the serial number of the business process, that is, the serial number corresponding to the loan query request.
[0054] Furthermore, in the present specification, when the proxy device receives a loan query request, the proxy device may send the loan query request to each lender device, so that each lender device returns the encrypted loan amount obtained by the user from the lender, and determines the user's total loan amount based on each encrypted loan amount.
[0055] Specifically, first, since in a multi-loan scenario, a user can obtain a loan from any lender that provides loan services, the proxy device can first determine the devices of each lender that provides loan services. Among them, the lender device in this specification can be a server or terminal of the lender. Of course, this specification does not limit the method used by the proxy device to determine each lender device.
[0056] Afterwards, the proxy device may also send the loan query request to each lender device, so that each lender device can determine the loan amount obtained by the user from the lender according to the loan query request as the query result. Finally, the query result is encrypted, stored as a result to be audited, and returned to the proxy device. It should be noted that for each lender, if the lender has provided a loan to the user, the query result at this time is the loan amount, and if the lender has never provided a loan to the user, the query result at this time may be zero.
[0057] In order to facilitate the subsequent verification of the query result, the lender's device can store the query result. In order to prevent the query result from being leaked or tampered with, the lender's device can also first irreversibly encrypt the query result to obtain an encrypted result, so that even if other people get the encrypted result, they cannot restore the query result, thereby avoiding the leakage of private data. After that, the encrypted result is stored in the blockchain as the result to be audited to ensure that the result to be audited cannot be tampered with. Among them, after the query result is encrypted, the result can be a summary of the query result, that is, the result to be audited can be a summary of the query result.
[0058] Specifically, the lending device can first generate a random number, and the value range of the random number can be set as needed, which is not limited in this specification. After that, the query result (i.e., the loan amount) is combined with the random number, and then the combined result is encrypted according to a preset irreversible encryption algorithm to obtain an encrypted result as the result to be audited, and finally the result to be audited is stored in the blockchain. Among them, the combination of the random number and the query result can be set as needed, and the irreversible encryption algorithm can at least include: one of the fifth version of the message digest algorithm (Message Digest Algorithm, MD5), the hash algorithm Hash, and the secure hash standard (Secure Hash Standard, SHS).
[0059] For example, if the lender device a generates a random number 1325, and the query result is that the loan amount of user b is 500,000 yuan, the lender device a can insert the random number into the specified position of the query result, and then perform MD5 encryption to obtain the encrypted result. If the plain text obtained after combination is: User b's loan amount is 500,000 yuan 1325, then after MD5 encryption, it is obtained: 96e052089c61792b80faf2dd9901f7b6, which is the result to be audited.
[0060] For ease of understanding, this specification provides a system diagram including various parties corresponding to the above process, such as Figure 2aAs shown. It can be seen that the user sends a loan query request to the proxy device, and the proxy device sends the loan query request to each lending device (such as, Figure 2a The device of lender A in the process of loan inquiry is sent to the device of lender C in the process of loan inquiry. Each lender device stores the determined audit results in the blockchain to complete the data storage process. The loan inquiry request is not sent directly to each lender device, but is forwarded to each lender device by the proxy device as an intermediary.
[0061] Furthermore, in this specification, each lender device may also return the query result determined by each lender device to the proxy device. Specifically, for each lender device, in order to prevent the leakage of privacy data, the lender device may return the above-mentioned encrypted query result to the proxy device, that is, return the audit result to the proxy device. Then the proxy server may also receive the audit results returned by each lender device, and process each audit result using a shared secret (SecretShared, SS) method to obtain the total loan amount of the user, and provide the total loan amount to the user. Among them, the total loan amount may also carry the serial number corresponding to the loan query request, so that the user can determine which loan query request was sent for the total loan amount.
[0062] Of course, based on Figure 2a As shown in the system diagram, each lending device can return the audit results to the proxy device, and the proxy device determines the total amount of the user's loan and then returns it to the user, such as Figure 2b shown.
[0063] In addition, for each lender device, this specification does not limit in which blockchain the lender device stores the audit results.
[0064] S102: When an audit request for the query request is received, for each service provider device, the audit result stored in the service provider device is obtained from the blockchain, and the audit request is sent to the service provider device, so that the service provider device returns the encrypted query result corresponding to the query request as the standard result according to the audit request.
[0065] In the embodiments of this specification, the proxy device is still used as the executor of the data audit process. Since the above step S100 can be regarded as a process of data notarization, each lender device can store the results to be audited for notarization. In addition, for the loan query request, the proxy device can also obtain the user's total loan amount and return it to the user based on the results to be audited returned by each lender device. If the user has doubts about the total loan amount, it means that there may be a problem with the results to be audited returned by the lender device. The user can also initiate an audit request for the loan query request to the proxy device. The proxy device can obtain the results to be audited stored in the blockchain by each lender device, and obtain the encrypted query results corresponding to the query request from each lender device again, and use them as standard results to facilitate subsequent audits of each lender device.
[0066] Specifically, the audit request may also carry a serial number corresponding to the loan query request.
[0067] In addition, the audit request may be initiated by the user directly to the proxy device, or by the user through a lender device. In this case, the sender of the audit request may be any lender device, and this specification does not limit this.
[0068] Furthermore, the audit results stored in the blockchain by each lender device are obtained. The audit results are encrypted query results corresponding to the query request.
[0069] For each lender device, since the proxy device receives the storage address corresponding to the loan query request returned by the lender device in step S100, the proxy device can store the correspondence between the lender device, the storage address and the serial number locally. Therefore, the proxy device can determine the storage address corresponding to the serial number returned by the lender device according to the serial number carried in the audit request, and obtain the audit result corresponding to the loan query request stored by the lender device from the blockchain according to the storage address.
[0070] For example, it is assumed that in step S100, the proxy device stores the data correspondence relationship shown in Table 1.
[0071]
[0072] Table 1
[0073] The proxy device can then directly determine the storage address of the pending audit results of each lender's device based on the serial number, and obtain each pending audit result from the blockchain.
[0074] Furthermore, with respect to sending the audit request to the lender device, since in step S100, the lender device can establish and store the correspondence between each serial number, each query result and each random number, when the proxy device sends the audit request to the lender device, the lender device can determine the corresponding query result and random number based on the serial number carried in the audit request, and adopt the method in step S100 to combine the query result with the random number, and irreversibly encrypt the combined result, and return the encrypted result as the standard result to the proxy device.
[0075] S104: Audit the service provider device according to the to-be-audited result and the standard result.
[0076] In the embodiment of this specification, the proxy device can audit the lender device after determining the audit results stored in the blockchain for evidence storage by the lender device and obtaining the standard results returned by the lender. For example, it is determined whether the standard results returned by the lender are consistent with the audit results stored in the blockchain. If they are consistent, it can be determined that the audit results stored by the lender device have been verified.
[0077] In order to facilitate the understanding of this manual, based on Figure 2a as well as Figure 2b The system shown in this specification also provides a system schematic diagram corresponding to step S104, such as Figure 2c As shown. It can be seen that in the first step, an audit request is sent to the proxy device. In the second step, the proxy device can send the audit request to each lender device and receive the standard results returned by each lender device. And obtain each audit result from the blockchain. Then in the third step, an audit is performed based on each audit result obtained from the blockchain and the standard results obtained from each lender device. Among them, the audit request is forwarded by the proxy device to each lender device, and the proxy device audits the audit results stored in the blockchain of each lender respectively.
[0078] It should be noted that the data audit method provided in this manual is that the audit results to be audited are provided by the devices of each lender and stored in the blockchain, and the authenticity of the audit results has not been verified. In addition, the standard results are also provided by the devices of each lender, and the authenticity has not been verified.
[0079] For example, bank A determines that the query result is a user's loan amount of 100,000 yuan, but suppose bank A falsifies the query result and changes the query result to a user's loan amount of 1 million yuan, and generates a pending audit result. Since the pending audit result is directly stored in the blockchain by bank A, there is no step to supervise or verify the authenticity of the query result during the entire process of generating the pending audit result, so the authenticity of the pending audit result has not been verified. Similarly, the authenticity of the standard result has not been verified.
[0080] If the lender device falsifies the audit result when storing it, then in the subsequent audit process, the proxy device can only determine whether the standard result returned by the lender device is consistent with the audit result obtained from the blockchain, and return the consistency result (i.e., the audit result) to the user. It cannot determine whether the audit result is true, and cannot determine whether the query result (e.g., loan amount) used to generate the audit result is true.
[0081] Continuing with the above example, assuming that after receiving the audit request, Bank A still uses the query result to determine the standard result for a user's loan amount of 1 million yuan, the proxy device can only verify that the standard result is consistent with the result to be audited stored in the blockchain, but cannot verify whether the result to be audited is true.
[0082] It can be seen that if the lending device not only falsifies data during the data storage process (ie, step S100), but also falsifies data during the data audit, the user will still have doubts about the audit results and the total amount of loans. Therefore, the user can send an audit request for the loan query request to the proxy device again.
[0083] In the embodiment of the present specification, in order to prevent the lender device from falsifying the data returned to the proxy device multiple times, the proxy device can also send a detailed acquisition request to each lender device, so that each lender device determines the query result and returns the query result to the proxy device. The proxy device then returns the query result returned by each lender device to the user, so that the user can determine the query result in question based on each query result, and then manually audit the query result.
[0084] Of course, the specific subsequent manual audit of the query results can adopt the same method as the prior art, and this specification does not limit this.
[0085] Specifically, in the embodiment of the present specification, if the proxy device receives multiple audit requests for the same loan query request, it can send a detail acquisition request to each lender device. Alternatively, when the proxy device receives a detail acquisition request sent by the user, it sends a detail acquisition request to each lender device.
[0086] Furthermore, since each lender device can provide its own determined query results based on the detail acquisition request, in order to prevent data leakage to others, the proxy device can also determine whether the user has the authority to view the query results before sending the detail acquisition request to each lender device.
[0087] Specifically, the proxy device may first obtain the identity information of the user, and determine whether the user has the authority to view the query results based on the identity information. If yes, a request for obtaining details is sent, otherwise no request for obtaining details is sent. Alternatively, the proxy device sends the identity information of the user to each lender device, and when each lender device determines that the user has the authority to view the query results, the query results are returned.
[0088] For example, the proxy device can determine whether the user is querying his own loan situation, and if so, determine whether the user has the authority to view the query results, or, when the lender sends a request for obtaining details, determine whether the lender has obtained the user's authorization, etc. Of course, other methods similar to the prior art can also be used, and this specification does not limit how to determine whether the user has the authority to view the query results.
[0089] It should be noted that the execution subject of each step of the method provided in the embodiment of this specification can be the same device, or the method can be executed by different devices. For example, the execution subject of step S100 and step S102 can be device 1, and the execution subject of step S102 can be device 2; or, the execution subject of step S100 can be device 1, and the execution subject of step S102 and step S104 can be device 2; and so on. The above describes a specific embodiment of this specification. Other embodiments are within the scope of the attached claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiment and still achieve the desired results. In addition, the process depicted in the drawings does not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0090] In addition, in the embodiment of the present specification, the proxy device may also receive the storage address of the audit result returned by the lender device in the blockchain for each lender device. If an audit request for the loan query request is subsequently received, the proxy device may determine the audit result stored by the lending device according to the storage address to perform subsequent steps. Therefore, the proxy device may also establish and store the correspondence between the proxy device, the storage address, and the loan query request. Specifically, for each lender device, when the proxy device receives the storage address of the audit result returned by the lender device in the blockchain, a correspondence may be established between the device identification of the proxy device, the serial number of the loan query request, and the storage address. Among them, the serial number may be the serial number corresponding to the loan query request determined by the proxy device in step S100, or the serial number corresponding to the loan query request provided by the lender device, and this specification does not limit this.
[0091] Furthermore, in the above embodiments in this specification, the audit method is described by taking the application of the audit method in a multiple loan scenario as an example. Of course, the audit method can also be applied in different business scenarios.
[0092] For example, in the scenario of auditing the user's insurance status, the query request may be an insurance query request, and each service provider may be an insurance service provider. In the scenario of auditing the user's asset status, the query request may be an asset query request, and each service provider may be a bank, insurance company, real estate transaction center, or other institution or enterprise. This specification does not limit the business scenario in which the audit method is applied.
[0093] based on Figure 1 The data audit method shown in the embodiment of the specification also provides a data audit method executed by a service-side device, such as Figure 3 shown.
[0094] Figure 3 A schematic diagram of a data audit process provided in an embodiment of this specification may specifically include the following steps:
[0095] S200: When the service device receives the query request sent by the proxy device, it determines the encrypted query result corresponding to the query request according to the query request, and stores it in the blockchain as a result to be audited.
[0096] In the embodiments of this specification, the query request is a loan query request, and the audit process is a multi-loan scenario. Therefore, the service device can be a lender device in the loan scenario, and the lender device can receive the loan query request sent by the proxy device. The loan query request can carry a user identifier (such as an account identifier, or an ID number, etc. that can uniquely identify the user's identity).
[0097] Afterwards, the lending device can establish a corresponding business process according to the loan query request, and determine the loan amount corresponding to the user identifier as the query result by executing the business process.
[0098] In addition, in the embodiments of this specification, the lender may be a financial institution that provides loan services, and the lender's device may be a terminal or server, etc., which is not limited in this specification.
[0099] In the embodiment of this specification, after the lender device determines the query result, in order to prevent the query result (i.e., private data) from being leaked, the lender device may also irreversibly encrypt the query result as a result to be audited. In order to enable the query result to be audited later, the lender device may also store the result to be audited in the blockchain. In addition, the lender device may also return the result to be audited to the proxy device so that the proxy device can determine the total amount of loans of the user.
[0100] Specifically, the process of the lender device obtaining the result to be audited can refer to the description in step S102, that is, generating a random number, combining the query result with the random number, irreversibly encrypting the combined result, and using the encrypted result as the result to be audited, which will not be described in detail in this specification. In addition, in this specification, it is not limited in which blockchain the lender device stores the result to be audited.
[0101] In addition, the lender device can also determine the serial number corresponding to the loan query request, and establish a corresponding relationship between the query result, the random number and the serial number, and store it. So that if it is necessary to audit the audit result returned to the proxy device later, the query result and the random number can be determined according to the serial number to obtain the standard result and return it to the proxy device for audit. Specifically, the serial number can be carried in the loan query request, or it can be determined by the lender device according to the loan query request, and this specification does not limit this.
[0102] Of course, in order to facilitate the proxy device to determine which loan query request the unaudited result corresponds to, each lending device may return the serial number together with the unaudited result to the proxy device.
[0103] S202: When receiving an audit request for a query request sent by a proxy device, determine, according to the audit request, an encrypted query result corresponding to the query request as a standard result.
[0104] S204: Return the standard result to the proxy device, so that the proxy device audits the service provider device according to the standard result and the result to be audited obtained from the blockchain.
[0105] Specifically, the audit request received by the lending device may include the serial number corresponding to the loan query request, and the lending device may determine the random number and query result corresponding to the serial number from the correspondence between the query results, random numbers and serial numbers stored locally, and determine the encrypted query result as the standard result and return it to the proxy device through the same method as in step S102, so that the proxy device executes step S104. The specific implementation method and process have been described in the corresponding steps of this specification, and will not be repeated in this specification.
[0106] In addition, in another embodiment provided in the present specification, the lender device may also establish a corresponding relationship between the serial number corresponding to the loan query request, the business data corresponding to the loan query request, and the random number in step S200, and store them. Then in step S202, when an audit request for the loan query request is received, the serial number of the loan query request for which the audit request is directed may be determined first. The business data corresponding to the loan query request is then determined based on the serial number, and the query result is determined based on the business data (i.e., the process of determining the query result based on the loan query request in step S200 is repeated). Finally, after combining the query result and the random number, the encrypted result obtained by irreversibly encrypting the combined result is used as the standard result and returned to the proxy device.
[0107] In step S200, the lender device may not store the query result, but store the business data corresponding to the query request, so that the process of determining the query result in step S200 can be repeated again according to the business data. For example, the business data may include: account identification, query content, query time period, etc. Avoid the risk of query result leakage caused by the lender device storing the query result. Of course, this specification does not limit what kind of data the business data specifically includes.
[0108] based on Figure 1 The data audit method shown in the present specification also provides a data audit device, such as Figure 4 shown.
[0109] Figure 4A schematic diagram of the structure of a data audit device provided in an embodiment of this specification includes:
[0110] The evidence storage module 500, when receiving a query request, sends the query request to a plurality of service party devices, so that each service party device determines the encrypted query result corresponding to the query request according to the query request, and stores it in the blockchain as a result to be audited;
[0111] The acquisition module 502, when receiving an audit request for a query request, acquires, for each service party device, the to-be-audited result stored in the service party device from the blockchain, and sends the audit request to the service party device, so that the service party device returns the encrypted query result corresponding to the query request as a standard result according to the audit request;
[0112] The audit module 504 audits the service provider device according to the to-be-audited result and the standard result.
[0113] After receiving the query request, the evidence storage module 500 determines the serial number corresponding to the query request, and sends the serial number to each service party device, so that each service party device establishes and stores the corresponding relationship between the query result determined by itself and the serial number.
[0114] The device also includes:
[0115] The evidence storage module 500 receives, for each service provider device, the storage address of the audit result returned by the service provider device in the blockchain, establishes a corresponding relationship between the service provider device, the storage address and the serial number, and stores it.
[0116] The audit request carries a serial number corresponding to the query request, and the acquisition module 502 obtains the audit result corresponding to the serial number stored in the blockchain by the service party device according to the correspondence between the locally stored service party devices, the serial numbers and the storage addresses.
[0117] The query request is a loan query request, and the device further includes:
[0118] The result returning module 506 receives the audit results returned by each service party device, processes each audit result, obtains the total amount of debits and credits, and returns it.
[0119] based on Figure 3 The data audit method shown in the specification also provides another data audit device, such as Figure 5 shown.
[0120] Figure 5A schematic diagram of the structure of a data audit device provided in an embodiment of this specification includes:
[0121] The evidence storage module 600, when receiving a query request sent by the proxy device, determines the encrypted query result corresponding to the query request according to the query request, and stores it in the blockchain as a result to be audited;
[0122] The response module 602, when receiving the audit request for the query request sent by the proxy device, determines the encrypted query result corresponding to the query request according to the audit request as the standard result;
[0123] The sending module 604 returns the standard result to the proxy device, so that the proxy device audits the service party device according to the standard result and the result to be audited obtained from the blockchain.
[0124] The evidence storage module 600 generates a random number, combines the random number and the query result, irreversibly encrypts the combined result, and stores the encrypted result as a result to be audited in the blockchain.
[0125] The evidence storage module 600 determines the serial number corresponding to the query request, establishes a corresponding relationship between the query result, the random number and the serial number, and stores it.
[0126] The device also includes:
[0127] The result returning module 606 returns the storage address of the audit result and the serial number to the proxy device, so that the proxy device establishes and stores the corresponding relationship between the storage address and the serial number.
[0128] The algorithm for performing irreversible encryption includes at least one of: message digest algorithm version 5 MD5, hash algorithm Hash, and secure hash standard SHS.
[0129] The audit request carries the serial number corresponding to the query request. The sending module 604 determines the random number and query result corresponding to the serial number carried in the audit request according to the correspondence between the query results, random numbers and serial numbers stored locally, combines the determined random number and the query result, and irreversibly encrypts the combined result, and uses the encrypted result as the standard result.
[0130] The query request is a loan query request, and the evidence storage module 600 generates a random number, determines the loan amount according to the query request, combines the random number and the loan amount, and irreversibly encrypts the result of the combination, and stores the encrypted result as a result to be audited in the blockchain.
[0131] based on Figure 1 The data audit method described above, this specification provides a proxy device, such as Figure 6 As shown, it includes: one or more processors and a memory, the memory stores a program and is configured to execute the following steps by the one or more processors:
[0132] When a query request is received, the query request is sent to several service-side devices, so that each service-side device determines the encrypted query result corresponding to the query request according to the query request, and stores it in the blockchain as a result to be audited;
[0133] When receiving an audit request for the query request, for each service party device, obtaining the to-be-audited result stored in the service party device from the blockchain, and sending the audit request to the service party device, so that the service party device returns the encrypted query result corresponding to the query request as the standard result according to the audit request;
[0134] The service provider device is audited according to the results to be audited and the standard results.
[0135] based on Figure 3 The data audit method described above, this specification provides a service device, such as Figure 7 As shown, it includes: one or more processors and a memory, the memory stores a program and is configured to execute the following steps by the one or more processors:
[0136] When receiving a query request sent by the proxy device, determining, according to the query request, an encrypted query result corresponding to the query request, and storing it in the blockchain as a result to be audited;
[0137] When receiving an audit request for a query request sent by the proxy device, determining, according to the audit request, an encrypted query result corresponding to the query request as a standard result;
[0138] The standard result is returned to the proxy device, so that the proxy device audits the service party device according to the standard result and the result to be audited obtained from the blockchain.
[0139] It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the mobile terminal and server provided in the embodiments of the present application, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0140] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented with "logic compiler" software, which is similar to the software compiler used when developing and writing programs. The original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also be aware that it is easy to obtain a hardware circuit that implements the logical method flow by simply performing some logic programming on the method flow using the above-mentioned hardware description languages and programming it into an integrated circuit.
[0141] The controller can be implemented in any appropriate manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, AtmelAT91SAM, MicrochipPIC18F26K20, and SiliconeLabsC8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules for implementing the method and structures within the hardware component.
[0142] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0143] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0144] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0145] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0146] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0147] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0148] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0149] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0150] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0151] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0152] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0153] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0154] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0155] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A data audit method, comprising: When receiving a query request, sending the query request to a plurality of service-side devices; The query request is any one of a loan query request, an insurance query request, and an asset query request; When an audit request for the query request is received, the to-be-audited result stored in each service party device is obtained from the blockchain, where the to-be-audited result is an encrypted query result corresponding to the query request determined by each service party device according to the query request; Sending the audit request to each service party device; Receive standard results returned by each service provider's equipment; The standard result is that each service-side device returns an encrypted query result corresponding to the query request according to the audit request; According to the result to be audited and the standard result, each service provider device is audited; wherein, if the standard result is consistent with the result to be audited, it is determined that the result to be audited of the corresponding service provider device has been verified to be passed.
2. According to the method of claim 1, the result to be audited is a summary of the query result.
3. The method according to claim 2, wherein the summary is obtained by combining the query result with a random number and then irreversibly encrypting the result.
4. The method according to claim 1, after receiving the query request, the method further comprises: Determining a serial number corresponding to the query request; The serial number is sent to each service provider device, so that each service provider device respectively establishes and stores the corresponding relationship between the query result determined by itself and the serial number.
5. The method according to claim 4, after sending the query request to a plurality of service-side devices, the method further comprises: For each service provider device, receiving the storage address of the audit result returned by the service provider device in the blockchain; A corresponding relationship between the service provider device, the storage address and the serial number is established and stored.
6. The method according to claim 5, wherein the audit request carries a serial number corresponding to the query request; Obtain the audit results stored in the service provider's device from the blockchain, including: According to the correspondence between each locally stored service party device, each serial number and each storage address, the audit result corresponding to the serial number stored in the blockchain by the service party device is obtained.
7. The method according to claim 1, wherein the query request is a loan query request; The query result corresponding to the query request is the loan amount; After sending the query request to a plurality of service-side devices, the method further includes: Receive the audit results returned by each service provider's equipment; Process each audit result, obtain the total amount of debits and credits, and return it.
8. According to the method of claim 1, the blockchain stores business data corresponding to the query request; the business data is used to repeatedly determine the query result; the business data includes an account identifier, query content, and query time period.
9. According to the method of claim 1, when the proxy device receives query requests for the same query request multiple times, it sends a detail acquisition request to each service-side device; or, when the proxy device receives a detail acquisition request sent by a user, it sends the detail acquisition request to each service-side device.
10. The method according to claim 9, before sending the detailed acquisition request to each service party device, further comprising: Obtaining identity information of the user; Determining whether the user has permission to view query results based on the identity information; If the user has the authority to view the query results, the detailed acquisition request is sent to each service provider device.
11. The method according to claim 1, after auditing the service-side device according to the to-be-audited result and the standard result, further comprising: When the standard result is consistent with the audit result, it is determined that the audit result verification of the corresponding service party device has passed.
12. A method for data auditing, comprising: When the service device receives the query request sent by the proxy device, it determines the encrypted query result corresponding to the query request according to the query request, and stores it in the blockchain as the result to be audited; The query request is any one of a loan query request, an insurance query request, and an asset query request; When receiving an audit request for a query request sent by the proxy device, determining, according to the audit request, a query result corresponding to the query request after encryption as a standard result; The standard result is returned to the proxy device, so that the proxy device audits the service-side device according to the standard result and the result to be audited; wherein, if the standard result is consistent with the result to be audited, it is determined that the result to be audited of the corresponding service-side device has been verified.
13. The method according to claim 12, wherein the result to be audited is a summary of the query result.
14. The method according to claim 12, wherein the summary is obtained by combining the query result with a random number and then irreversibly encrypting the result.
15. The method according to claim 14, wherein, according to the query request, an encrypted query result corresponding to the query request is determined and stored in the blockchain as a result to be audited, specifically comprising: The service-side device generates a random number, and determines a query result according to the query request; The random number and the query result are combined, and the result obtained by the combination is irreversibly encrypted, and the obtained encrypted result is stored in the blockchain as a result to be audited.
16. The method of claim 15, after determining the encrypted query result corresponding to the query request and storing it in the blockchain as a result to be audited, the method further comprises: The service-side device determines a serial number corresponding to the query request; A corresponding relationship between the query result, the random number and the serial number is established and stored.
17. The method of claim 16, after determining the encrypted query result corresponding to the query request and storing it in the blockchain as a result to be audited, the method further comprises: The storage address of the result to be audited and the serial number are returned to the proxy device, so that the proxy device establishes a corresponding relationship between the storage address and the serial number and stores them.
18. The method according to claim 15, wherein the algorithm for performing irreversible encryption comprises at least: One of the fifth edition of the message digest algorithm MD5, the hash algorithm Hash, and the secure hash standard SHS.
19. The method according to claim 12, wherein the audit request carries a serial number corresponding to the query request; Determining the encrypted query result corresponding to the query request as a standard result, specifically including: Determine the random number and query result corresponding to the serial number carried in the audit request according to the correspondence between the query results, random numbers and serial numbers stored locally; The determined random number and the query result are combined, and the result obtained by the combination is irreversibly encrypted, and the obtained encrypted result is used as the standard result.
20. The method according to claim 12, wherein the query request is a loan query request; the query result corresponding to the query request is a loan amount; According to the query request, an encrypted query result corresponding to the query request is determined and stored in the blockchain as a result to be audited, specifically including: The service-side device generates a random number and determines the loan amount according to the query request; The random number and the loan amount are combined, and the result obtained by the combination is irreversibly encrypted, and the encrypted result is stored in the blockchain as a result to be audited.
21. The method according to claim 12, after the agent device audits the service-side device according to the to-be-audited result and the standard result, further comprising: When the standard result is consistent with the audit result, it is determined that the audit result verification of the corresponding service party device has passed.
22. A data auditing device, comprising: The evidence storage module, when receiving a query request, sends the query request to several service party devices; The query request is any one of a loan query request, an insurance query request, and an asset query request; An acquisition module, when receiving an audit request for a query request, acquires the to-be-audited results stored in each service party device from the blockchain, wherein the to-be-audited results are encrypted query results corresponding to the query request determined by each service party device according to the query request; Sending the audit request to the service provider device, Receive standard results returned by each service provider's equipment; The standard result is that each service-side device returns an encrypted query result corresponding to the query request according to the audit request; The audit module audits the service provider device according to the result to be audited and the standard result; wherein, if the standard result is consistent with the result to be audited, it is determined that the result to be audited of the corresponding service provider device has been verified.
23. A data auditing device, comprising: The evidence storage module, when receiving the query request sent by the proxy device, determines the encrypted query result corresponding to the query request according to the query request, and stores it in the blockchain as the result to be audited; The query request is any one of a loan query request, an insurance query request, and an asset query request; a response module, when receiving an audit request for a query request sent by a proxy device, determining, according to the audit request, a query result corresponding to the query request after encryption as a standard result; The sending module returns the standard result to the proxy device, so that the proxy device audits the service-side device according to the standard result and the result to be audited; wherein, if the standard result is consistent with the result to be audited, it is determined that the result to be audited of the corresponding service-side device has been verified.
24. A proxy device, comprising: One or more processors and a memory, wherein the memory stores a program and is configured to execute the following steps by the one or more processors: When receiving a query request, sending the query request to a plurality of service-side devices; The query request is any one of a loan query request, an insurance query request, and an asset query request; When an audit request for the query request is received, the to-be-audited result stored in each service party device is obtained from the blockchain, where the to-be-audited result is an encrypted query result corresponding to the query request determined by each service party device according to the query request; Sending the audit request to each service party device; Receive standard results returned by each service provider's equipment; The standard result is that each service-side device returns an encrypted query result corresponding to the query request according to the audit request; According to the result to be audited and the standard result, each service provider device is audited; wherein, if the standard result is consistent with the result to be audited, it is determined that the result to be audited of the corresponding service provider device has been verified to be passed.
25. A service device, comprising: One or more processors and a memory, wherein the memory stores a program and is configured to execute the following steps by the one or more processors: When receiving a query request sent by the proxy device, determining the encrypted query result corresponding to the query request according to the query request, and storing it in the blockchain as a result to be audited; The query request is any one of a loan query request, an insurance query request, and an asset query request; When receiving an audit request for a query request sent by the proxy device, determining, according to the audit request, a query result corresponding to the query request after encryption as a standard result; The standard result is returned to the proxy device, so that the proxy device audits the service-side device according to the standard result and the result to be audited; wherein, if the standard result is consistent with the result to be audited, it is determined that the result to be audited of the corresponding service-side device has been verified.
