Data verification system, method, computing device and storage medium based on blockchain
Through the data verification system based on the blockchain, the problem of poor data verification timeliness among financial institutions is solved, efficient and credible data verification is achieved, the data cannot be tampered, and a credible arbitration mechanism is provided.
Patent Information
- Application Number
- CN202011232548.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-03-19
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2039-03-19
AI Technical Summary
Data verification methods between financial institutions in the existing technology have high development costs, poor timeliness, difficulty in achieving real-time or on-time verification, and lack of an arbitration mechanism acceptable to both parties.
Adopt a data verification system based on the blockchain. Through the interaction between the first verification system and the second verification system, blockchain nodes are used to store successfully verified data to ensure the non-tamperability and credibility of the data and improve the efficiency of data verification. and timeliness.
It achieves the timeliness and accuracy of data verification between financial institutions, ensures the non-tamperability and credibility of data, and provides an arbitration mechanism acceptable to both parties.
Smart Images

Figure CN112348514B_ABST
Abstract
Description
[0001] The present invention was applied for on March 19, 2019, with the application number CN201910206884.9, and the name of the invention is a divisional application of “data verification system, method, computing device and storage medium based on blockchain”. Technical Field
[0002] The present invention relates to the field of blockchain technology, and in particular to a blockchain-based data verification system, method, computing device and storage medium. Background Art
[0003] With the development of Internet technology, financial institutions and trading platforms are becoming more and more diversified. Therefore, transaction data between financial institutions or between trading platforms and financial institutions need to be checked regularly in order to discover data differences in the same transaction in different institutions.
[0004] In the prior art, the data processing method between institutions is that institution A packages the transaction data generated within a preset time period and sends it to institution B, and institution B verifies the data in the file package. However, the verification method used in the prior art has a high development cost, involving data export from the core business system, file transfer, and comparison with the core business system data. If the transaction volume occurring within the verification cycle is large, it will take a long time to complete the entire process, with poor timeliness, making it difficult to achieve real-time or timely verification. In addition, if a dispute occurs in the future, there will be a lack of an arbitration mechanism that both parties can agree on for the data that has been verified using the existing method. Summary of the invention
[0005] In view of this, the embodiments of this specification provide a blockchain-based data verification system, method, computing device and storage medium to solve the technical defects existing in the prior art.
[0006] According to a first aspect of an embodiment of this specification, a blockchain-based data verification system is provided, including:
[0007] A first verification system, a second verification system, and a first blockchain node and a second blockchain node on a blockchain;
[0008] A first verification system is configured to collect first business data according to preset conditions and generate a first verification file, and send a verification request to the second verification system, wherein the verification request carries the first verification file;
[0009] a second verification system configured to receive the verification request, verify the first business data in the first verification file with the second business data in the local database and generate a verification result notification, send the verification result notification to the first verification system, and send the successfully verified second business data in the local database to the first blockchain node on the blockchain;
[0010] The first verification system is further configured to receive the verification result notification and send the successfully verified first business data to the second blockchain node on the blockchain;
[0011] The first blockchain node corresponds to a node of the blockchain, and is configured to receive and store the successfully verified second business data sent by the second verification system;
[0012] The second blockchain node corresponds to a node of the blockchain, and is configured to receive and store the successfully verified first business data sent by the first verification system.
[0013] Optionally, a blockchain-based data verification system further includes: a first business system and a second business system;
[0014] A first business system is configured to send first business data to a first verification system, wherein the first business data includes identification information of the data, key business information, and verification status;
[0015] The second business system is configured to send second business data to the second verification system, wherein the second business data includes identification information, key business information and verification status of the data;
[0016] The second checking system is further configured to receive second business data of the second business system and store the second business data in a local database.
[0017] Optionally, the second verification system is further configured to determine a verification rule corresponding to the second business data based on the second business data, determine a mapping relationship between the second business data and the verification rule, and save the mapping relationship between the second business data and the verification rule in a local database.
[0018] Optionally, the first verification system is also configured to obtain first business data, and when the amount of the first business data reaches a preset threshold N, store the N first business data as a first verification file, process the first verification file to generate a first digital summary, and send a verification request to the second verification system, wherein the verification request carries the first verification file and the first digital summary corresponding to the first verification file.
[0019] Optionally, the second verification system is further configured to receive the verification request, extract a first digital summary from the verification request, and verify the first business data in the first verification file according to the first digital summary;
[0020] If the verification passes, the second business data corresponding to the first business data is determined based on the identification information in the first business data, and the verification rules corresponding to the key business information in the second business data are obtained. According to the verification rules, the first business data is verified with the second business data in the local database and a verification result notification is generated, and the verification result notification is sent to the first verification system.
[0021] Optionally, the second verification system is also configured to verify the first business data with the second business data in the local database according to the verification rules, generate a second verification file according to the verification result, process the second verification file to generate a second digital summary, and send a verification result notification to the first verification system, wherein the verification result notification carries the second verification file and a second digital summary corresponding to the second verification file.
[0022] Optionally, the first verification system is also configured to extract the second verification file and the second digital summary carried in the verification result notification, verify the second verification file through the digital summary, and if the verification passes, extract the successfully verified first business data in the second verification file and upload it to the blockchain.
[0023] Optionally, the first verification system is further configured to update the verification status of the first business data that failed to be verified and review or report the first business data that failed to be verified if there is first business data that failed to be verified in the second verification file.
[0024] According to another aspect of the embodiment of this specification, a blockchain-based data verification method is provided, which is applied to a first verification system, including:
[0025] Collecting first business data according to preset conditions and generating a first verification file, wherein the first business data includes data identification information, key business information and verification status;
[0026] Sending a verification request to a second verification system, wherein the verification request carries the first verification file;
[0027] Receive the verification result notification sent by the second verification system, and send the successfully verified first business data to the second blockchain node.
[0028] Optionally, collecting business data according to preset conditions and generating a first verification file includes:
[0029] Acquire first business data of a first business system;
[0030] When the amount of the first business data reaches a preset threshold value N, storing the N first business data as a first verification file and processing the first verification file to generate a first digital summary;
[0031] A verification request is sent to the second verification system, wherein the verification request carries the first verification file and a first digital summary corresponding to the first verification file.
[0032] Optionally, the verification result notification carries a second verification document and a second digital summary corresponding to the second verification document;
[0033] Receiving a verification result notification sent by the second verification system, and sending the successfully verified first business data to the second blockchain node includes:
[0034] Extracting the second verification document and the second digital summary carried in the verification result notification, and verifying the second verification document by using the second digital summary;
[0035] If the verification is successful, the successfully verified first business data in the second verification file is extracted and uploaded to the second blockchain node in the blockchain;
[0036] If there is first business data that fails to be verified in the second verification file, the verification status of the first business data that fails to be verified is updated and the first business data that fails to be verified is reviewed or reported.
[0037] According to another aspect of the embodiment of this specification, a blockchain-based data verification method is provided, which is applied to a second verification system, including:
[0038] Acquire second business data of a second business system and store the second business data in a local database;
[0039] receiving a verification request, wherein the verification request carries a first verification file;
[0040] Verify the first business data in the first verification file with the second business data in the local database and generate a verification result notification, and send the verification result notification to the first verification system;
[0041] The second business data successfully verified in the local database is sent to the first blockchain node on the blockchain.
[0042] Optionally, before receiving the verification request, the method further includes:
[0043] Determining a checking rule corresponding to the second business data according to the second business data;
[0044] Determine a mapping relationship between the second business data and the verification rule;
[0045] And the mapping relationship between the second business data and the verification rule is saved in the local database.
[0046] Optionally, after receiving the verification request from the first business system, the method further includes:
[0047] extracting a first digital summary from the verification request and verifying first business data in the first verification file according to the first digital summary;
[0048] If the verification is successful, the first business data in the first verification file is verified with the second business data in the local database.
[0049] Optionally, verifying the first business data in the first verification file with the second business data in the local database and generating a verification result notification includes:
[0050] Determine second business data corresponding to the first business data according to the identification information in the first business data;
[0051] Obtaining verification rules corresponding to the key business information in the second business data;
[0052] The first business data is checked against the second business data in the local database according to the checking rule and a checking result notification is generated according to the checking result.
[0053] Optionally, generating a verification result notification according to the verification result includes:
[0054] generating a second verification file according to the verification result;
[0055] processing the second verification file to generate a second digital summary;
[0056] A verification result notification is generated based on the second verification document and the second digital summary.
[0057] Optionally, generating a second verification file according to the verification result includes:
[0058] If the first business data in the first verification file are all verified successfully, the verification status in the first verification file is updated to generate a second verification file;
[0059] If there is first business data that fails to be verified in the second verification file, the generated second verification file includes identification information, verification status and verification failure reason of each first business data in the first verification file.
[0060] According to another aspect of an embodiment of this specification, a computing device is provided, including a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein the processor implements the steps of the blockchain-based data verification method when executing the instructions.
[0061] According to another aspect of an embodiment of this specification, a computer-readable storage medium is provided, which stores computer instructions, and when the instructions are executed by a processor, the steps of the blockchain-based data verification method are implemented.
[0062] In one embodiment provided in the present specification, by establishing a verification system outside the business system, the data verification method between institutions is changed to a first business system sending transaction business data to a first verification system, and when the amount of transaction business data received by the first verification system reaches a preset threshold, a first verification file is generated, and the first verification file is sent to a second verification system for data verification. Without affecting the normal interaction between business systems, data verification is completed through the interaction between verification systems, thereby improving data verification efficiency and timeliness, and uploading the verified transaction business data to the blockchain, thereby ensuring the data's immutability and credibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 It is a structural diagram of a blockchain-based data verification system provided in an embodiment of the present application;
[0064] Figure 2 It is a structural diagram of a blockchain-based data verification system provided in an embodiment of the present application;
[0065] Figure 3 is a structural block diagram of a computing device provided in an embodiment of the present application;
[0066] Figure 4 This is a flowchart of a blockchain-based data verification method provided in an embodiment of the present application;
[0067] Figure 5 This is a flowchart of a blockchain-based data verification method provided in an embodiment of the present application;
[0068] Figure 6 This is an interactive diagram of a blockchain-based data verification method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0069] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0070] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0071] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0072] In the present application, a blockchain-based data verification system, method, computing device and storage medium are provided, which are described in detail one by one in the following embodiments.
[0073] Figure 1 The following is a schematic diagram of a data verification system based on blockchain according to an embodiment of the present specification, including:
[0074] The first verification system 102 , the second verification system 104 , and the first blockchain node 108 and the second blockchain node 110 on the blockchain 106 .
[0075] The first verification system 102 is configured to collect first business data according to preset conditions and generate a first verification file, and send a verification request to the second verification system, wherein the verification request carries the first verification file.
[0076] In one embodiment provided in the present specification, the first verification system is further configured to obtain first business data, and when the amount of the first business data reaches a preset threshold value N, store the N first business data as a first verification file, process the first verification file to generate a first digital summary, and send a verification request to the second verification system, wherein the verification request carries the first verification file and a first digital summary corresponding to the first verification file.
[0077] The second verification system 104 is configured to receive the second business data of the second business system and store the second business data in a local database, determine the verification rules corresponding to the second business data based on the second business data, determine a mapping relationship between the second business data and the verification rule, and save the mapping relationship between the second business data and the verification rule in the local database.
[0078] In one embodiment provided in this specification, the first business data and the second business data are transaction business data of the first business system and the second business system respectively, and the first verification file is a verification file generated when the number of first business data acquired by the first verification system reaches N.
[0079] In an embodiment provided in this specification, the second business data may correspond to one or more verification rules, that is, the second business data and the verification rules may be a one-to-one mapping relationship or a one-to-many mapping relationship, which is not limited in this specification.
[0080] The second verification system 104 is further configured to receive the verification request, verify the first business data in the first verification file with the second business data in the local database and generate a verification result notification, send the verification result notification to the first verification system, and send the successfully verified second business data in the local database to the first blockchain node on the blockchain.
[0081] In one embodiment provided in this specification, the second verification system is further configured to receive the verification request, extract the first digital summary from the verification request, and verify the first business data in the first verification file according to the first digital summary;
[0082] If the verification passes, the second business data corresponding to the first business data is determined based on the identification information in the first business data, and the verification rules corresponding to the key business information in the second business data are obtained. According to the verification rules, the first business data is verified with the second business data in the local database and a verification result notification is generated, and the verification result notification is sent to the first verification system.
[0083] In one embodiment provided in the present specification, the second verification system is further configured to verify the first business data with the second business data in the local database according to the verification rules, generate a second verification file according to the verification result, process the second verification file to generate a second digital summary, and send a verification result notification to the first verification system, wherein the verification result notification carries the second verification file and the second digital summary corresponding to the second verification file.
[0084] In one embodiment provided in this specification, the second verification file is a verification file generated by the second verification system according to the verification result after verifying the business data in the first verification file.
[0085] The first verification system 102 is also configured to receive the verification result notification and send the successfully verified first business data to the second blockchain node 110 on the blockchain.
[0086] In one embodiment provided in this specification, the first verification system is further configured to update the verification status of the first business data that failed to be verified and review or report the first business data that failed to be verified if there is first business data that failed to be verified in the second verification file.
[0087] The first blockchain node 108 corresponds to a node of the blockchain, and is configured to receive and store the successfully verified second business data sent by the second verification system.
[0088] The second blockchain node 110 corresponds to a node of the blockchain, and is configured to receive and store the successfully verified first business data sent by the first verification system.
[0089] In one embodiment provided in this specification, after the first blockchain node and the second blockchain node receive the successfully verified data, they are also configured to transmit the data to other blockchain nodes so that the successfully verified business data can reach a consensus in other blockchain nodes.
[0090] In actual applications, the first verification system and the second verification system can be banks, insurance companies, third-party trading platforms or other trading service platforms. Both the first verification system and the second verification system can verify the business data of other relevant business institutions, and are not limited to data verification between two verification systems. There can be two or more verification systems, and this manual does not limit this.
[0091] In an embodiment provided in this specification, by transmitting the transaction data generated by the business system to the verification system and performing subsequent data verification work through the verification system, the timeliness of data verification can be achieved. For data that fails to be verified, it can be reviewed or reported in a timely manner to ensure the correctness of the business data. For business data that has been successfully verified, the verification system uploads this data to the blockchain node so that the blockchain node can reach a consensus and store it, thereby ensuring the authenticity and non-tamperability of the data and improving the credibility of the transaction data.
[0092] Figure 2 The following is a schematic diagram of a data verification system based on blockchain according to an embodiment of the present specification, including:
[0093] The first business system 202 , the first verification system 204 , the second business system 206 , the second verification system 208 , and the first blockchain node 212 and the second blockchain node 214 on the blockchain 210 .
[0094] The first business system 202 is configured to send first business data to the first verification system, where the first business data includes identification information of the data, key business information and verification status.
[0095] The first verification system 204 is configured to collect first business data of the first business system according to preset conditions and generate a first verification file.
[0096] The second business system 206 is configured to send second business data to the second verification system, where the second business data includes identification information of the data, key business information and verification status.
[0097] The second verification system 208 is configured to receive second business data of a second business system, determine a verification rule corresponding to the second business data based on the second business data, determine a mapping relationship between the second business data and the verification rule, and save the mapping relationship between the second business data and the verification rule in a local database.
[0098] The first verification system 204 is further configured to send a verification request to the second verification system, wherein the verification request carries the first verification file.
[0099] In one embodiment provided in the present specification, the first verification system is further configured to obtain first business data, and when the amount of the first business data reaches a preset threshold value N, store the N first business data as a first verification file, process the first verification file to generate a first digital summary, and send a verification request to the second verification system, wherein the verification request carries the first verification file and a first digital summary corresponding to the first verification file.
[0100] The second verification system 208 is configured to receive the verification request, verify the first business data in the first verification file with the second business data in the local database and generate a verification result notification, send the verification result notification to the first verification system, and send the successfully verified second business data in the local database to the first blockchain node on the blockchain.
[0101] In one embodiment provided in this specification, the second verification system is further configured to receive the verification request, extract the first digital summary from the verification request, and verify the first business data in the first verification file according to the first digital summary;
[0102] If the verification passes, the second business data corresponding to the first business data is determined based on the identification information in the first business data, and the verification rules corresponding to the key business information in the second business data are obtained. According to the verification rules, the first business data is verified with the second business data in the local database and a verification result notification is generated, and the verification result notification is sent to the first verification system.
[0103] In one embodiment provided in the present specification, the second verification system is further configured to verify the first business data with the second business data in the local database according to the verification rules, generate a second verification file according to the verification result, process the second verification file to generate a second digital summary, and send a verification result notification to the first verification system, wherein the verification result notification carries the second verification file and the second digital summary corresponding to the second verification file.
[0104] The first verification system 204 is also configured to receive the verification result notification and send the successfully verified first business data to the second blockchain node 214 on the blockchain.
[0105] In one embodiment provided in this specification, the first verification system is further configured to update the verification status of the first business data that failed to be verified and review or report the first business data that failed to be verified if there is first business data that failed to be verified in the second verification file.
[0106] The first blockchain node 212 corresponds to a node of the blockchain, and is configured to receive and store the successfully verified second business data sent by the second verification system.
[0107] The second blockchain node 214 corresponds to a node of the blockchain, and is configured to receive and store the successfully verified first business data sent by the first verification system.
[0108] In one embodiment provided in this specification, the first blockchain node and the second blockchain node are also configured to transmit the successfully verified business data to other blockchain nodes so that the successfully verified business data can reach a consensus among the blockchain nodes.
[0109] In an embodiment provided in the present specification, the transaction business data of the business system is sent to the verification system for subsequent data verification, thereby ensuring the real-time nature of the business data verification, thereby improving the efficiency of the business data verification, and further allowing the data that failed the verification to be reviewed in a timely manner, effectively ensuring the accuracy of the data.
[0110] Figure 3 The structure block diagram of a computing device 300 according to an embodiment of the present specification is shown. The components of the computing device 300 include but are not limited to a memory 310 and a processor 320. The processor 320 is connected to the memory 310 via a bus 330, and the database 350 is used to store data.
[0111] The computing device 300 also includes an access device 340 that enables the computing device 300 to communicate via one or more networks 360. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 340 may include one or more of any type of network interface (e.g., a network interface card (NIC)) whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.
[0112] In one embodiment of the present specification, the above components of the computing device 300 and Figure 3 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 3 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
[0113] The computing device 300 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 300 may also be a mobile or stationary server.
[0114] The processor 320 may execute Figure 4 The steps in the blockchain-based data verification method are shown. Figure 4 A flowchart of a blockchain-based data verification method according to an embodiment of this specification is shown, including steps 402 to 406.
[0115] Step 402: collect first business data according to preset conditions and generate a first verification file, wherein the first business data includes data identification information, key business information and verification status.
[0116] In an embodiment provided in this specification, the preset condition is the preset amount of transaction data. In actual applications, the preset condition may also be a preset certain time period, which is not limited in the present invention.
[0117] In an embodiment provided in this specification, the preset threshold value N is a positive integer, and the value of N can be determined according to actual conditions.
[0118] The first business data may also include transaction time and transaction amount. Taking the preset threshold N equal to 3 as an example, assuming that the first business data is business data generated by transactions on the Internet insurance sales platform, and the first business data collected by the first verification system is listed in a table, the first verification file is shown in Table 1:
[0119] Table 1
[0120]
[0121] The information in Table 1 includes: transaction identification information, transaction time, transaction amount, key information of the transaction and verification status of the transaction data. After the first verification file is generated, the first verification file is processed to obtain a first digital summary, and the first verification file and the first digital summary are sent to the second verification system for data verification.
[0122] Step 404: Send a verification request to a second verification system, wherein the verification request carries the first verification file.
[0123] In one embodiment provided in the present specification, the verification request also includes a first digital summary corresponding to the first verification file. After the second verification system receives the verification request, it can verify the first verification file through the first digital summary to ensure that the first verification file has not been tampered with. If the verification is successful, the second business data corresponding to the first business data is searched according to the identification information of the first business data, and the first business data in the first verification file is verified according to the verification rules of the second business data, and the second verification file is generated according to the verification result.
[0124] Step 406: Receive the verification result notification sent by the second verification system, and send the successfully verified first business data to the second blockchain node.
[0125] In one embodiment provided in this specification, the second verification system generates a second verification file based on the verification results, processes the second verification file to generate a second digital summary, and sends the second verification file and the second digital summary to the first verification system. The first verification system can verify the second verification file through the second digital summary to ensure that the second verification file has not been tampered with.
[0126] If all the first business data in the first verification file are verified successfully, the second verification file generated according to the verification result is shown in Table 2:
[0127] Table 2
[0128]
[0129] In an embodiment provided in this specification, if all the first business data in the first verification file are successfully verified, the second verification file is as shown in Table 2, and only the verification status is changed based on Table 1.
[0130] If the first business data in the first verification file contains business data that fails to be verified, the second verification file is as shown in Table 2.
[0131] In an embodiment provided in this specification, if there is business data that fails to be verified in the first verification file, the second verification file is as shown in Table 3.
[0132] Table 3
[0133] Identification Information Verification Status Verification failure reason User B-Organization A Verification successful none User C-Organization A Verification successful none User D-Organization A Verification failed No matching transaction data found
[0134] The information of the second verification file includes: identification information, verification results and reasons for verification failure. The first verification system updates the verification status of the business data that failed to be verified, and reviews or reports the business data that failed to be verified.
[0135] In an embodiment provided in this specification, by setting a reasonable threshold for the number of business data in the first verification system, it is ensured that the business data can be verified in real time, and the pressure on the business system caused by too much business data to be verified can be avoided, which can effectively improve work efficiency.
[0136] Figure 5 A blockchain-based data verification method according to an embodiment of the present specification is shown, including steps 502 to 508.
[0137] Step 502: Acquire second business data of a second business system and store the second business data in a local database.
[0138] In one embodiment provided in this specification, the second business data is transaction business data generated by the second business system. The second business data includes identification information, key business information and verification status of the transaction business data, and may also include information such as transaction time and transaction amount.
[0139] In one embodiment provided in the present specification, after the second verification system obtains the second business data, it is necessary to determine the verification rules corresponding to the second business data based on the second business data, determine a mapping relationship between the second business data and the verification rules, and save the mapping relationship between the second business data and the verification rules in a local database.
[0140] Still taking the insurance business as an example, the second business data acquired by the second business system is still listed in the form of a table. Assume that the acquired second business data is as shown in Table 4:
[0141] Table 4
[0142]
[0143] The information that can be obtained from Table 2 is: On February 3, 2019, institution A sold a personal accident insurance policy to user B, with policy number A00001 and transaction amount of 5,000 yuan, and the transaction information has not been verified. The second verification system determines the verification rules for the transaction information based on the content of the transaction information: the transaction time, transaction amount and verification status must be consistent with Table 4, and the identification information and key information must correspond to the identification information and key information in Table 4.
[0144] Step 504: Receive a verification request, wherein the verification request carries a first verification file.
[0145] In one embodiment provided in the present specification, when the amount of first business data acquired by the first verification system reaches a preset threshold value N, the N first business data are stored as a first verification file, and the first verification file is processed to generate a first digital summary, and the first verification file and the first digital summary are sent to the second verification system. The second verification system can verify the first verification file through the first digital summary to ensure that the first verification file has not been tampered with.
[0146] Step 506: Verify the first business data in the first verification file with the second business data in the local database and generate a verification result notification, and send the verification result notification to the first verification system.
[0147] In one embodiment provided in the present specification, after the second verification system receives the verification request and verifies the first verification file, it determines the corresponding second business data based on the identification information of the first business data in the first verification file, and verifies the first business data based on the verification rules corresponding to the second business data. If the first business data information complies with the above verification rules, the verification is successful; if there is at least one item of information in the first business data information that does not comply with the above verification rules, the verification fails.
[0148] A second verification file is generated according to the verification result, and the second verification file is processed to generate a second digital summary. The second verification file and the second digital summary are sent to the first verification system. The first verification system can verify the second verification file through the second digital summary to ensure that the second verification file has not been tampered with.
[0149] Step 508: Send the second business data that has been successfully verified in the local database to the first blockchain node on the blockchain.
[0150] In one embodiment provided in this specification, after receiving the successfully verified business data, the first blockchain node and the second blockchain node transmit the successfully verified business data to other blockchain nodes, so as to reach a consensus on the successful first business data in the blockchain nodes.
[0151] Figure 6 A schematic diagram of an interactive method for blockchain-based data verification according to an embodiment of the present specification is shown, including steps 602 to 616.
[0152] Step 602: The first verification system receives first business data from the first business system.
[0153] Step 604: The second verification system receives second business data from the second business system.
[0154] In an embodiment provided in this specification, the first business data and the second business data include data identification information, key business information and verification status, and also include transaction time and transaction amount.
[0155] Step 606: The first verification system collects the first business data according to the preset conditions and generates a first verification file.
[0156] In one embodiment of the present specification, the preset collection condition is the preset number of transaction data, the preset number threshold N is a positive integer, and the size of N can be determined according to actual conditions.
[0157] When the number of first business data acquired by the first verification system reaches a preset threshold N, the N first business data are stored as a first verification file, and the first verification file is processed to generate a first digital summary, and the first verification file and the first digital summary are sent to the second verification system. The second verification system can verify the first verification file through the first digital summary to ensure that the first verification file has not been tampered with.
[0158] Step 608: The first verification system sends a verification request to the second verification system.
[0159] In one embodiment provided in the present specification, the verification request also includes a first digital summary corresponding to the first verification file. After the second verification system receives the verification request, it can verify the first verification file through the first digital summary. If the verification passes, the second business data corresponding to the first business data is searched according to the identification information of the first business data, and the first business data in the first verification file is verified according to the verification rules of the second business data, and the second verification file is generated according to the verification result.
[0160] Step 610: The second verification system verifies the first business data.
[0161] In one embodiment provided in the present specification, after the second verification system obtains the second business data, it is necessary to determine the verification rules corresponding to the second business data based on the second business data, determine a mapping relationship between the second business data and the verification rules, and save the mapping relationship between the second business data and the verification rules in a local database.
[0162] In one embodiment provided in the present specification, after the second verification system receives the verification request and verifies the first verification file, it determines the corresponding second business data based on the identification information of the first business data in the first verification file, and verifies the first business data based on the verification rules corresponding to the second business data. If the first business data information complies with the above verification rules, the verification is successful; if there is at least one item of information in the first business data information that does not comply with the above verification rules, the verification fails.
[0163] A second verification file is generated according to the verification result, and the second verification file is processed to generate a second digital summary. The second verification file and the second digital summary are sent to the first verification system. The first verification system can verify the second verification file through the second digital summary to ensure that the second verification file has not been tampered with.
[0164] Step 612: The second checking system sends a checking result notification to the first checking system.
[0165] In one embodiment provided in this specification, the second verification system generates a second verification file based on the verification results, processes the second verification file to generate a second digital summary, and sends the second verification file and the second digital summary to the first verification system. The first verification system can verify the second verification file through the second digital summary to ensure that the second verification file has not been tampered with.
[0166] Step 614: The first verification system sends the successfully verified first business data to the second blockchain node.
[0167] Step 616: The second verification system sends the successfully verified second business data to the first blockchain node.
[0168] In one embodiment provided in this specification, after receiving the successfully verified business data, the first blockchain node and the second blockchain node transmit the successfully verified business data to other blockchain nodes, so as to reach a consensus on the successful first business data in the blockchain nodes.
[0169] In one embodiment provided in this specification, by establishing a verification system outside the business system, data verification is completed through the interaction between the verification systems without affecting the normal interaction between the business systems, thereby improving data verification efficiency and timeliness. At the same time, the verified transaction business data is uploaded to the blockchain, ensuring that the data cannot be tampered with and the credibility of the data is guaranteed.
[0170] In one embodiment of the present specification, a computing device is also provided, including a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein the processor implements the steps of the blockchain-based data verification method when executing the instructions.
[0171] An embodiment of the present application also provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the steps of the blockchain-based data verification method as described above.
[0172] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the data verification method based on blockchain mentioned above belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be found in the description of the technical scheme of the data verification method based on blockchain mentioned above.
[0173] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do 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.
[0174] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0175] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0176] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0177] The preferred embodiments of the present application disclosed above are only used to help explain the present application. The optional embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present application, so that those skilled in the art can understand and use the present application well. The present application is limited only by the claims and their full scope and equivalents.
Claims
1. A data verification system based on blockchain, characterized in that: The system includes: a first verification system, a second verification system, and a first blockchain node and a second blockchain node on a blockchain; The first verification system is configured to collect first business data from the first business system according to preset conditions and generate a first verification file, and send a verification request to the second verification system, wherein the verification request carries the first verification file, wherein the first verification file is generated when the amount of the first business data acquired by the first verification system reaches a preset threshold; The second verification system is configured to receive the verification request, verify the first business data in the first verification file with the second business data in the local database and generate a verification result notification, send the verification result notification to the first verification system, and send the successfully verified second business data in the local database to the first blockchain node on the blockchain, wherein the second business data is obtained from the second business system; The first verification system is further configured to receive the verification result notification and send the successfully verified first business data to a second blockchain node on the blockchain; The first blockchain node is configured to receive and store the successfully verified second business data sent by the second verification system; The second blockchain node is configured to receive and store the successfully verified first business data sent by the first verification system.
2. The system according to claim 1, characterized in that Also includes: a first business system and a second business system; The first business system is configured to send first business data to the first verification system, wherein the first business data includes identification information, key business information and verification status of the data; The second business system is configured to send second business data to the second verification system, wherein the second business data includes identification information, key business information and verification status of the data; The second checking system is further configured to receive second business data of a second business system and store the second business data in a local database.
3. The system according to claim 2, characterized in that The second verification system is further configured to determine a verification rule corresponding to the second business data based on the second business data, determine a mapping relationship between the second business data and the verification rule, and save the mapping relationship between the second business data and the verification rule in a local database.
4. The system according to claim 1, characterized in that The first verification system is also configured to obtain first business data, and when the amount of the first business data reaches a preset threshold value N, store the N first business data as a first verification file, process the first verification file to generate a first digital summary, and send a verification request to the second verification system, wherein the verification request carries the first verification file and the first digital summary corresponding to the first verification file.
5. The system according to claim 1, wherein: The second verification system is further configured to receive the verification request, extract a first digital summary from the verification request and verify the first business data in the first verification file according to the first digital summary; If the verification passes, the second business data corresponding to the first business data is determined according to the identification information in the first business data, and the verification rules of the second business data are obtained. The first business data and the second business data are verified according to the verification rules and a verification result notification is generated, and the verification result notification is sent to the first verification system.
6. The system according to claim 5, characterized in that The second verification system is also configured to verify the first business data and the second business data according to verification rules, generate a second verification file according to the verification result, process the second verification file to generate a second digital summary, and send a verification result notification to the first verification system, wherein the verification result notification carries the second verification file and a second digital summary corresponding to the second verification file.
7. The system according to claim 1, characterized in that The first verification system is also configured to extract the second verification file and the second digital summary carried in the verification result notification, verify the second verification file through the second digital summary, and if the verification passes, extract the successfully verified first business data in the second verification file and upload it to the blockchain.
8. The system according to claim 7, characterized in that The first verification system is further configured to update the verification status of the first business data that failed to be verified and review or report the first business data that failed to be verified if there is first business data that failed to be verified in the second verification file.
9. A data verification method based on blockchain, characterized in that: Applied to the first verification system, including: collecting first business data according to preset conditions and generating a first verification file, wherein the first business data includes identification information, key business information and verification status of the data, wherein the first verification file is generated when the amount of the first business data acquired by the first verification system reaches a preset threshold; Sending a verification request to a second verification system, wherein the verification request carries the first verification file; Receive the verification result notification sent by the second verification system, and send the successfully verified first business data to the second blockchain node.
10. The method according to claim 9, characterized in that The collecting of the first business data according to the preset conditions and generating the first verification file comprises: Acquire first business data of a first business system; When the amount of the first business data reaches a preset threshold value N, storing the N first business data as a first verification file and processing the first verification file to generate a first digital summary; A verification request is sent to the second verification system, wherein the verification request carries the first verification file and a first digital summary corresponding to the first verification file.
11. The method according to claim 9, characterized in that The verification result notification carries a second verification document and a second digital summary corresponding to the second verification document; The receiving the verification result notification sent by the second verification system and sending the successfully verified first business data to the second blockchain node includes: Extracting the second verification document and the second digital summary carried in the verification result notification, and verifying the second verification document by using the second digital summary; If the verification is successful, the successfully verified first business data in the second verification file is extracted and uploaded to the second blockchain node in the blockchain; If there is first business data that fails to be verified in the second verification file, the verification status of the first business data that fails to be verified is updated and the first business data that fails to be verified is reviewed or reported.
12. A data verification method based on blockchain, characterized in that: Applied to the second verification system, including: Acquire second business data of a second business system and store the second business data in a local database; receiving a verification request, wherein the verification request carries a first verification file, wherein the first verification file is generated when the amount of first business data acquired by the first verification system reaches a preset threshold; Verify the first business data in the first verification file with the second business data in the local database and generate a verification result notification, and send the verification result notification to the first verification system; The second business data successfully verified in the local database is sent to the first blockchain node on the blockchain.
13. The method according to claim 12, characterized in that Before receiving the verification request, the method further includes: Determining a checking rule corresponding to the second business data according to the second business data; Determine a mapping relationship between the second business data and the verification rule; And the mapping relationship between the second business data and the verification rule is saved in the local database.
14. The method according to claim 12, characterized in that After receiving the verification request from the first business system, the method further includes: extracting a first digital summary from the verification request and verifying first business data in the first verification file according to the first digital summary; If the verification is successful, the first business data in the first verification file is verified with the second business data in the local database.
15. The method according to claim 12, characterized in that The step of comparing the first business data in the first comparison file with the second business data in the local database and generating a comparison result notification includes: Determine second business data corresponding to the first business data according to the identification information in the first business data; Obtaining verification rules corresponding to the key business information in the second business data; The first business data is checked against the second business data in the local database according to the checking rule and a checking result notification is generated according to the checking result.
16. The method according to claim 15, characterized in that Generating a verification result notification according to the verification result includes: generating a second verification file according to the verification result; processing the second verification file to generate a second digital summary; A verification result notification is generated based on the second verification document and the second digital summary.
17. The method according to claim 16, characterized in that Generating a second verification file according to the verification result includes: If the first business data in the first verification file are all verified successfully, the verification status in the first verification file is updated to generate a second verification file; If there is first business data that fails to be verified in the second verification file, the generated second verification file includes identification information, verification status and verification failure reason of each first business data in the first verification file.
18. A computing device comprising a memory, a processor, and computer instructions stored in the memory and executable on the processor, characterized in that: When the processor executes the instructions, the steps of the method according to any one of claims 9 to 17 are implemented.
19. A computer-readable storage medium storing computer instructions, characterized in that: When the instruction is executed by a processor, the steps of the method described in any one of claims 9 to 17 are implemented.
Citation Information
Patent Citations
Method and system for data consistency detection among multiple platforms
CN103605703A
Data verification method and device
CN107451136A
Verification method and device of service system, and electronic device
CN108694664A
A mass data digest generation system and method suitable for block chains
CN109299038A
