Data verification method and device based on block chain and electronic equipment

By verifying data in cross-system data transmission on the blockchain, the data mismatch problem is solved, the reliability and consistency of data transmission is improved, and the audit cost is reduced.

CN118796809APending Publication Date: 2024-10-18ZUNYI BRANCH OF CHINA MOBILE GRP GUIZHOU COMPANY +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311648472.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-04
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In the process of cross-system data transmission, data mismatch problems are difficult to trace, which increases the cost and difficulty of data audit. Especially in multi-system processing, it is difficult to verify the location where erroneous data is generated.

Method used

Adopt a data verification method based on the blockchain to determine the data to be verified from the business process, convert it according to the preset format, generate the target format data, and extract the verification data from the blockchain for consistency verification to ensure the integrity of the data Reliability and consistency.

Benefits of technology

Through the data verification of the blockchain, data monitoring and verification during the cross-system data transmission process are realized, the reliability and consistency of business processing are improved, and the incidence of data errors and audit costs are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796809A_ABST
    Figure CN118796809A_ABST
Patent Text Reader

Abstract

The invention relates to a block chain-based data verification method and apparatus, and an electronic device, and relates to the technical field of block chains. In the business handling process, extraction and format conversion are performed on the to-be-verified data in the business flow, the verification data are correspondingly acquired from the chained data in the block chain, and data verification is performed on the to-be-verified data through the verification data, so that monitoring of the to-be-verified data is realized, and the reliability of the to-be-verified data in the business handling process is ensured. In addition, when multiple systems carry out service handling and data transmission, verification can be carried out through verification data in the block chain in the service handling process, the consistency of the same service data in the multiple systems is guaranteed, and the reliability of service handling 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 blockchain technology, and in particular to a blockchain-based data verification method, device and electronic device. Background Art

[0002] In the process of cross-system data interoperability, since data transmission has to pass through multiple nodes, data mismatch may occur when the data is finally summarized. At this time, due to the complexity of the data and the diversity of the system, it is difficult to trace the data errors, which increases the difficulty of auditing data processed by multiple systems, makes it difficult to verify the location where the erroneous data is generated, and increases the cost of data auditing. Summary of the invention

[0003] In view of this, the present application provides a blockchain-based data verification method, device and electronic device, the main purpose of which is to improve the technical problem of data errors that are easily caused during data transmission when conducting business across systems.

[0004] In a first aspect, the present application provides a data verification method based on blockchain, comprising:

[0005] Determine the data to be verified from the business flow in the business process;

[0006] Convert the data to be verified into a target format according to a preset format.

[0007] Extracting verification data corresponding to the target format data from the blockchain;

[0008] The target format data and the verification data are verified for consistency to obtain a data verification result.

[0009] In a second aspect, the present application provides a data verification device based on blockchain, comprising:

[0010] A determination module, used to determine the data to be verified from the business flow in the business process;

[0011] A conversion module, used to convert the format of the data to be verified according to a preset format to generate target format data;

[0012] An extraction module, used to extract verification data corresponding to the target format data from the blockchain;

[0013] The verification module is used to verify the consistency of the target format data and the verification data to obtain a data verification result.

[0014] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a blockchain-based data verification method as described in the first aspect.

[0015] In a fourth aspect, the present application provides an electronic device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein when the processor executes the computer program, a blockchain-based data verification method as described in the first aspect is implemented.

[0016] By means of the above technical scheme, the data verification method, device and electronic device based on blockchain provided by the present application are aimed at the technical problem of data errors that are easily caused during data transmission when cross-system business processing. The technical scheme provided by the present application is adopted. Specifically, the data to be verified can be first determined from the business flow; the data to be verified is formatted according to the preset format to generate target format data; the verification data corresponding to the target format data is extracted from the blockchain; the target format data and the verification data are verified for consistency to obtain the data verification result. In the process of business processing, the data to be verified in the business flow is extracted and formatted, and the verification data is obtained from the data on the blockchain. The verification data is used to verify the data to be verified, and the data to be verified is monitored to ensure the reliability of the data to be verified during the business processing. When multiple systems are processing business and transmitting data, it is also possible to verify the consistency of the same business data in multiple systems by verifying with the verification data in the blockchain during the business processing process, thereby improving the reliability of business processing.

[0017] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0019] 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0020] Figure 1A flowchart of a data verification method based on blockchain provided in an embodiment of the present application is shown;

[0021] Figure 2 A schematic diagram of the structure of a blockchain-based data verification device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0022] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.

[0023] In order to improve the technical problem of data errors that are easily caused during data transmission when handling business across systems. This embodiment provides a data verification method based on blockchain, such as Figure 1 As shown, the method includes:

[0024] Step 101: determine the data to be verified from the business flow.

[0025] When handling business, especially financial business, data records are required for each business. For each business, multiple systems need to work together. For example, when handling a transfer, at least the first system needs to record the transfer account, transfer amount, and transferor of the transferor, and the second system needs to record the transfer account, transfer amount, and transferor of the recipient. At the same time, some businesses may also be handled at different nodes. For example, when a certain account is handled for storage, when the business is handled at the first node, the system of the first node records the account amount change, handling time, and handler, etc.; when the business is handled at the second node, the system of the second node records the account amount change, handling time, and handler, etc.

[0026] In order to ensure the reliability of information security, no matter when the business is handled through any channel or any outlet, all business transactions handled through this channel or this outlet need to be aggregated into a business flow as business information and perform subsequent processing, such as business classification, business aggregation or business storage steps.

[0027] In the business flow, the corresponding data to be verified is found, wherein the data to be verified is relevant data in the business flow that can represent at least one business handling content.

[0028] Step 102: convert the data to be verified into a format according to a preset format to generate data in a target format.

[0029] When determining the data to be verified in the business flow, in order to extract data from the data flow more quickly and also to implement the subsequent data verification process more quickly, this embodiment proposes to convert the format of the data to be verified so that the data after the format conversion can adapt to the data verification step more quickly. At the same time, the data after the format conversion is used as the key data of at least one business in the business flow, making the target format data more concise and reliable.

[0030] Step 103: extract verification data corresponding to the target format data from the blockchain.

[0031] After the target format data is generated, the verification data is extracted from the blockchain, and the verification data corresponds to the target format data.

[0032] Blockchain is a chain of blocks. Each block stores certain information, and they are connected into a chain in the order of their generation. This chain is stored in all servers. As long as there is one server in the entire system that can work, the entire blockchain is safe. These servers are called nodes in the blockchain system, and they provide storage space and computing power support for the entire blockchain system. If you want to modify the information in the blockchain, you must obtain the consent of more than half of the nodes and modify the information in all nodes. These nodes are usually in the hands of different entities, so it is extremely difficult to tamper with the information in the blockchain. Compared with traditional networks, blockchain has two core characteristics: one is that data is difficult to tamper with, and the other is decentralization. Based on these two characteristics, the information recorded in the blockchain is more authentic and reliable, which can help solve the problem of people's distrust.

[0033] Since the business handling process relies on the collaboration between multiple systems, in the process of realizing the construction of blockchain, the data uploaded to the blockchain comes from different systems. At the same time, based on the characteristics of blockchain data that are difficult to be tampered with artificially, storing data in the blockchain can effectively prevent business data from being tampered with artificially, thereby improving data security.

[0034] When handling business, it is necessary to further perform operations in combination with the user information of the account. For example, when handling a withdrawal, the amount that can be withdrawn needs to be determined in combination with the existing balance of the account and recorded after the withdrawal is completed. When determining the balance of the account after the withdrawal is completed through the data stored in the blockchain, specifically, it is necessary to determine the storage location in the blockchain for storing the account balance information and extract the balance information corresponding to the account from the storage location.

[0035] Step 104, performing consistency verification on the target format data and the verification data to obtain a data verification result.

[0036] After respectively extracting the target format data and the verification data, consistency verification is performed based on the two and a verification result is obtained.

[0037] Since the execution of a business requires data transmission and data processing in different systems, errors in the data in any system will lead to errors in the final business processing results, which is likely to cause great losses, and checking and auditing the final data will also greatly increase the verification cost. Therefore, the data verification method based on blockchain proposed in the content of this embodiment determines the data to be verified from the business flow of the business handling process, converts the data to be verified in a preset format, thereby extracting the corresponding verification data in the blockchain, and performing consistency verification to obtain data verification results. When multiple systems are handling business and transmitting data, it is also possible to verify with the verification data in the blockchain during the business handling process to ensure the consistency of the same business data in multiple systems and improve the reliability of business handling.

[0038] In a possible embodiment, format conversion is performed on the data to be verified according to a preset format to generate target format data, including:

[0039] The data to be verified is split; the split data to be verified is filled in respectively according to the preset hierarchical format to generate target format data, the preset hierarchical format includes: target title data of the first layer, target content data of the second layer and target identification data of the third layer.

[0040] In the content of this embodiment, the format conversion process of the data to be verified is specifically described, wherein the preset hierarchical format in the data conversion process is emphasized. It should be understood that in the process of business handling, each business contains a large amount of relevant data, and in order to realize data verification and rapid data verification, it is necessary to perform data format conversion on the data to be verified extracted from the business flow. Exemplarily, the data to be formatted is divided in the form of a hierarchical format. For the division method of the hierarchical format, the content of this embodiment discloses a division method, wherein the data type contained in the first layer is the target title data, and the hierarchical data is used to store the title of the business. Exemplarily, the business title can be the order number (id). It should be noted that the order number is the unique number of each business. When completing each business, although multiple systems need to collaborate to complete it together, the business title, i.e., the order number, corresponding to the business in the operation of each system is the same. Therefore, in the business flow of each system, when extracting the data to be verified and performing format conversion, the target title data is filled in the first layer, so as to realize the rapid search of the corresponding data in each system. The title data filled in the first layer is unique, and the data to be verified can be directly determined when the title data is determined. The data contained in the second layer of the title is the target content data. The data contained in the target content data is used to represent the business operations performed by the user in the business. For example, when the business type is withdrawal, the target content data at least includes the withdrawal amount, the withdrawer and the remaining amount. The target content data often stores the content related to the user's operation or decision in the business, and can also be used as user information. The data in the third layer represents the target identification data of the data to be verified. After determining the target title data and target content corresponding to the first and second layers respectively, in order to further enrich the content of the data to be verified, the target identification data further included may include the processing node for executing the business, the processing personnel and the description content for the data to be verified.

[0041] Exemplarily, the data to be verified consists of at least the following parts:

[0042] 1. The first-layer account ID (corresponding to the unique code for each business handled, which can be generated by the conversion contract or by the node handling the business, depending on the actual situation of the business);

[0043] 2. The target content data of the second layer can be the key data and related information (business type, operator information, instructions, etc.) in the data to be verified;

[0044] 3. Target identification data of the third layer, such as configuration information of the conversion contract.

[0045] The id uses the business order number (data is processed in units of orders). The data to be verified includes user information (userInfo), order details (contents), protocol documents (file), etc., as well as relevant information of the current node (explain, operator, section, node). It also includes the call information of the smart contract such as verification results (verify), business process progress, operation time (modifyTime), etc.

[0046] Exemplarily, a representation of a multi-layer structure to be verified may include:

[0047] {

[0048] "id":"85320200710161614B73012901",

[0049] "userInfo":"783c4968218de693cc536b16f47b7dfb",

[0050] "operator":"31448765",

[0051] "explain":"This is an example"

[0052] }

[0053] The first layer of target title data displays the ID number corresponding to the data to be verified, the second layer of target content data is used to represent user information (userInfo), where the user information is converted and displayed in the form of hash data. The third layer of target identification data includes the operator number (operator) and explanation (explain).

[0054] In the content of this embodiment, the data to be verified is divided into data layers to realize the verification of the data to be verified according to the preset layers. Specifically, the data generated in the execution process are filled with target title data, target content data and target identification data respectively. In the subsequent data verification process, the layered data are verified separately, and the data can be verified in order according to the importance of the data, and when the verification data is abnormal, the position corresponding to the abnormal data can be quickly identified.

[0055] In a possible embodiment, extracting verification data corresponding to target format data from the blockchain includes:

[0056] Extract storage data that matches the title data of the target format data from the blockchain, the storage data includes all data processing records under the title data executed in multiple systems, and the multiple systems are data-connected to the blockchain; extract comparison content data from the storage data; and extract verification data corresponding to the target content data from the comparison content data.

[0057] In the content of this embodiment, the extraction of verification data is specifically described. In the case of more business systems supported by the blockchain, the business operations in any system can be packaged and uploaded to the blockchain. At the same time, after the business is executed, it may also need to go through other systems to perform other operations, such as checking accounts, checking, etc., and when other systems are also connected to the blockchain, after processing the business and uploading the data to the chain, it can be compared with the data on the chain during the business operation process to verify the data and ensure that there will be no artificial or abnormal changes in the data during the execution process. From the call sequence of the system, after the system that performs the business execution process first implements the execution of the business, the data generated by the execution of the business can be uploaded to the blockchain first. In order to show the connectivity of the data, or reduce the space occupied by the stored data group in the business chain, it is necessary to aggregate and store the data generated by the execution of the business. When other systems perform repeated applications on the business in the subsequent process, the business system is repeatedly executed, and the data is chained again, and the data is compared with the data group that has been chained. In the process of data comparison, the data uploaded to the chain again is used as the data to be verified, and in the process of extracting the verification data, the verification data extracted from the blockchain is stored in an aggregated form. Therefore, in the content of this embodiment, with respect to the acquisition of verification data, the verification data corresponding to the data to be verified is obtained in the blockchain.

[0058] Since blockchain data is a collection of a series of data, the system connected to the blockchain sends the generated data to the blockchain, and the blockchain performs an unchangeable record of the data generated by the system. For example, the storage data used to store a series of data in the blockchain can be:

[0059] {

[0060] "id":"85320200710161614B73012901",

[0061] "userInfo":"783c4968218de693cc536b16f47b7dfb",

[0062] "contents":"b79cc319bab1a7166fa4487caf39151c",

[0063] "file":"b0fa64b9220bde6edaeb6c238694b1b2",

[0064] …

[0065] "explain":"This is an example"

[0066] "operator":"31448765",

[0067] "section":"crm",

[0068] "node":"_1",

[0069] …

[0070] "verify":"Success",

[0071] "result":"processing",

[0072] "modifyTime":"2021-10-27 11:51:14GMT",

[0073] }

[0074] The stored data contains more data related to the operation, while the data to be verified only contains part of the data related to the stored data. When using the stored data to verify the data to be verified, it is necessary to extract the data content related to the data to be verified from the stored data as verification data, and use the verification data to verify the data to be verified.

[0075] In a possible embodiment, the target content data and the verification data include a hash value or characteristic data for representing the data.

[0076] In the content of this embodiment, the data forms of the target content data and the verification data are described. It is understandable that when uploading data to the chain, there may be some sensitive information or confidential information. In order to avoid information leakage, before uploading the data to the chain, the data is converted into other data forms, such as encrypting it into a hash value through hashing, or converting it into a feature data form through a self-set method, and uploading it to the blockchain. In the process of verification, the data is directly compared to see if they are equal. On the premise of realizing data verification through the blockchain, the confidentiality of the data is implemented to avoid information leakage caused by the blockchain.

[0077] In a possible embodiment, after performing consistency verification on the target format data and the verification data to obtain a data verification result, the method further includes:

[0078] When the consistency verification is performed on the target format data and the verification data, if it is determined that the target format data and the verification data are inconsistent, it is determined that the target format data is abnormal.

[0079] In the technical solution of this embodiment, after the data to be verified is uploaded to the blockchain, the target format data of the data to be verified is compared with the verification data. If the data does not correspond, it can be confirmed that the target format data has a data anomaly. Furthermore, when the data anomaly is detected, it can also be confirmed that the system in which the target format data appears has an anomaly.

[0080] In a possible embodiment, after determining that the target format data is abnormal, the method further includes:

[0081] Trace the abnormal target format data to obtain the restored data; compare the restored data with the data to be verified to determine the data differences; based on the data differences, identify the cause of the data anomaly.

[0082] In this embodiment, in view of the abnormality of the target format data, the abnormal data can be further traced. Since the blockchain can receive data from different systems, and different systems perform different system functions for the same business, the data to be verified in each system should be the same as the stored data on the blockchain. Therefore, after the target format data obtained in the system is uploaded to the blockchain, after the abnormality is found by comparing it with the existing verification data in the blockchain, the on-chain system can be determined based on the data to be verified, and the system log of the on-chain system can be quickly consulted to achieve rapid tracing of data abnormalities.

[0083] In a possible embodiment, after extracting verification data corresponding to the target format data from the blockchain, the method further includes:

[0084] If there is no data corresponding to the target format data in the blockchain, the target format data is stored in the blockchain; and verification data is generated based on the target format data stored in the blockchain.

[0085] In the content of this embodiment, the content of the business data being uploaded to the blockchain for the first time is specifically described. It is understandable that, due to the uniqueness of the data identification, when the business data is uploaded to the blockchain, the same business can be quickly found in the blockchain based on the business identification, and the business data can be compared based on the same business data already existing in the blockchain. After the business data is uploaded to the blockchain, if the same data cannot be found, it is confirmed that the business data is uploaded to the blockchain for the first time. In combination with the above situation, the situation in which the business data is uploaded to the blockchain for the first time is described in this embodiment. At the same time, in order to realize the judgment of subsequent business, the technical solution of this embodiment can also store the data uploaded to the blockchain for the first time, and realize verification with the business data uploaded to the blockchain subsequently.

[0086] In the above embodiment, blockchain data can be used to realize real-time monitoring and query statistics of business data, as well as post-data verification functions, and displayed through local services and front-end pages. Data display includes data display functions such as real-time business status data, real-time statistical data, operational statistical data, query statistical data, and verification data. Data query supports regional query, date query, order query, personal information query, etc. Post-data verification can support personal information query and protocol file query.

[0087] Further, as Figure 1 The specific implementation of the method shown in the embodiment provides a structural diagram of a data verification device based on blockchain, such as Figure 2 As shown, it includes: a determination module 21, a conversion module 22, an extraction module 23 and a verification module 24;

[0088] A determination module 21, used to determine the data to be verified from the business flow;

[0089] The conversion module 22 is used to convert the format of the data to be verified according to a preset format to generate target format data;

[0090] An extraction module 23, configured to extract verification data corresponding to the target format data from the blockchain;

[0091] The verification module 24 is used to verify the consistency of the target format data and the verification data to obtain a data verification result.

[0092] In a possible embodiment, the conversion module 22 is specifically configured to:

[0093] Performing data splitting on the data to be verified;

[0094] The split data to be verified are filled in respectively according to a preset hierarchical format to generate target format data, wherein the preset hierarchical format includes: target title data of the first layer, target content data of the second layer and target identification data of the third layer.

[0095] In a possible embodiment, the extraction module 23 is specifically configured to:

[0096] Extracting storage data matching the title data of the target format data from the blockchain, wherein the storage data includes all data processing records under the title data executed in multiple systems, and the multiple systems are data-connected to the blockchain;

[0097] extracting comparison content data from the stored data;

[0098] The verification data corresponding to the target content data is extracted from the comparison content data.

[0099] In a possible embodiment, the target content data and the verification data include hash values ​​or feature data for representing data.

[0100] In a possible embodiment, the verification module 24 is further configured to:

[0101] When the consistency verification is performed on the target format data and the verification data, if it is determined that the target format data and the verification data are inconsistent, the target format data is determined to be abnormal.

[0102] In a possible embodiment, the verification module 24 is further configured to:

[0103] Tracing the abnormal target format data to obtain restored data;

[0104] Compare the restored data with the data to be verified to determine the data difference;

[0105] Based on the data difference portion, the cause of the data anomaly is identified.

[0106] In a possible embodiment, the data verification device further includes a generating module, which is used to:

[0107] If there is no data corresponding to the target format data in the blockchain, storing the target format data in the blockchain;

[0108] The verification data is generated based on the target format data stored in the blockchain.

[0109] It should be noted that for other corresponding descriptions of the functional units involved in the image processing device provided in this embodiment, reference can be made to Figure 1The corresponding description will not be repeated here.

[0110] Based on the above Figure 1 The method shown in the embodiment also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned Figure 1 The method shown.

[0111] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.

[0112] Based on the above Figure 1 The method shown, and Figure 2 In order to achieve the above-mentioned purpose, the embodiment of the present application also provides an electronic device, such as a smart phone, a tablet computer, a drone, a smart robot and other smart terminals, which includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 The method shown.

[0113] Optionally, the above-mentioned physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.

[0114] Those skilled in the art will appreciate that the above-mentioned physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.

[0115] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the above-mentioned physical device, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.

[0116] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform, or by hardware. By applying the scheme of this embodiment, in the process of business handling, the data to be verified in the business flow is extracted and formatted, and the verification data is correspondingly obtained from the data on the blockchain. The data to be verified is verified by the verification data, and the monitoring of the data to be verified is realized to ensure the reliability of the data to be verified in the process of business handling. When multiple systems are handling business and transmitting data, it is also possible to verify the verification data in the blockchain during the business handling process to ensure the consistency of the same business data in multiple systems and improve the reliability of business handling.

[0117] It should be noted that, in this article, relational terms such as "first" and "second" are only used 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 "include", "comprise" 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, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0118] The above is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can 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 described herein, but will conform to the widest scope consistent with the principles and novel features applied for herein.

Claims

1. A data verification method based on blockchain, characterized in that: include: Determine the data to be verified from the business flow; Convert the data to be verified into a target format according to a preset format. Extracting verification data corresponding to the target format data from the blockchain; The target format data and the verification data are verified for consistency to obtain a data verification result.

2. The method according to claim 1, characterized in that The step of converting the data to be verified according to a preset format to generate target format data includes: Performing data splitting on the data to be verified; The split data to be verified are filled in respectively according to a preset hierarchical format to generate target format data, wherein the preset hierarchical format includes: target title data of the first layer, target content data of the second layer and target identification data of the third layer.

3. The method according to claim 2, characterized in that The extracting verification data corresponding to the target format data from the blockchain includes: Extracting storage data matching the title data of the target format data from the blockchain, wherein the storage data includes all data processing records under the title data executed in multiple systems, and the multiple systems are data-connected to the blockchain; extracting comparison content data from the stored data; The verification data corresponding to the target content data is extracted from the comparison content data.

4. The method according to any one of claim 3, characterized in that: The target content data and the verification data include hash values ​​or feature data for representing data.

5. The method according to claim 1, characterized in that After performing consistency verification on the target format data and the verification data to obtain a data verification result, the method further includes: When the consistency verification is performed on the target format data and the verification data, if it is determined that the target format data and the verification data are inconsistent, the target format data is determined to be abnormal.

6. The method according to claim 5, characterized in that After determining that the target format data is abnormal, the method further includes: Tracing the abnormal target format data to obtain restored data; Compare the restored data with the data to be verified to determine the data difference; Based on the data difference portion, the cause of the data anomaly is identified.

7. The method according to claim 1, characterized in that After extracting verification data corresponding to the target format data from the blockchain, the method further includes: If there is no data corresponding to the target format data in the blockchain, storing the target format data in the blockchain; The verification data is generated based on the target format data stored in the blockchain.

8. A data verification device based on blockchain, characterized in that: include: A determination module, used to determine the data to be verified from the business flow; A conversion module, used to convert the format of the data to be verified according to a preset format to generate data in a target format; An extraction module, used to extract verification data corresponding to the target format data from the blockchain; The verification module is used to verify the consistency of the target format data and the verification data to obtain a data verification result.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. An electronic device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • System and method for auditing and supervising real-time traceability of multi-source data

    CN120632744A