Audit method and system based on smart contract

By using smart contracts to verify the hash summary values ​​of the confirmation request and reply request application on the blockchain, the problem of data redundancy and inefficiency verification in traditional methods is solved, and efficient and authentic data processing and resource conservation are achieved.

CN119788291AActive Publication Date: 2025-04-08CHINA CONSTR BANK CO LTD GUANGDONG BRANCH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510047482.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-13
Publication Date
2025-04-08
Estimated Expiration
2045-01-13

AI Technical Summary

Technical Problem

When handling account letters for accounting accounts such as accounts receivable and accounts payable, the existing technology has redundancy problems, resulting in excessive resource consumption. The traditional one-way paper letter sending method is inefficient and cannot effectively cross-verify the authenticity of transaction data.

Method used

Using a smart contract-based audit method, the hash summary value of the proof-release application information and reply-reply application information is obtained and verified through blockchain to ensure the authenticity and integrity of the data, and to find the previous proof-release application information in the database to reduce data redundancy.

Benefits of technology

It effectively reduces data redundancy, improves data processing efficiency, ensures the authenticity and immutability of transaction data, and reduces resource consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119788291A_ABST
    Figure CN119788291A_ABST
Patent Text Reader

Abstract

The invention discloses an auditing method and system based on a smart contract, and the method comprises the steps: obtaining and verifying a Hash digest value of certificate application information, if the Hash digest value is consistent with the Hash digest value, proving that the certificate information is not tampered, and feeding back a certificate passing result to a certificate requester, so as to enable the certificate requester to send a feedback request to a certificate provider; receiving and verifying a hash value of the feedback application information, if the hash value is consistent with the hash value, determining that the feedback content is not tampered, and sending a feedback downloading notification to the request party; and when the function provider is audited, obtaining and checking target function application information, comparing the target function application information with previous function application information in the database, and if a corresponding record exists, feeding back a previous function result to the function provider. According to the process, by sharing and multiplexing the function data, repeated data confirmation is reduced, the problem of data redundancy is solved, and the data processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to an audit method and system based on smart contracts. Background Art

[0002] At present, the traditional method for confirmation of accounting subjects such as accounts receivable, accounts payable, other accounts receivable, and other accounts payable is usually to investigate and collect evidence through one-way paper letters. This method is not only inefficient, but also due to its one-way nature and the tamperability of paper documents, the cost of counterfeiting is low, and it is impossible to effectively cross-verify the authenticity of transaction data. If you want to build a blockchain service platform for confirmation of accounting subjects such as accounts receivable and accounts payable, you need to build a huge database and efficient data processing capabilities, but at the same time it will produce a lot of data redundancy and consume a lot of computing power and storage resources. Therefore, it is urgent to solve the problem of data redundancy. Summary of the invention

[0003] Based on the above-mentioned deficiencies of the prior art, the present application provides an audit method and system based on smart contracts to solve the problem of data redundancy.

[0004] In order to achieve the above objectives, this application provides the following technical solutions:

[0005] The first aspect of the present application provides an audit method based on a smart contract, which is applied to a confirmation blockchain service platform, including:

[0006] Obtaining from the blockchain the hash summary value corresponding to the confirmation application information stored by the confirmation requester, and receiving the verification hash summary value sent from the Internet; wherein the hash summary value is obtained in advance by the confirmation requester performing a hash calculation on the confirmation application information and the encrypted file; the confirmation application information is the information that the confirmation requester applies for confirmation from the confirmation provider;

[0007] Comparing the hash summary value with the verification hash summary value to see if they are consistent;

[0008] If the hash digest value is consistent with the verification hash digest value, it is determined that the confirmation application information has not been tampered with, and a confirmation result is fed back to the confirmation requester, so that the confirmation requester sends a reply request to the confirmation provider based on the confirmation result;

[0009] Obtaining the target hash digest value corresponding to the reply application information stored by the confirmation provider from the blockchain, and receiving the reply hash digest value sent by the Internet; wherein the target hash digest value is obtained in advance by the confirmation provider performing hash calculation on the reply application information and the target encrypted file; the reply application information is obtained by the confirmation provider collecting and encrypting the confirmation data based on the confirmation result;

[0010] Compare the target hash digest value with the reply hash digest value to see if they are consistent;

[0011] If the target hash digest value is consistent with the reply hash digest value, it is determined that the reply application information has not been tampered with, and a notification message for downloading the reply application information is sent to the confirmation requester;

[0012] When the confirmation provider is audited, the target confirmation application information stored by the confirmation provider is obtained from the blockchain, and the previous confirmation application information corresponding to the target confirmation application information is checked in the database; wherein the previous confirmation application information refers to the confirmation application information stored by the confirmation requester based on the confirmation provider;

[0013] If the previous confirmation application information corresponding to the target confirmation application information exists in the database, the confirmation result corresponding to the previous confirmation application information is sent to the confirmation provider.

[0014] Optionally, in the above-mentioned smart contract-based audit method, after comparing the hash summary value with the verification hash summary value to see whether they are consistent, it also includes:

[0015] If the hash summary value is inconsistent with the verification hash summary value, the information that the confirmation application information is not approved is fed back to the confirmation requester.

[0016] Optionally, in the above-mentioned smart contract-based audit method, after comparing whether the target hash digest value is consistent with the reply hash digest value, the method further includes:

[0017] If the target hash digest value is inconsistent with the reply letter hash digest value, the information that the reply letter application information is not approved is fed back to the confirmation provider.

[0018] Optionally, in the above-mentioned smart contract-based audit method, after verifying whether there is previous confirmation application information corresponding to the target confirmation application information in the database, the method further includes:

[0019] If the previous confirmation application information corresponding to the target confirmation application information exists in the database, a verification operation is performed.

[0020] The second aspect of the present application provides an audit method based on a smart contract, which is applied to the confirmation requester, including:

[0021] Obtain confirmation data;

[0022] Generate confirmation application information based on the confirmation data through a smart contract, and encrypt the confirmation application information to obtain an encrypted file;

[0023] Performing hash calculation on the confirmation application information and the encrypted file to obtain a hash summary value corresponding to the confirmation application information;

[0024] The hash summary value corresponding to the confirmation application information is stored in the blockchain, and the confirmation blockchain service platform obtains the hash summary value corresponding to the confirmation application information from the blockchain, and compares the hash summary value with the verification hash summary value to see if they are consistent. If the hash summary value is consistent with the verification hash summary value, it is determined that the confirmation application information has not been tampered with, and the confirmation approval result is fed back to the confirmation requester;

[0025] The confirmation result is sent to the confirmation provider, which collects and encrypts the confirmation data based on the confirmation result to obtain reply application information, and stores the target hash digest value corresponding to the reply application information in the blockchain, and compares the target hash digest value with the reply hash digest value through the confirmation blockchain service platform to see if they are consistent. If the target hash digest value is consistent with the reply hash digest value, it is determined that the reply application information has not been tampered with, and sends a notification message to the confirmation requester to download the reply application information;

[0026] Receive notification information of downloading reply application information sent by the confirmation blockchain service platform, and download the reply application information corresponding to the notification information from the confirmation blockchain service platform;

[0027] The reply application information is decrypted to obtain the decrypted reply application information.

[0028] The third aspect of the present application provides an audit system based on smart contracts, which is applied to the confirmation blockchain service platform, including:

[0029] A first acquisition unit is used to obtain a hash summary value corresponding to the confirmation application information stored by the confirmation requester from the blockchain, and receive a verification hash summary value sent from the Internet; wherein the hash summary value is obtained in advance by the confirmation requester performing a hash calculation on the confirmation application information and the encrypted file; the confirmation application information is the information that the confirmation requester applies for confirmation from the confirmation provider;

[0030] A first comparison unit, used to compare whether the hash summary value is consistent with the verification hash summary value;

[0031] a feedback unit, configured to determine that the confirmation application information has not been tampered with if the hash digest value is consistent with the verification hash digest value, and to feedback a confirmation result to the confirmation requester, so that the confirmation requester sends a reply request to the confirmation provider based on the confirmation result;

[0032] A second acquisition unit is used to obtain from the blockchain the target hash digest value corresponding to the reply application information stored by the confirmation provider, and receive the reply hash digest value sent by the Internet; wherein the target hash digest value is obtained in advance by the confirmation provider performing hash calculation on the reply application information and the target encrypted file; the reply application information is obtained by the confirmation provider collecting and encrypting the confirmation data based on the confirmation result;

[0033] A second comparison unit is used to compare whether the target hash digest value is consistent with the reply hash digest value;

[0034] A first sending unit is used to determine that the reply application information has not been tampered with if the target hash digest value is consistent with the reply hash digest value, and send a notification message of downloading the reply application information to the confirmation requester;

[0035] a verification unit, configured to, when the confirmation provider is audited, obtain the target confirmation application information stored by the confirmation provider from the blockchain, and verify whether there is previous confirmation application information corresponding to the target confirmation application information in the database; wherein the previous confirmation application information refers to the confirmation application information stored by the confirmation requester based on the confirmation provider;

[0036] The second sending unit is used to send the confirmation result corresponding to the previous confirmation application information to the confirmation provider if the previous confirmation application information corresponding to the target confirmation application information exists in the database.

[0037] Optionally, in the above-mentioned smart contract-based audit system, it also includes:

[0038] The first information feedback unit is used to feedback information that the confirmation application information is not passed to the confirmation requester if the hash summary value is inconsistent with the verification hash summary value.

[0039] Optionally, in the above-mentioned smart contract-based audit system, it also includes:

[0040] The second information feedback unit is used to feedback information that the reply letter application information is not passed to the letter of confirmation provider if the target hash summary value is inconsistent with the reply letter hash summary value.

[0041] Optionally, in the above-mentioned smart contract-based audit system, it also includes:

[0042] An execution unit is used to perform a verification operation if the previous confirmation application information corresponding to the target confirmation application information exists in the database.

[0043] The fourth aspect of the present application provides an audit system based on a smart contract, which is applied to the confirmation requesting party, including:

[0044] A data acquisition unit, used for acquiring confirmation data;

[0045] An encryption unit, used to generate confirmation application information according to the confirmation data through a smart contract, and encrypt the confirmation application information to obtain an encrypted file;

[0046] A calculation unit, used to perform hash calculation on the confirmation application information and the encrypted file to obtain a hash summary value corresponding to the confirmation application information;

[0047] A storage unit is used to store the hash summary value corresponding to the confirmation application information in the blockchain, and the confirmation blockchain service platform obtains the hash summary value corresponding to the confirmation application information from the blockchain, and compares the hash summary value with the verification hash summary value to see whether they are consistent. If the hash summary value is consistent with the verification hash summary value, it is determined that the confirmation application information has not been tampered with, and the confirmation approval result is fed back to the confirmation requester;

[0048] A result sending unit is used to send the confirmation result to the confirmation provider, and the confirmation provider collects and encrypts the confirmation data based on the confirmation result to obtain the reply application information, and stores the target hash digest value corresponding to the reply application information in the blockchain, and compares the target hash digest value with the reply hash digest value through the confirmation blockchain service platform to see whether they are consistent. If the target hash digest value is consistent with the reply hash digest value, it is determined that the reply application information has not been tampered with, and sends a notification message of downloading the reply application information to the confirmation requester;

[0049] A receiving unit, configured to receive a notification message of downloading reply application information sent by the confirmation blockchain service platform, and download the reply application information corresponding to the notification message from the confirmation blockchain service platform;

[0050] The decryption unit is used to decrypt the reply application information to obtain the decrypted reply application information.

[0051] The present application provides an audit method based on smart contracts, which obtains the hash summary value corresponding to the confirmation application information stored by the confirmation requester from the blockchain, and receives the verification hash summary value sent by the Internet, and then compares the hash summary value with the verification hash summary value to see if they are consistent. If the hash summary value is consistent with the verification hash summary value, it is determined that the confirmation application information has not been tampered with, and the confirmation requester is fed back with the confirmation result, so that the confirmation requester sends a reply request to the confirmation provider based on the confirmation result, and then obtains the target hash summary value corresponding to the reply application information stored by the confirmation provider from the blockchain, and receives the reply sent by the Internet. The target hash digest value is compared with the reply hash digest value to see if they are consistent. If the target hash digest value is consistent with the reply hash digest value, it is determined that the reply application information has not been tampered with, and a notification message for downloading the reply application information is sent to the confirmation requester. Finally, when the confirmation provider is audited, the target confirmation application information stored by the confirmation provider is obtained from the blockchain, and the previous confirmation application information corresponding to the target confirmation application information is checked in the database. If the previous confirmation application information corresponding to the target confirmation application information exists in the database, the confirmation result corresponding to the previous confirmation application information is sent to the confirmation provider. Therefore, since the confirmation application information is a shared and reusable data, when the confirmation provider initiates a confirmation demand, it will automatically find and call the original first confirmation record and send it to the confirmation provider, thereby effectively reducing the duplication of data confirmation and effectively solving the problem of data redundancy. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0053] Figure 1 A flowchart of an audit method based on a smart contract provided in an embodiment of the present application;

[0054] Figure 2 A flowchart of another smart contract-based audit method provided in an embodiment of the present application;

[0055] Figure 3 A schematic diagram of the structure of an audit system based on a smart contract provided in another embodiment of the present application;

[0056] Figure 4 A schematic diagram of the structure of another smart contract-based audit system provided for another embodiment of the present application. DETAILED DESCRIPTION

[0057] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0058] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0059] The present application embodiment provides an audit method based on smart contracts, which is applied to the confirmation blockchain service platform. Figure 1 As shown, the specific steps include:

[0060] S101. Obtain the hash summary value corresponding to the confirmation application information stored by the confirmation requester from the blockchain, and receive the verification hash summary value sent by the Internet.

[0061] The hash summary value is obtained in advance by the confirmation requester through hash calculation of the confirmation application information and the encrypted file. The confirmation application information is the information that the confirmation requester applies for confirmation from the confirmation provider.

[0062] It should be noted that the party requesting confirmation refers to the accounting firm of the audited unit. In the embodiment of the present application, after the accounting firm obtains authorization from the audited unit, it issues confirmation letters to upstream and downstream companies through banking financial institutions. In the process of banking financial institutions inquiring, verifying relevant information and providing reply letters or information for the received confirmation letters, the confirmation blockchain service platform intervenes to ensure the authenticity of cross-verification of transaction data.

[0063] Therefore, after the confirmation requester is authorized by the audit unit, the confirmation requester, that is, the accounting firm, will generate confirmation application information for the transaction data that needs to be cross-verified, and then encrypt the confirmation application information to obtain an encrypted file. Finally, the confirmation application information and related encrypted files will generate a hash summary value, and store it in the blockchain for evidence preservation.

[0064] At the same time, the confirmation blockchain service platform will call the evidence information on the blockchain, that is, obtain the hash summary value corresponding to the confirmation application information stored by the confirmation requester. Of course, in order to ensure the authenticity of the cross-verification transaction data, the confirmation requester will also send the verification hash summary value of the confirmation application information via the Internet.

[0065] S102: Compare the hash summary value with the verification hash summary value to see if they are consistent.

[0066] It should be noted that in order to ensure that the confirmation application information received by the platform has not been tampered with, thereby ensuring the authenticity of the data, in an embodiment of the present application, a comparison will be made between the hash summary value and the verification hash summary value to see if they are consistent. If the hash summary value is consistent with the verification hash summary value, it is determined that the confirmation application information has not been tampered with, and step S103 is executed at this time.

[0067] Optionally, after executing step S102, the method further includes:

[0068] If the hash summary value is inconsistent with the verification hash summary value, the information that the confirmation application information is not approved will be fed back to the confirmation requester.

[0069] Specifically, when the hash summary value is inconsistent with the verification hash summary value, it can be determined that the confirmation application information has been tampered with. Therefore, in order to ensure the security and correctness of the audit, the information that the confirmation application information is not passed will be fed back to the confirmation requester at this time.

[0070] Optionally, when the confirmation requester receives information that the confirmation application information is not approved, he or she may submit the application again until it is approved.

[0071] S103. Determine that the confirmation application information has not been tampered with, and feedback the confirmation approval result to the confirmation requester, so that the confirmation requester sends a reply request to the confirmation provider based on the confirmation approval result.

[0072] It is understandable that when the hash summary value is consistent with the verification hash summary value, the confirmation blockchain service platform needs to feedback the confirmation result to the confirmation requester, so that the confirmation requester can send a reply request to the confirmation provider, thereby obtaining a reply to the confirmation application. Among them, the confirmation provider refers to the banking financial institution that provides a reply letter or information on behalf of the upstream and downstream companies of the audited unit.

[0073] S104. Obtain the target hash summary value corresponding to the reply application information stored by the confirmation provider from the blockchain, and receive the reply hash summary value sent from the Internet.

[0074] Among them, the target hash summary value is obtained in advance by the confirmation provider through hash calculation of the reply application information and the target encrypted file, and the reply application information is obtained by the confirmation provider by collecting the confirmation data based on the confirmation result and encrypting it.

[0075] It should be noted that when the confirmation provider receives the reply request sent by the confirmation requester, the confirmation provider will log in to the corporate online banking to verify the amount of accounts receivable and confirm it. After confirmation, the confirmation data will be collected to form the reply application information, and the file will be encrypted to obtain the target encrypted file. The bank then generates a target hash summary value based on the reply application information and the target encrypted file, and uploads the target hash summary value and reply application information to the blockchain for evidence storage. Finally, a reply application is sent to the confirmation blockchain service platform. When the confirmation blockchain service platform receives the reply application, it will obtain the target hash summary value corresponding to the reply application information stored by the confirmation provider from the blockchain, and receive the reply hash summary value sent by the confirmation provider via the Internet for subsequent verification.

[0076] S105: Compare the target hash digest value and the reply hash digest value to see if they are consistent.

[0077] It should be noted that in order to know whether the reply application information has been tampered with during the transmission process, the target hash digest value can be compared with the reply hash digest value to see if they are consistent. If the target hash digest value is consistent with the reply hash digest value, it is determined that the reply application information has not been tampered with, so step S106 is executed.

[0078] Optionally, after executing step S105, the method further includes:

[0079] If the target hash summary value is inconsistent with the reply letter hash summary value, the information that the reply letter application information is not approved will be fed back to the confirmation provider.

[0080] It can be understood that when the target hash digest value is inconsistent with the reply hash digest value, it is determined that the reply application information has been tampered with during the transmission process. Therefore, the reply application information at this time cannot be used by the confirmation requester as a reply to the confirmation application. Therefore, the confirmation blockchain service platform needs to feedback the information that the reply application information is not passed to the confirmation provider, so that the confirmation provider can re-produce the reply application information until the reply application information is not tampered with during the transmission process.

[0081] S106. Determine that the reply application information has not been tampered with, and send a notification message for downloading the reply application information to the confirmation requester.

[0082] Specifically, when the target hash digest value is consistent with the reply hash digest value, it can be determined that the reply application information has not been tampered with. The confirmation blockchain service platform needs to send a notification message to the confirmation requester to download the reply application information so that the confirmation requester can download the reply application information through the confirmation blockchain service platform to view the internal information of the confirmation.

[0083] S107. When the confirmation provider is audited, the target confirmation application information stored by the confirmation provider is obtained from the blockchain, and the database is checked to see whether the previous confirmation application information corresponding to the target confirmation application information exists.

[0084] It should be noted that in addition to the confirmation requester being audited, the confirmation provider corresponding to the confirmation requester will also be audited. Therefore, when the confirmation provider is audited, the authorized accounting firm will prepare the target confirmation application information according to the corresponding confirmation format (select the amount of accounts receivable, accounts payable, other accounts receivable, and other accounts payable accounting items at a certain point in time) template using the basic information that needs to be confirmed. After encrypting the target confirmation application information, the relevant encrypted file is obtained, and a hash summary is generated based on the target confirmation application information and the relevant encrypted file, which is stored on the blockchain for evidence, and the confirmation application is sent to the confirmation blockchain service platform.

[0085] Therefore, when the confirmation blockchain service platform receives a confirmation application sent by a confirmation provider, it will obtain the target confirmation application information stored by the confirmation provider from the blockchain, and will also check whether there is the previous confirmation application information corresponding to the target confirmation application information in the database, wherein the previous confirmation application information refers to the confirmation application information stored by the confirmation requester based on the confirmation provider, thereby avoiding the problem of data redundancy. Therefore, if the previous confirmation application information corresponding to the target confirmation application information exists in the database, it means that the target confirmation application information is a duplicate confirmation application information, and therefore step S108 needs to be executed at this time.

[0086] Optionally, after executing step S107, the method further includes:

[0087] If the previous confirmation application information corresponding to the target confirmation application information exists in the database, the verification operation is performed.

[0088] Specifically, when the previous confirmation application information corresponding to the target confirmation application information exists in the database, it means that the target confirmation application information is not a duplicate confirmation application information, so steps S102 to S106 can be executed, that is, the verification operation is performed. It should be noted that during the execution process, the confirmation provider will be converted into the confirmation requester, and the confirmation requester will be converted into the confirmation provider to reply.

[0089] S108. Send the confirmation result corresponding to the previous confirmation application information to the confirmation provider.

[0090] Specifically, when the previous confirmation application information corresponding to the target confirmation application information exists in the database, the confirmation blockchain service platform will feedback the confirmation results corresponding to the previous confirmation application information to the confirmation provider, thereby effectively reducing the problem of data redundancy.

[0091] The present application provides an audit method based on smart contracts, which obtains the hash summary value corresponding to the confirmation application information stored by the confirmation requester from the blockchain, and receives the verification hash summary value sent from the Internet, and then compares the hash summary value with the verification hash summary value to see if they are consistent. If the hash summary value is consistent with the verification hash summary value, it is determined that the confirmation application information has not been tampered with, and the confirmation result is fed back to the confirmation requester, so that the confirmation requester sends a reply request to the confirmation provider based on the confirmation result, and then obtains the target hash summary value corresponding to the reply application information stored by the confirmation provider from the blockchain, and receives the verification result sent from the Internet. The reply hash digest value is compared with the target hash digest value and the reply hash digest value. If the target hash digest value is consistent with the reply hash digest value, it is determined that the reply application information has not been tampered with, and a notification message for downloading the reply application information is sent to the confirmation requester. Finally, when the confirmation provider is audited, the target confirmation application information stored by the confirmation provider is obtained from the blockchain, and the previous confirmation application information corresponding to the target confirmation application information is checked in the database. If the previous confirmation application information corresponding to the target confirmation application information exists in the database, the confirmation result corresponding to the previous confirmation application information is sent to the confirmation provider. Therefore, since the confirmation application information is a shared and reusable data, when the confirmation provider initiates a confirmation demand, it will automatically find and call the original first confirmation record and send it to the confirmation provider, thereby effectively reducing the duplication of data confirmation and effectively solving the problem of data redundancy.

[0092] The present application embodiment provides another audit method based on smart contracts, which is applied to the confirmation requester, such as Figure 2 As shown, the specific steps include:

[0093] S201. Obtain confirmation data.

[0094] It should be noted that when a company is audited, it will authorize the accounting firm to apply for confirmation letters. Therefore, at this time, the accounting firm will act as the confirmation requester and make a series of confirmation applications.

[0095] Specifically, the party requesting the confirmation will select and confirm the scope of confirmation required, that is, screen out the company directory and corresponding audit time nodes to be confirmed, and various accounts payable as confirmation data in the ERP system of the audited company.

[0096] S202. Generate confirmation application information based on the confirmation data through a smart contract, and encrypt the confirmation application information to obtain an encrypted file.

[0097] Specifically, in the embodiment of the present application, the confirmation application information will be automatically generated through a smart contract in accordance with the corresponding confirmation format (customer, time point, amount of accounts receivable, accounts payable, other accounts receivable, and other accounts payable accounting items), and then the confirmation application information will be encrypted to ensure the security and authenticity of the confirmation application information.

[0098] It should be noted that the use of smart contracts to interpret the content of confirmation letters can improve efficiency and enhance transparency.

[0099] S203. Perform hash calculation on the confirmation application information and the encrypted file to obtain a hash summary value corresponding to the confirmation application information.

[0100] It should be noted that in order to find out the possibility that the subsequent confirmation application information has been tampered with during the transmission process, the confirmation requester will also use a hash algorithm to perform hash calculations on the confirmation application information and the encrypted file to obtain the hash summary value corresponding to the confirmation application information, so as to verify whether the confirmation application information has been tampered with based on the hash summary value.

[0101] S204. The hash summary value corresponding to the confirmation application information is stored in the blockchain. The confirmation blockchain service platform obtains the hash summary value corresponding to the confirmation application information from the blockchain, and compares the hash summary value with the verification hash summary value to see if they are consistent. If the hash summary value is consistent with the verification hash summary value, it is determined that the confirmation application information has not been tampered with, and the confirmation approval result is fed back to the confirmation requester.

[0102] It should be noted that for the security, verifiability, transparency and tamper-proofing of information, the hash summary value corresponding to the confirmation application information and the confirmation application information can be stored in the blockchain.

[0103] It should also be noted that the specific implementation of step S204 may refer to steps S101 to S103 in the above method embodiment, and will not be repeated here.

[0104] S205. Send the confirmation result to the confirmation provider, which collects and encrypts the confirmation data based on the confirmation result to obtain the reply application information, and stores the target hash digest value corresponding to the reply application information in the blockchain. The confirmation blockchain service platform compares the target hash digest value with the reply hash digest value to see if they are consistent. If the target hash digest value is consistent with the reply hash digest value, it is determined that the reply application information has not been tampered with, and sends a notification message for downloading the reply application information to the confirmation requester.

[0105] It should also be noted that the specific implementation of step S205 may refer to steps S104 to S106 in the above method embodiment, and will not be repeated here.

[0106] S206. Receive the notification information of downloading reply application information sent by the confirmation blockchain service platform, and download the reply application information corresponding to the notification information from the confirmation blockchain service platform.

[0107] Specifically, when the accounting firm receives the notification information for downloading the reply application information sent by the confirmation blockchain service platform, it will download the electronic reply file, that is, the reply application information, from the confirmation blockchain service platform to view the internal information of the confirmation in the reply application information.

[0108] S207, decrypt the reply application information to obtain the decrypted reply application information.

[0109] It is understandable that after downloading the reply application information, the accounting firm will use the private key to decrypt the reply application information, and after successful decryption, the internal information of the confirmation letter can be viewed. Among them, the private key is provided by the confirmation provider.

[0110] This application provides an audit method based on smart contracts, which is applied to the confirmation requester. Through the above process, the authenticity, integrity and immutability of the confirmation application and reply information are ensured. Smart contracts are used to generate and encrypt confirmation information. The storage and verification of hash summary values ​​ensure the security and transparency of the information. The encryption and decryption process of the reply information ensures the privacy and validity of the information.

[0111] Another embodiment of the present application provides an audit method based on a smart contract, which specifically includes the following steps:

[0112] The confirmation requester obtains the confirmation data.

[0113] The confirmation requester generates confirmation application information based on the confirmation data through a smart contract, and encrypts the confirmation application information to obtain an encrypted file.

[0114] The confirmation requester performs hash calculation on the confirmation application information and the encrypted file to obtain the hash summary value corresponding to the confirmation application information.

[0115] The confirmation requester stores the hash summary value corresponding to the confirmation application information in the blockchain.

[0116] The confirmation blockchain service platform obtains the hash summary value corresponding to the confirmation application information stored by the confirmation requester from the blockchain, and receives the verification hash summary value sent by the Internet.

[0117] The confirmation blockchain service platform compares the hash summary value and verifies whether the hash summary value is consistent.

[0118] If the confirmation blockchain service platform compares the hash summary value and the verification hash summary value and finds that they are consistent, it determines that the confirmation application information has not been tampered with, and feedback the confirmation approval result to the confirmation requester, so that the confirmation requester can send a reply request to the confirmation provider based on the confirmation approval result.

[0119] The confirmation requester sends the confirmation result to the confirmation provider.

[0120] The confirmation provider collects and encrypts the confirmation data based on the confirmation results, obtains the reply application information, and stores the target hash summary value corresponding to the reply application information in the blockchain.

[0121] The confirmation blockchain service platform obtains the target hash summary value corresponding to the reply application information stored by the confirmation provider from the blockchain, and receives the reply hash summary value sent from the Internet.

[0122] The confirmation blockchain service platform compares the target hash summary value with the reply hash summary value to see if they are consistent.

[0123] If the confirmation blockchain service platform compares the target hash summary value and the reply hash summary value and finds that they are consistent, it determines that the reply application information has not been tampered with, and sends a notification message to the confirmation requester to download the reply application information.

[0124] The confirmation requester receives the notification information of downloading the reply application information sent by the confirmation blockchain service platform, and downloads the reply application information corresponding to the notification information from the confirmation blockchain service platform.

[0125] The confirmation requesting party decrypts the reply application information and obtains the decrypted reply application information.

[0126] When the confirmation provider receives an audit request, it will upload the target confirmation application information to the blockchain.

[0127] The confirmation blockchain service platform obtains the target confirmation application information stored by the confirmation provider from the blockchain, and verifies whether the previous confirmation application information corresponding to the target confirmation application information exists in the database.

[0128] If the confirmation blockchain service platform detects that the previous confirmation application information corresponding to the target confirmation application information exists in the database, it will send the confirmation result corresponding to the previous confirmation application information to the confirmation provider.

[0129] Another embodiment of the present application provides an audit system based on smart contracts, which is applied to the confirmation blockchain service platform. Figure 3 As shown, it specifically includes the following units:

[0130] The first acquisition unit 301 is used to obtain the hash summary value corresponding to the confirmation application information stored by the confirmation requester from the blockchain, and receive the verification hash summary value sent by the Internet. The hash summary value is obtained in advance by the confirmation requester performing a hash calculation on the confirmation application information and the encrypted file. The confirmation application information is the information that the confirmation requester applies for confirmation from the confirmation provider.

[0131] The first comparing unit 302 is used to compare the hash summary value and verify whether the hash summary value is consistent.

[0132] Feedback unit 303 is used to determine that the confirmation application information has not been tampered with if the hash summary value is consistent with the verification hash summary value, and to feedback the confirmation approval result to the confirmation requester, so that the confirmation requester sends a reply request to the confirmation provider based on the confirmation approval result.

[0133] The second acquisition unit 304 is used to obtain the target hash summary value corresponding to the reply application information stored by the confirmation provider from the blockchain, and receive the reply hash summary value sent by the Internet. The target hash summary value is obtained in advance by the confirmation provider performing hash calculation on the reply application information and the target encrypted file. The reply application information is obtained by the confirmation provider collecting the confirmation data based on the confirmation result and encrypting it.

[0134] The second comparison unit 305 is used to compare whether the target hash digest value is consistent with the reply hash digest value.

[0135] The first sending unit 306 is used to determine that the reply application information has not been tampered with if the target hash digest value is consistent with the reply hash digest value, and send a notification message for downloading the reply application information to the confirmation requester.

[0136] Verification unit 307 is used to obtain the target confirmation application information stored by the confirmation provider from the blockchain when the confirmation provider is audited, and verify whether there is previous confirmation application information corresponding to the target confirmation application information in the database. The previous confirmation application information refers to the confirmation application information stored by the confirmation requester based on the confirmation provider.

[0137] The second sending unit 308 is used to send the confirmation result corresponding to the previous confirmation application information to the confirmation provider if the previous confirmation application information corresponding to the target confirmation application information exists in the database.

[0138] It should be noted that the specific working process of the above modules in the embodiment of the present application can refer to steps S101 to S108 in the above method embodiment, which will not be repeated here.

[0139] Optionally, another embodiment of the present application provides an audit system based on a smart contract, further comprising:

[0140] The first information feedback unit is used to feedback information that the confirmation application information is not passed to the confirmation requester if the hash summary value is inconsistent with the verification hash summary value.

[0141] Optionally, another embodiment of the present application provides an audit system based on a smart contract, further comprising:

[0142] The second information feedback unit is used to feedback information that the reply application information is not passed to the confirmation provider if the target hash summary value is inconsistent with the reply letter hash summary value.

[0143] Optionally, another embodiment of the present application provides an audit system based on a smart contract, further comprising:

[0144] The execution unit is used to perform a verification operation if the previous confirmation application information corresponding to the target confirmation application information exists in the database.

[0145] Another embodiment of the present application provides another audit system based on smart contracts, which is applied to the confirmation requester, such as Figure 4 As shown, it includes the following units:

[0146] The data acquisition unit 401 is used to acquire confirmation data.

[0147] The encryption unit 402 is used to generate confirmation application information based on the confirmation data through a smart contract, and encrypt the confirmation application information to obtain an encrypted file.

[0148] The calculation unit 403 is used to perform hash calculation on the confirmation application information and the encrypted file to obtain a hash summary value corresponding to the confirmation application information.

[0149] Storage unit 404 is used to store the hash summary value corresponding to the confirmation application information in the blockchain. The confirmation blockchain service platform obtains the hash summary value corresponding to the confirmation application information from the blockchain, and compares the hash summary value with the verification hash summary value to see if they are consistent. If the hash summary value is consistent with the verification hash summary value, it is determined that the confirmation application information has not been tampered with, and the confirmation approval result is fed back to the confirmation requester.

[0150] The result sending unit 405 is used to send the confirmation result to the confirmation provider, and the confirmation provider collects and encrypts the confirmation data based on the confirmation result to obtain the reply application information, and stores the target hash digest value corresponding to the reply application information in the blockchain. The target hash digest value is compared with the reply hash digest value through the confirmation blockchain service platform to see if they are consistent. If the target hash digest value is consistent with the reply hash digest value, it is determined that the reply application information has not been tampered with, and a notification message for downloading the reply application information is sent to the confirmation requester.

[0151] The receiving unit 406 is used to receive the notification information of downloading the reply application information sent by the confirmation blockchain service platform, and download the reply application information corresponding to the notification information from the confirmation blockchain service platform.

[0152] The decryption unit 407 is used to decrypt the reply application information to obtain the decrypted reply application information.

[0153] It should be noted that the specific working process of the above modules in the embodiment of the present application can refer to steps S201 to S207 in the above method embodiment, which will not be repeated here.

[0154] It should be noted that the specific working process of each module provided in the above embodiments of the present application can refer to the corresponding steps in the above method embodiments, which will not be repeated here.

[0155] It should also be noted that the smart contract-based audit system provided in the embodiment of the present application has the technical effects of any of the above embodiments, and the embodiments of the present application will not be described in detail here.

[0156] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0157] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. An audit method based on smart contracts, characterized in that: Applied to the confirmation blockchain service platform, including: Obtaining from the blockchain the hash summary value corresponding to the confirmation application information stored by the confirmation requester, and receiving the verification hash summary value sent from the Internet; wherein the hash summary value is obtained in advance by the confirmation requester performing a hash calculation on the confirmation application information and the encrypted file; the confirmation application information is the information that the confirmation requester applies for confirmation from the confirmation provider; Comparing the hash summary value with the verification hash summary value to see if they are consistent; If the hash digest value is consistent with the verification hash digest value, it is determined that the confirmation application information has not been tampered with, and a confirmation result is fed back to the confirmation requester, so that the confirmation requester sends a reply request to the confirmation provider based on the confirmation result; Obtaining the target hash digest value corresponding to the reply application information stored by the confirmation provider from the blockchain, and receiving the reply hash digest value sent by the Internet; wherein the target hash digest value is obtained in advance by the confirmation provider performing hash calculation on the reply application information and the target encrypted file; the reply application information is obtained by the confirmation provider collecting and encrypting the confirmation data based on the confirmation result; Compare the target hash digest value with the reply hash digest value to see if they are consistent; If the target hash digest value is consistent with the reply hash digest value, it is determined that the reply application information has not been tampered with, and a notification message for downloading the reply application information is sent to the confirmation requester; When the confirmation provider is audited, the target confirmation application information stored by the confirmation provider is obtained from the blockchain, and the previous confirmation application information corresponding to the target confirmation application information is checked in the database; wherein the previous confirmation application information refers to the confirmation application information stored by the confirmation requester based on the confirmation provider; If the previous confirmation application information corresponding to the target confirmation application information exists in the database, the confirmation result corresponding to the previous confirmation application information is sent to the confirmation provider.

2. The method according to claim 1, characterized in that After comparing the hash summary value with the verification hash summary value to see whether they are consistent, the method further includes: If the hash summary value is inconsistent with the verification hash summary value, the information that the confirmation application information is not approved is fed back to the confirmation requester.

3. The method according to claim 1, characterized in that After comparing the target hash digest value with the reply hash digest value to see whether they are consistent, the method further includes: If the target hash digest value is inconsistent with the reply letter hash digest value, the information that the reply letter application information is not approved is fed back to the confirmation provider.

4. The method according to claim 1, characterized in that: After checking whether there is previous confirmation application information corresponding to the target confirmation application information in the database, the method further includes: If the previous confirmation application information corresponding to the target confirmation application information exists in the database, a verification operation is performed.

5. An audit method based on smart contracts, characterized in that: Applicable to the confirmation requester, including: Obtain confirmation data; Generate confirmation application information based on the confirmation data through a smart contract, and encrypt the confirmation application information to obtain an encrypted file; Performing hash calculation on the confirmation application information and the encrypted file to obtain a hash summary value corresponding to the confirmation application information; The hash summary value corresponding to the confirmation application information is stored in the blockchain, and the confirmation blockchain service platform obtains the hash summary value corresponding to the confirmation application information from the blockchain, and compares the hash summary value with the verification hash summary value to see if they are consistent. If the hash summary value is consistent with the verification hash summary value, it is determined that the confirmation application information has not been tampered with, and the confirmation approval result is fed back to the confirmation requester; The confirmation result is sent to the confirmation provider, which collects and encrypts the confirmation data based on the confirmation result to obtain reply application information, and stores the target hash digest value corresponding to the reply application information in the blockchain, and compares the target hash digest value with the reply hash digest value through the confirmation blockchain service platform to see if they are consistent. If the target hash digest value is consistent with the reply hash digest value, it is determined that the reply application information has not been tampered with, and sends a notification message to the confirmation requester to download the reply application information; Receive notification information of downloading reply application information sent by the confirmation blockchain service platform, and download the reply application information corresponding to the notification information from the confirmation blockchain service platform; The reply application information is decrypted to obtain the decrypted reply application information.

6. An audit system based on smart contracts, characterized in that: Applied to the confirmation blockchain service platform, including: A first acquisition unit is used to obtain a hash summary value corresponding to the confirmation application information stored by the confirmation requester from the blockchain, and receive a verification hash summary value sent from the Internet; wherein the hash summary value is obtained in advance by the confirmation requester performing a hash calculation on the confirmation application information and the encrypted file; the confirmation application information is the information that the confirmation requester applies for confirmation from the confirmation provider; A first comparison unit, used to compare whether the hash summary value is consistent with the verification hash summary value; a feedback unit, configured to determine that the confirmation application information has not been tampered with if the hash digest value is consistent with the verification hash digest value, and to feedback a confirmation result to the confirmation requester, so that the confirmation requester sends a reply request to the confirmation provider based on the confirmation result; A second acquisition unit is used to obtain from the blockchain the target hash digest value corresponding to the reply application information stored by the confirmation provider, and receive the reply hash digest value sent by the Internet; wherein the target hash digest value is obtained in advance by the confirmation provider performing hash calculation on the reply application information and the target encrypted file; the reply application information is obtained by the confirmation provider collecting and encrypting the confirmation data based on the confirmation result; A second comparison unit is used to compare whether the target hash digest value is consistent with the reply hash digest value; A first sending unit is used to determine that the reply application information has not been tampered with if the target hash digest value is consistent with the reply hash digest value, and send a notification message of downloading the reply application information to the confirmation requester; a verification unit, configured to, when the confirmation provider is audited, obtain the target confirmation application information stored by the confirmation provider from the blockchain, and verify whether there is previous confirmation application information corresponding to the target confirmation application information in the database; wherein the previous confirmation application information refers to the confirmation application information stored by the confirmation requester based on the confirmation provider; The second sending unit is used to send the confirmation result corresponding to the previous confirmation application information to the confirmation provider if the previous confirmation application information corresponding to the target confirmation application information exists in the database.

7. The system according to claim 6, characterized in that Also includes: The first information feedback unit is used to feedback information that the confirmation application information is not passed to the confirmation requester if the hash summary value is inconsistent with the verification hash summary value.

8. The system according to claim 6, characterized in that Also includes: The second information feedback unit is used to feedback information that the reply letter application information is not passed to the letter of confirmation provider if the target hash summary value is inconsistent with the reply letter hash summary value.

9. The system according to claim 6, characterized in that Also includes: An execution unit is used to perform a verification operation if the previous confirmation application information corresponding to the target confirmation application information exists in the database.

10. An audit system based on smart contracts, characterized in that: Applicable to the confirmation requester, including: A data acquisition unit, used for acquiring confirmation data; An encryption unit, used to generate confirmation application information according to the confirmation data through a smart contract, and encrypt the confirmation application information to obtain an encrypted file; A calculation unit, used to perform hash calculation on the confirmation application information and the encrypted file to obtain a hash summary value corresponding to the confirmation application information; A storage unit is used to store the hash summary value corresponding to the confirmation application information in the blockchain, and the confirmation blockchain service platform obtains the hash summary value corresponding to the confirmation application information from the blockchain, and compares the hash summary value with the verification hash summary value to see whether they are consistent. If the hash summary value is consistent with the verification hash summary value, it is determined that the confirmation application information has not been tampered with, and the confirmation approval result is fed back to the confirmation requester; A result sending unit is used to send the confirmation result to the confirmation provider, and the confirmation provider collects and encrypts the confirmation data based on the confirmation result to obtain the reply application information, and stores the target hash digest value corresponding to the reply application information in the blockchain, and compares the target hash digest value with the reply hash digest value through the confirmation blockchain service platform to see whether they are consistent. If the target hash digest value is consistent with the reply hash digest value, it is determined that the reply application information has not been tampered with, and sends a notification message of downloading the reply application information to the confirmation requester; A receiving unit, configured to receive a notification message of downloading a reply application message sent by the confirmation blockchain service platform, and download the reply application message corresponding to the notification message from the confirmation blockchain service platform; The decryption unit is used to decrypt the reply application information to obtain the decrypted reply application information.

Citation Information

Patent Citations

  • Bank electronic confirmation request generation method based on blockchain multi-party authorization

    CN111415233A

  • Blockchain-based confirmation request transfer system, method, device, equipment and medium

    CN113297163A

  • Document method and system and electronic equipment

    CN114881757A