CN113239056B - Data checking method and system based on block chain - Google Patents
Data checking method and system based on block chain Download PDFInfo
- Publication number
- CN113239056B CN113239056B CN202110544443.7A CN202110544443A CN113239056B CN 113239056 B CN113239056 B CN 113239056B CN 202110544443 A CN202110544443 A CN 202110544443A CN 113239056 B CN113239056 B CN 113239056B
- Authority
- CN
- China
- Prior art keywords
- data
- checking
- service
- chain
- request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2365—Ensuring data consistency and integrity
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2358—Change logging, detection, and notification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2458—Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
- G06F16/2477—Temporal data queries
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Computing Systems (AREA)
- Fuzzy Systems (AREA)
- Mathematical Physics (AREA)
- Probability & Statistics with Applications (AREA)
- Software Systems (AREA)
- Computational Linguistics (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present specification provides a block chain-based data checking method and system, wherein the block chain-based data checking method includes: acquiring a data checking request; sending a service data reading request to a service system according to the data checking request, and sending a chained data reading request to a checking node in a block chain; receiving the service data returned by the service system aiming at the service data reading request and the on-chain data returned by the check node aiming at the on-chain data reading request; and checking the service data and the data on the chain, and using a checking result as a response of the data checking request.
Description
Technical Field
The present disclosure relates to the field of block chain technologies, and in particular, to a data checking method and system based on a block chain.
Background
With the development of internet technology, the blockchain technology is more mature, and many platforms are also prompted to use the characteristics of the blockchain to store and check data. The block chain is used as a distributed shared bill and database, has the characteristics of decentralization, no tampering, trace remaining in the whole process, redundancy, collective maintenance, public transparency and the like, not only ensures the reality and transparency of the block chain, but also lays a foundation for creating trust for the block chain. However, as the block chain is applied by more service platforms, a problem of whether the real service data is consistent with the data on the chain or not is brought, and a problem of whether the data broadcasted among the nodes is consistent when the number of nodes on the chain is too large is brought.
Disclosure of Invention
In view of this, the embodiments of the present disclosure provide a data checking method based on a block chain. The present specification also relates to a block chain-based data collation system, a computing device, and a computer-readable storage medium, which solve the technical defects in the prior art.
According to a first aspect of embodiments of the present specification, there is provided a data checking method based on a block chain, including:
acquiring a data checking request;
sending a service data reading request to a service system according to the data checking request, and sending a chained data reading request to a checking node in a block chain;
receiving the service data returned by the service system aiming at the service data reading request and the chain data returned by the check node aiming at the chain data reading request;
and checking the service data and the data on the link, and using a checking result as a response of the data checking request.
Optionally, the checking node in the block chain is determined by:
selecting at least one block chain node in the block chain as the check node, and issuing a check strategy aiming at the check node; and the checking node inquires and stores the data on the chain according to the checking strategy.
Optionally, the obtaining a data checking request includes:
acquiring the data checking request according to a preset time period; or alternatively
And receiving a data checking instruction uploaded by a service provider, and generating the data checking request according to the data checking instruction.
Optionally, the sending a service data reading request to a service system according to the data checking request, and sending an uplink data reading request to a checking node in a block chain includes:
analyzing the data checking request to obtain data checking information;
generating the service data reading request and the on-chain data reading request based on the data checking information;
and sending the service data reading request to the service system, and sending the on-chain data reading request to the check node in the block chain.
Optionally, the generating the service data read request and the uplink data read request based on the data checking information includes:
determining data checking time and data checking identification contained in the data checking information, and determining a service system identification and a block chain identification according to the data checking identification;
and generating the service data reading request based on the data checking time and the service system identification, and generating the on-chain data reading request according to the data checking time and the block chain identification.
Optionally, the responding the data checking request with the checking result includes:
acquiring broadcast data in the block chain under the condition that the service data is inconsistent with the data on the chain;
and checking the broadcast data, the service data and the uplink data to obtain checking information, and generating a checking result based on the checking information as a response of the data checking request.
Optionally, after the step of checking the service data and the uplink data and taking a checking result as a response to the data checking request is executed, the method further includes:
selecting an uplink strategy from preset adjustment strategies under the condition that the broadcast data is determined to be inconsistent with the service data according to the check result;
and generating uplink adjustment information according to the uplink strategy, and sending the uplink adjustment information to the service system.
Optionally, after the step of checking the service data and the uplink data and performing the checking result as a response to the data checking request, the method further includes:
selecting a broadcasting strategy from preset adjusting strategies under the condition that the on-chain data is determined to be inconsistent with the broadcasting data according to the checking result;
and generating broadcast adjustment information according to the broadcast strategy, and sending the broadcast adjustment information to the block chain.
According to a second aspect of embodiments herein, there is provided a data collation system based on a blockchain, including:
the system comprises a checking system, a service system and a block chain, wherein the block chain comprises at least one checking node and at least one block chain node;
the checking system is configured to obtain a data checking request; sending a service data reading request to the service system according to the data checking request, and sending an on-chain data reading request to the checking node in the block chain;
the business system is configured to extract business data according to the business data reading request and return the business data to the checking system;
the checking node is configured to extract the data on the chain according to the data reading request on the chain and return the data on the chain to the checking system;
the reconciliation system is further configured to receive the traffic data and the on-chain data; and checking the service data and the data on the link, and using a checking result as a response of the data checking request.
Optionally, the checking system is further configured to send a broadcast data read request to the block link node if the service data and the on-chain data are inconsistent;
the block chain node is configured to extract broadcast data according to the broadcast data reading request and return the broadcast data to the checking system;
the checking system is further configured to check the broadcast data, the service data and the uplink data to obtain checking information, and generate the checking result as a response to the data checking request based on the checking information.
Optionally, the checking system is further configured to select an uplink policy from preset adjustment policies when it is determined that the broadcast data and the service data are inconsistent according to the checking result; and generating uplink adjustment information according to the uplink strategy, and sending the uplink adjustment information to the service system.
Optionally, the checking system is further configured to select a broadcast policy from preset adjustment policies when it is determined that the uplink data and the broadcast data are inconsistent according to the checking result; and generating broadcast adjustment information according to the broadcast strategy, and sending the broadcast adjustment information to the block chain node.
According to a third aspect of embodiments herein, there is provided a computing device comprising:
a memory and a processor;
the memory to store computer-executable instructions, the processor to execute the computer-executable instructions:
acquiring a data checking request;
sending a service data reading request to a service system according to the data checking request, and sending an on-chain data reading request to a checking node in a block chain;
receiving the service data returned by the service system aiming at the service data reading request and the chain data returned by the check node aiming at the chain data reading request;
and checking the service data and the data on the chain, and using a checking result as a response of the data checking request.
According to a fourth aspect of embodiments herein, there is provided a computer-readable storage medium storing computer-executable instructions, which when executed by a processor, implement the steps of the block chain-based data checking method.
According to the data checking method based on the block chain, after the checking system obtains the data checking request, a service data reading request can be sent to the service system according to the data checking request, a chained data reading request is sent to the checking node in the block chain, then the service data returned by the service system and the chained data returned by the checking node in the block chain are received, whether the data are consistent or not can be accurately judged by checking the service data and the chained data, the consistency checking of the data and the service data on the chain is accurately realized, the data broadcasted on the block chain is consistent with the data on the chain of the service system, and therefore the rights and interests of all parties having a service relationship with the service system are guaranteed.
Drawings
Fig. 1 is a flowchart of a block chain-based data checking method according to an embodiment of the present specification;
fig. 2 is a schematic diagram of data checking in a first block chain-based data checking method according to an embodiment of the present disclosure;
FIG. 3 is a diagram illustrating data checking in a second blockchain-based data checking method according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of data checking in a third method for checking data based on a block chain according to an embodiment of the present disclosure;
FIG. 5 is a diagram illustrating data checking in a fourth method for checking data based on a blockchain according to an embodiment of the present disclosure;
FIG. 6 is a block chain-based data collation system according to an embodiment of the present specification;
FIG. 7 is a flowchart of a process of a blockchain-based data collation system applied in a data collation scenario according to an embodiment of the present specification;
fig. 8 is a block diagram of a computing device according to an embodiment of the present disclosure.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present description. This description may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, as those skilled in the art will be able to make and use the present disclosure without departing from the spirit and scope of the present disclosure.
The terminology used in the description of the one or more embodiments is for the purpose of describing the particular embodiments only and is not intended to be limiting of the description of the one or more embodiments. As used in one or more embodiments of the present specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present specification refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first can also be referred to as a second and, similarly, a second can also be referred to as a first without departing from the scope of one or more embodiments of the present description. The word "if," as used herein, may be interpreted as "at \8230; \8230when" or "when 8230; \823030when" or "in response to a determination," depending on the context.
First, the noun terms to which one or more embodiments of the present specification relate are explained.
Block chains: (Blockchain) is a distributed shared account book and database, and has the characteristics of decentralization, no tampering, trace retaining in the whole process, traceability, collective maintenance, openness and transparency and the like.
An intelligent contract: smart contract, a computer protocol intended to propagate, verify or execute contracts in an informative manner. Smart contracts allow trusted transactions to be conducted without third parties, which transactions are traceable and irreversible.
In the present specification, a block chain based data collation method is provided, and the present specification relates to a block chain based data collation system, a computing device, and a computer readable storage medium, which are described in detail one by one in the following embodiments.
In practical applications, in order to ensure data security and maintain rights and interests of parties interacting with a service system, a service system generally uploads related service data to a block chain after a service task is processed, and broadcasts the data by block chain nodes on the block chain, so that the nodes can achieve consensus and data loss and falsification are avoided. However, no matter the service data is synchronized to the blockchain or the node in the blockchain broadcasts, there is a possibility of write failure as long as write operation is involved, which causes a problem that data broadcasted on the chain or data uploaded by the service system in the blockchain is inconsistent with data local to the service system, thereby affecting each party.
According to the data checking method based on the block chain, after the checking system obtains the data checking request, a service data reading request can be sent to the service system according to the data checking request, a chained data reading request is sent to the checking node in the block chain, then the service data returned by the service system and the chained data returned by the checking node in the block chain are received, whether the data are consistent or not can be accurately judged by checking the service data and the chained data, the consistency checking of the data and the service data on the chain is accurately realized, the data broadcasted on the block chain is consistent with the data on the chain of the service system, and therefore the rights and interests of all parties having a service relationship with the service system are guaranteed.
Fig. 1 is a flowchart illustrating a block chain-based data checking method according to an embodiment of the present specification, where the block chain-based data checking method provided by the embodiment is applied to a checking system, and specifically includes the following steps:
step S102, a data checking request is obtained.
Specifically, the checking system is a system capable of checking uplink data on a block chain and uplink service data of a service system. It should be noted that, because the block chain may not visually check and verify data as in a general database, when data is verified, the data on the chain needs to be transmitted to the checking system to complete the data checking, and thus the checking system is configured to implement the data checking operation. Further, in order to avoid that the amount of data to be checked is too large and occupies more contents of the checking system, a checking system database may be configured for the checking system, and the data on the chain to be checked is temporarily stored in the checking system database to achieve the purpose of checking the data consistency by comparing the data contained in the database, the storage time of the data on the chain in the checking system database may be set according to an actual application scenario, the database may be cleared after the checking is completed, or the database may be cleared after the adjustment of the data on the chain or the service data is completed according to the checking result, which is not limited herein.
Based on this, the data checking request specifically refers to a request for checking uplink data on a blockchain and service data on a service system uplink, where the request may be initiated by a data detection person or triggered and initiated according to a preset checking policy, and this embodiment is not limited in this respect. Before this, it needs to be ensured that the service system has synchronized the service data to the block chain, and the block chain node on the block chain has performed the on-chain broadcast of the uplink data, that is, as shown in fig. 2, after the service system has processed the service data by the intelligent contract, the service data is synchronized to the block chain, and the on-chain node 1, the on-chain node 2, the on-chain node 3, and the on-chain node 4 included in the block chain perform the on-chain broadcast of the service data on the service system, so as to achieve the common identification of the on-chain nodes, that is, in a general case, the data read from any one of the on-chain nodes is the same.
However, the data may be changed due to the update problem of the intelligent contract or the network fluctuation problem of the nodes in the chain during data broadcasting, so that the consistency of the data cannot be ensured; in order to avoid problems caused by data inconsistency in subsequent service processing, the checking system is set to check the data and the service data on the link, so that loss caused by data inconsistency is avoided. When the checking system acquires the data checking request, starting data checking processing, wherein the data checking request is acquired as follows:
acquiring the data checking request according to a preset time period; or receiving a data checking instruction uploaded by a service provider, and generating the data checking request according to the data checking instruction.
In practical application, on one hand, when the checking system checks data, data needs to be read from the blockchain, and the size of the data amount is not fixed, so that the checking system can accurately complete the data checking task, data checking processing can be performed once in a preset time period, that is, after the preset time period is reached, a data checking request is automatically generated, and the data checking task is triggered based on the data checking request, so as to complete subsequent data checking processing operations.
On the other hand, if the frequency of the service system to the block chain synchronization data is low and the holding time is long, the service provider can actively submit a data checking instruction to the data checking system, so that the checking system can create the data checking request according to the data checking instruction to complete the subsequent data checking processing operation.
In specific implementation, the preset time period may be set according to an actual application scenario, and this embodiment is not limited herein.
Step S104, according to the data check request, sending a service data reading request to a service system, and sending a data reading request on the block chain to the check node in the block chain.
Specifically, after the data checking request is obtained, one part of the data to be checked is from the service system, and the other part of the data to be checked is from the synchronous block chain of the service system, so that in order to check uplink data and service data provided by the service system, the checking system sends a service data reading request to the service system according to the data checking request, and also sends an on-chain data reading request to a checking node in the block chain, so as to implement the following task of completing checking processing on the service data which can be fed back to the service system and the on-chain data which is fed back by the checking node in the block chain, thereby completing the task of checking data consistency.
Based on this, the service system specifically refers to one end of the synchronous service data on the block chain, the service data synchronized to the block chain refers to data generated in the service processing process, and in order to avoid data being tampered or lost, the data is synchronized to the block chain; that is, the business system will provide business services to the parties participating in the business, and the data generated by the business services will be synchronized to the block chain by the business system. Correspondingly, the service data reading request is an acquisition request for reading the service data synchronized to the block chain, which is sent to the service system by the checking system, so as to be used for subsequently requesting the service data returned by the service system, and realize data checking and processing operation.
The check node in the block chain specifically refers to a node obtained after conversion of any block chain link point in the block chain, and the check node is in butt joint with the check system, so that when data check processing is performed, data on the chain can be sent to the check system, and the check system completes data check processing operation. That is, when the check processing operation is not performed on the check node, the check node is the same as the node on the other chains in the block chain, and will not affect the block chain and the other nodes on the chain; when the check node performs check processing operation, the check node reads the data on the chain, stores the data locally, and then sends the data to the check system, and the check system completes the subsequent data check processing operation. Correspondingly, the on-chain data reading request is an acquisition request of on-chain data synchronized to the node on the reading chain, which is sent by the checking system to the checking node in the block chain, so as to be used for requesting the on-chain data returned by the checking node subsequently, and realize the data checking processing operation.
Further, since the collating node is a node that directly interacts with the collating system, in order to ensure that when a data collating processing task is executed, the collating node can respond to the task in time, assist the collating system in completing the data collating processing operation, and send a collating policy to the collating node after the collating node is determined, in this embodiment, a specific implementation manner is as follows:
selecting at least one block chain node in the block chain as the check node, and issuing a check strategy aiming at the check node; and the checking node inquires and stores the data on the chain according to the checking strategy.
Specifically, when a check node is selected from the blockchain, at least one blockchain node may be selected as the check node according to a requirement, where the node may be any one of blockchain nodes in the blockchain, and then the blockchain node in the blockchain that is converted into the check node sends the check policy, so that the check node may query and store the data on the chain according to the check policy, that is, the permission of data caching and data query is provided for the blockchain node serving as the check node, so that the check node may feed back the data on the chain according to a data reading request on the chain issued by the check system.
In practical application, because different block chains contain different numbers of block chain link points, in order to satisfy data checking tasks in different scenes, different numbers of block chain link points can be selected as the checking nodes according to requirements, that is, one, two or more block chain nodes can be selected as the checking nodes in a block chain having a data synchronization relationship with a service system, so as to improve data checking efficiency. In addition, after a check node is determined from the block chain, any one of the block chain nodes except the check node may be selected as a verification node in the block chain, so that after the data check processing operation is completed, whether the result of the data check processing operation is correct or not may be verified by the verification node, thereby improving the accuracy of the data check processing.
Further, before sending the service data reading request to the service system based on the data checking request and sending the on-chain data reading request to the checking node, because the amount of service data related to the service system is large and the service system synchronizes the service data to the blockchain is also large, in order to ensure that the data to be checked by the checking system belongs to the same batch of data, that is, the on-chain data provided by the checking node and the service data synchronized by the service system to the blockchain belong to the same batch, the data reading request for acquiring the same batch of data is created according to the data checking request and is sent to the service system and the checking node respectively, in this embodiment, the specific implementation manner is as in steps S1042 to S1046:
step S1042, parsing the data checking request, and obtaining data checking information.
Specifically, the data check information may be used to create information of a service data read request and a data read request on a chain, and it may be ensured that data requested by two data read requests belong to the same batch, that is, the data check information specifically refers to information required to be used for acquiring data on a chain and service data of the same batch, and includes data check time and data check identifier, time information corresponding to data to be checked may be determined by the data check time, and a service system and a block chain to which the data to be checked belongs may be determined by the data check identifier.
Based on this, after the data check request is obtained, the data check request can be analyzed to obtain the data check information, so that a service data reading request sent to the service system and an on-link data reading request sent to the check node can be subsequently created according to the data check information, the service system and the check node can return data according to the request, and the check system can complete data check processing.
Step S1044 is to generate the service data read request and the uplink data read request based on the data verification information.
Specifically, after the data matching information is obtained, a data reading request may be created according to the data matching information, and in this process, in order to ensure that a service data reading request created for the service system and an on-chain data reading request created for the matching node are requests for data creation in the same batch, the creation of the data reading request may be completed by combining the data matching time and the data matching identifier in the data matching information, in this embodiment, a specific implementation manner is as follows:
determining data checking time and data checking identification contained in the data checking information, and determining a service system identification and a block chain identification according to the data checking identification;
and generating the service data reading request based on the data checking time and the service system identification, and generating the on-chain data reading request according to the data checking time and the block chain identification.
Specifically, the data checking time specifically refers to a time corresponding to the checked data, and the data checking identifier specifically refers to a unique identifier of the checked service system and the checked block chain. Because the checking system may be in butt joint with one or more service systems and one or more block chains, in order to ensure that when data checking is performed, service data provided by the service system and the block chains having a data synchronization relationship can be accurately acquired and data checking is completed on the chains, a service system identifier of the service system and a block chain identifier corresponding to the block chain to which the checking node belongs can be determined according to the data checking identifier, and finally, creation and transmission of a data reading request are completed based on the identifier and time.
Based on this, after the data checking information is obtained, firstly, the data checking time and the data checking identifier included in the data checking information can be determined, secondly, the service system identifier and the block chain identifier are determined according to the data checking identifier, and finally, the service data reading request can be generated based on the data checking time and the service system identifier, and the on-chain data reading request can be generated based on the data checking time and the block chain identifier, so that the data can be obtained subsequently.
Step S1046, sending the service data reading request to the service system, and sending the on-chain data reading request to the check node in the block chain.
Specifically, after the service data read request and the on-chain data read request are generated, the service data read request may be sent to the service system corresponding to the service system identifier, and the on-chain data read request may be sent to the check node in the block chain corresponding to the block chain identifier, so that the service system and the check node may return data according to the data read request to check data consistency.
For example, the service system S has a data synchronization relationship with the blockchain Q, and the blockchain Q includes a check node Q; based on this, when the checking platform needs to check the data in the service system S and the blockchain Q, the data checking request is obtained, and it is determined according to the data checking request that the time corresponding to the part of data synchronized by the service system S to the blockchain Q is T, the identifier corresponding to the service system is ID _ S, and the identifier corresponding to the blockchain is ID _ Q. At this time, a service data reading request sent to the service system S may be created according to the service system identifier ID _ S and the data check time T, an uplink data reading request sent to the check node Q in the block chain may be created according to the block chain identifier ID _ Q and the data check time T, the service data reading request may be sent to the service system S, and the uplink data reading request may be sent to the block chain Q, so that a subsequent data check processing operation may be completed by the check platform.
In summary, two different data acquisition requests are respectively created for the service system and the check node by combining the data check information, so that the correlation of subsequently received data fed back by the service system and the check node can be ensured, and the data can be accurately checked for consistency.
Step S106, receiving the service data returned by the service system for the service data read request, and the link data returned by the check node for the link data read request.
Specifically, after the service data reading request is sent to the service system and the on-chain data reading request is sent to the check node, further, the service data returned by the service system for the service data reading request may be received at this time, where the service data specifically refers to data synchronized by the service system to the block chain. And meanwhile, receiving the chain data returned by the check node aiming at the chain data reading request, wherein the chain data is specifically data obtained by inquiring and storing the check node after the chain node broadcasts, and whether the data is consistent can be determined by comparing the chain data with the service data subsequently, so that the problem that the rights and interests of service participants are influenced by the inconsistency of the data caused by writing errors is solved.
And step S108, checking the service data and the data on the chain, and taking a checking result as a response of the data checking request.
Specifically, after receiving the service data returned by the service system and the uplink data returned by the check node in the block chain, the uplink data and the service data may be checked, and then the check result is used as a response to the data check request, so as to ensure that the data broadcast in the block chain is consistent with the data uplinked by the service system, and even if the data is inconsistent, the feedback may be performed in time, so as to prompt the service system to re-uplink or adjust the data which has been uplinked, ensure that the data is consistent with the data, and avoid causing a loss of a service participant.
Based on this, referring to fig. 3, after the service system synchronizes the service data to the blockchain, each node in the blockchain (node 1 on the chain, node 2 on the chain, node 3 on the chain, and check node (node 4 on the chain as the check node)) broadcasts the uplink data. When the checking system needs to perform consistency check on the uplink data and the data provided by the service system, a link data reading request can be sent to the checking node, and a service data reading request can be sent to the service system, at this time, the service system returns the uplink service data to the service data reading request, and writes the uplink service data into a service system database. Meanwhile, the checking node inquires data broadcasted on the chain according to the data reading request on the chain and stores the data locally, then sends the data reading request on the chain to the checking system, writes the data into a checking system database by the checking system, and finally determines whether the business data of the uplink is consistent with the data broadcasted on the chain by comparing the business system database with the checking system database.
Further, after the on-chain data and the service data are checked, in order to perform accurate response to the data checking request and improve the data checking accuracy, reasons for inconsistency of positioning data in an accurate manner of checking the service data, the broadcast data, and the on-chain data may be adopted to realize subsequent adjustment, and in this embodiment, a specific implementation manner is as follows:
acquiring broadcast data in the block chain under the condition that the service data is inconsistent with the data on the chain;
and checking the broadcast data, the service data and the data on the link to obtain checking information, and generating the checking result as a response of the data checking request based on the checking information.
Specifically, the broadcast data refers to data broadcasted among all the block chain nodes in the block chain; correspondingly, the check information specifically refers to comparison result information obtained by comparing the broadcast data, the uplink data and the service data.
Therefore, after the service data and the data on the chain are checked, under the condition that the service data is consistent with the data on the chain, the service system is indicated to synchronize the service data to the block chain, and the block chain does not perform writing failure on the synchronized data after being subjected to on-chain broadcasting, namely, no processing is required. When the service data is determined to be inconsistent with the data on the chain, it is indicated that the service data is synchronized to the block chain, or a write failure may occur when the block chain broadcasts the data; for example, the data on the chain of the service system changes due to the adjustment of the intelligent contract, or the data is lost due to network playing when the node in the block chain performs data broadcasting, and the like.
In order to accurately determine the reason for the inconsistency of the positioning data, the broadcast data in the block chain, that is, the data that can be queried and stored by other block chain nodes except the check-pair node in the block chain, may be acquired, and then the broadcast data and the service data are checked, and the broadcast data and the data on the chain are checked, so as to obtain check information, and then the check node may be determined according to the check information and used as a response to the data check request, thereby implementing the reason for the inconsistency of the data caused by accurate positioning, and making an adjustment in time.
For example, referring to fig. 4, the service system synchronizes data a to a blockchain through a synchronization link a, and converts the data a into data B through an intelligent contract, where a node 1 on the chain, a node 2 on the chain, a node 3 on the chain, and a node 4 on the chain (as a check node) in the blockchain perform an on-chain broadcast on the data B. When the checking system needs to check the uplink data and the uplink data of the service system, the data C is obtained through the checking node and written into the checking system database, meanwhile, the uplink data A of the service system is obtained and written into the service system database, and the data A and the uplink data C are confirmed to be consistent through comparison; and under the condition that the data A is determined to be inconsistent with the data C, and at the moment, the data B broadcasted on the chain can be acquired again, the data B is compared with the data A, and the data B is compared with the data C.
If the data B is inconsistent with the data a, it indicates that when the service system links the data a, the data a is changed due to the intelligent contract of the block chain, and the data B broadcasted on the chain is not all of the data a, then information that the data B is inconsistent with the data a may be fed back to the checking system at this time, and it is notified that the data is inconsistent due to a problem occurring when the checking system is a link. If the data B is inconsistent with the data C, it is described that when the block chain broadcasts the data B on the chain, the data B broadcasted on the chain is incomplete due to the problem of network fluctuation, and at this time, the data C inquired and obtained by the check node is not the data B broadcasted, information that the data B is inconsistent with the data C may be returned to the check system, and it is notified that the data inconsistency is caused by the problem occurring when the check system broadcasts the data on the chain.
In summary, by comparing the broadcast data, the service data and the link data, the checking system can quickly determine the reason of data inconsistency, so that the subsequent checking system can adjust the reason of data inconsistency, and thus the loss caused by data inconsistency is avoided.
In addition, because there are many reasons for data inconsistency, different adjustments can be made for different reasons, so as to avoid the loss caused by data inconsistency, and on one hand, the specific implementation manner is as follows:
selecting an uplink strategy from preset adjustment strategies under the condition that the broadcast data is determined to be inconsistent with the service data according to the check result;
and generating uplink adjustment information according to the uplink strategy, and sending the uplink adjustment information to the service system.
Specifically, the uplink policy is an adjustment policy sent to the service system, and when broadcast data and the service data are inconsistent, it indicates that a problem occurs when the service system synchronizes service data to a block chain, and at this time, uplink processing may be adjusted through the uplink policy, so as to ensure that data after uplink is consistent with data local to the service system, that is, the uplink policy may be a policy for adjusting uplink operation of the service system, such as adjusting an intelligent contract or adjusting a data preparation process before uplink. Correspondingly, the uplink adjustment information is related information that informs the service system how to perform adjustment when performing service data uplink.
Based on this, under the condition that it is determined that the broadcast data and the service data are inconsistent according to the check result, it is indicated that the inconsistency between the service data and the uplink data is a problem when the service data is synchronized to the block chain, at this time, a uplink strategy in a preset adjustment strategy can be selected, and then uplink adjustment information is generated according to the uplink strategy and sent to the service system, so that the service system can adjust uplink processing according to the uplink adjustment information, and it is ensured that uplink data is consistent with locally stored service data, thereby ensuring that the broadcast data in the block chain is consistent with the service data.
Following the above example, in the case that the data a is inconsistent with the data B, it is described that when the service system chains the data a, the data a is changed due to the intelligent contract of the block chain, and the data B broadcasted on the chain is not all of the data a, at this time, in order to ensure data consistency, the uplink adjustment policy may be selected to generate uplink adjustment information, and the uplink adjustment information is sent to the service system to notify the service system to update the intelligent contract, and then the service system performs uplink operation again, so as to ensure that the data a is consistent with the data B.
In summary, when the broadcast data and the service data are inconsistent, the cochain adjustment information is created by selecting the cochain strategy and is sent to the service system, so that the service system can make adjustment in time based on the cochain adjustment information, and the consistency of the data is ensured.
On the other hand, the specific implementation is as follows:
selecting a broadcasting strategy from preset adjusting strategies under the condition that the on-chain data is determined to be inconsistent with the broadcasting data according to the checking result;
and generating broadcast adjustment information according to the broadcast strategy, and sending the broadcast adjustment information to the block chain.
Specifically, the broadcast policy is an adjustment policy sent to the blockchain, and when data on the chain is inconsistent with the broadcast data, it indicates that a problem occurs in the blockchain during broadcasting the data, and at this time, the broadcast processing may be adjusted by the broadcast policy to ensure that data broadcasted between nodes on the chain is consistent with service data, that is, the broadcast policy may be a policy for adjusting a broadcast operation in the blockchain, such as rebroadcasting uplink data or completing data lost in the broadcast process. Correspondingly, the broadcast adjustment information is related information that tells the blockchain how to adjust the data broadcast.
Based on this, when it is determined that the uplink data and the broadcast data are inconsistent according to the check result, it is indicated that the inconsistency between the service data and the uplink data is a problem when the block chain broadcasts data, at this time, a broadcast policy in a preset adjustment policy may be selected, and then broadcast adjustment information is generated according to the broadcast policy and sent to the block chain, so that the block chain may adjust broadcast processing according to the broadcast adjustment information, and it is ensured that data that can be queried and stored by each node on the chain is consistent, thereby ensuring that the service data is consistent with the uplink data.
In the above example, when the data B is inconsistent with the data C, it is described that when the block chain broadcasts the data B on the chain, the data B broadcasted on the chain is incomplete due to the problem of network fluctuation, and at this time, in order to ensure data consistency, the broadcast policy may be selected to generate broadcast adjustment information, and the broadcast adjustment information is sent to the block chain, so as to inform each node in the block chain to rebroadcast the data B, and ensure that the data a, the data B, and the data C are consistent.
In summary, under the condition that the broadcast data is inconsistent with the data on the chain, the broadcast adjustment information is created by selecting the broadcast strategy and is sent to the block chain, so that the block chain can be adjusted in time based on the broadcast adjustment information, and the consistency of the data is ensured.
In addition, referring to fig. 5, in order to ensure that the checking system can interface with multiple service systems and multiple block chains, a bridging component may be inserted between the block chains and the service systems when the checking system is connected with the block chains and the service systems, so as to ensure that the checking system can access different block chains after accessing the bridging component, thereby ensuring that the data checking can be completed smoothly.
After the checking system obtains the data checking request, the data checking method based on the block chain may send a service data reading request to the service system according to the data checking request, send a link data reading request to the checking node in the block chain, then receive the service data returned by the service system and the link data returned by the checking node in the block chain, and check the service data and the link data, so as to accurately judge whether the data are consistent, thereby implementing the accurate consistency checking of the link data and the service data, and ensuring that the data broadcasted on the block chain is consistent with the data uplinked by the service system, thereby ensuring the rights and interests of all parties having a service relationship with the service system.
Corresponding to the above method embodiment, the present specification further provides an embodiment of a data checking system based on a block chain, and fig. 6 shows a schematic structural diagram of a data checking system based on a block chain provided in an embodiment of the present specification. As shown in fig. 6, the data collation system 600 based on block chain includes:
the system comprises a check system 610, a service system 620 and a blockchain 630, wherein the blockchain 630 comprises at least one check node 632 and at least one blockchain node 634;
the checking system 610 is configured to obtain a data checking request; sending a service data read request to the service system 620 according to the data check request, and sending an on-chain data read request to the check node 632 in the block chain;
the service system 620 is configured to extract service data according to the service data reading request, and return the service data to the checking system 610;
the collation node 632 is configured to extract the on-chain data according to the on-chain data read request and return the on-chain data to the collation system 610;
the reconciliation system 610 is further configured to receive the traffic data and the on-chain data; and checking the service data and the data on the chain, and using a checking result as a response of the data checking request.
In an alternative embodiment, the check node 632 in the blockchain 630 is determined by: selecting at least one blockchain node in the blockchain 630 as the check node 632, and issuing a check policy for the check node 632; the reconciliation node 632 performs the query and storage of the data on the chain according to the reconciliation policy.
In an optional embodiment, the checking system 610 is further configured to obtain the data checking request according to a preset time period; or receiving a data checking instruction uploaded by a service provider, and generating the data checking request according to the data checking instruction.
In an optional embodiment, the checking system 610 is further configured to parse the data checking request to obtain data checking information; generating the service data reading request and the on-chain data reading request based on the data checking information; the service data read request is sent to the service system 620 and the on-chain data read request is sent to the reconciliation node 632 in the blockchain 630.
In an optional embodiment, the checking system 610 is further configured to determine a data checking time and a data checking identifier included in the data checking information, and determine a service system identifier and a blockchain identifier according to the data checking identifier; and generating the service data reading request based on the data checking time and the service system identification, and generating the on-chain data reading request according to the data checking time and the block chain identification.
In an optional embodiment, the checking system 610 is further configured to send a broadcast data read request to the blockchain node 634 in case that the service data and the on-chain data are inconsistent;
the blockchain node 634 configured to extract broadcast data according to the broadcast data read request and return the broadcast data to the checking system 610;
the collating system 610 is further configured to collate the broadcast data, the service data, and the on-chain data to obtain collating information, and generate the collating result as a response to the data collating request based on the collating information.
In an optional embodiment, the checking system 610 is further configured to select a ul policy from preset adjustment policies in case that it is determined according to the checking result that the broadcast data and the service data are inconsistent; and generating uplink adjustment information according to the uplink policy, and sending the uplink adjustment information to the service system 620.
In an optional embodiment, the checking system 610 is further configured to select a broadcast policy from preset adjustment policies in case that it is determined that the on-chain data and the broadcast data are inconsistent according to the checking result; and generating broadcast adjustment information according to the broadcast policy, and sending the broadcast adjustment information to the block link node 632.
In the data checking system based on the block chain provided in this embodiment, after the checking system obtains the data checking request, the service data reading request may be sent to the service system according to the data checking request, and the uplink data reading request may be sent to the checking node in the block chain, and then the service data returned by the service system and the uplink data returned by the checking node in the block chain are received, and whether the data are consistent or not may be accurately determined by checking the service data and the uplink data, so that the consistency between the data on the link and the service data is accurately checked, and the data broadcast on the block chain and the uplink data of the service system are ensured to be consistent, thereby ensuring the rights and interests of the parties having a service relationship with the service system.
The above is an illustrative scheme of the data checking system based on the block chain according to this embodiment. It should be noted that the technical solution of the data checking system based on a block chain belongs to the same concept as the technical solution of the data checking method based on a block chain, and details of the technical solution of the data checking system based on a block chain, which are not described in detail, can be referred to the description of the technical solution of the data checking method based on a block chain.
The following describes the block chain-based data verification system further by taking an application of the block chain-based data verification system provided in this specification in a data verification scenario as an example, with reference to fig. 7. Fig. 7 shows a processing flow chart of a data collation system based on a block chain in a data collation scenario, which is provided in an embodiment of the present specification, and specifically includes the following steps:
in step S702, the collation system receives a data collation request.
Step S704, the checking system creates a service data reading request and an on-chain data reading request according to the data checking request.
Specifically, the checking system determines the data checking time and the data checking identifier included in the data checking request, and determines the service system identifier and the block chain identifier according to the data checking identifier, at this time, a service data reading request is created based on the data checking time and the service system identifier, and a data acquisition request on the chain is created based on the data checking time and the block chain identifier.
Step S706, the checking system sends the service data reading request to the service system, and sends the data reading request on the chain to the checking node in the block chain.
Step S708, the service system reads the service data according to the service data reading request, and sends the service data to the checking system.
Step S710, the checking node reads the data on the link according to the data reading request on the link, and sends the data on the link to the checking system.
Step S712, the checking system receives the service data and the data on the link, and checks the data on the link and the service data.
Specifically, after the checking system receives the service data, the service data is written into the service system database, the link data returned by the checking node is written into the checking system database, and then the data contained in the two databases are checked.
Under the condition that the service data is inconsistent with the link data, the broadcast data in the block chain can be acquired at the moment, then the broadcast data, the link data and the service data are checked to obtain checking information, and at the moment, a checking result can be generated according to the checking information and feedback can be carried out according to the data checking request.
Further, when the broadcast data is inconsistent with the data on the chain, it is determined that a problem occurs in the blockchain during the broadcast of the data, and then adjustment information of rebroadcast data can be returned to the node in the blockchain, so as to ensure that the data is consistent.
Furthermore, when the broadcast data and the service data are inconsistent, it is determined that a problem occurs during uplink of the service system, and then intelligent contract update information or re-uplink information may be returned to the service system to ensure data consistency.
In step S714, the collation result is used as a response to the data collation request.
The block chain-based data checking system provided in this specification, after the checking system obtains the data checking request, may send a service data reading request to the service system according to the data checking request, and send a link data reading request to the checking node in the block chain, then receive the service data returned by the service system and the link data returned by the checking node in the block chain, and check the service data and the link data, so as to accurately determine whether the data is consistent, thereby implementing accurate checking of consistency between the link data and the service data, and ensuring that the data broadcast on the block chain is consistent with the data on the service system, thereby ensuring rights and interests of parties having a service relationship with the service system.
Fig. 8 illustrates a block diagram of a computing device 800 provided in accordance with an embodiment of the present description. The components of the computing device 800 include, but are not limited to, memory 810 and a processor 820. The processor 820 is coupled to the memory 810 via a bus 830, and the database 850 is used to store data.
Computing device 800 also includes access device 840, access device 840 enabling computing device 800 to communicate via one or more networks 860. Examples of such networks include the 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. Access device 840 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 IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide 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 so forth.
In one embodiment of the present description, the above-described components of computing device 800, as well as other components not shown in FIG. 8, may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 8 is for purposes of example only and is not limiting as to the scope of the description. Other components may be added or replaced as desired by those skilled in the art.
Computing device 800 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 800 may also be a mobile or stationary server.
Wherein, the processor 820 is configured to execute the following computer-executable instructions:
acquiring a data checking request;
sending a service data reading request to a service system according to the data checking request, and sending an on-chain data reading request to a checking node in a block chain;
receiving the service data returned by the service system aiming at the service data reading request and the chain data returned by the check node aiming at the chain data reading request;
and checking the service data and the data on the chain, and using a checking result as a response of the data checking request.
The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the above data checking method based on a block chain belong to the same concept, and details of the technical solution of the computing device, which are not described in detail, can be referred to the description of the technical solution of the above data checking method based on a block chain.
An embodiment of the present specification also provides a computer readable storage medium storing computer instructions that, when executed by a processor, are configured to:
acquiring a data checking request;
sending a service data reading request to a service system according to the data checking request, and sending a chained data reading request to a checking node in a block chain;
receiving the service data returned by the service system aiming at the service data reading request and the chain data returned by the check node aiming at the chain data reading request;
and checking the service data and the data on the chain, and using a checking result as a response of the data checking request.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the above data checking method based on the block chain, and for details that are not described in detail in the technical solution of the storage medium, reference may be made to the description of the technical solution of the above data checking method based on the block chain.
The foregoing description of specific embodiments has been presented for purposes of illustration and description. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in source code form, object code form, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U.S. disk, removable hard disk, magnetic diskette, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signal, telecommunications signal, and software distribution medium, etc. It should be noted that the computer-readable medium may contain suitable additions or subtractions depending on the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer-readable media may not include electrical carrier signals or telecommunication signals in accordance with legislation and patent practice.
It should be noted that, for the sake of simplicity, the foregoing method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present disclosure is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present disclosure. Further, those skilled in the art should also appreciate that the embodiments described in this specification are preferred embodiments and that acts and modules referred to are not necessarily required for this description.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
The preferred embodiments of the present specification disclosed above are intended only to aid in the description of the specification. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the specification and its practical application, to thereby enable others skilled in the art to best understand the specification and utilize the specification. The specification is limited only by the claims and their full scope and equivalents.
Claims (14)
1. A data checking method based on a block chain is applied to a checking system, wherein the checking system is independent of a service system and a checking node, and comprises the following steps:
acquiring a data checking request;
sending a service data reading request to at least two service systems according to the data checking request, and sending a data reading request on a chain different from the service data reading request to the checking node in at least two block chains;
receiving the service data returned by the service system aiming at the service data reading request and the on-chain data returned by the check node aiming at the on-chain data reading request;
and checking the service data and the data on the chain, and using a checking result as a response of the data checking request.
2. The blockchain-based data collation method according to claim 1, wherein a collation node in the blockchain is determined by:
selecting at least one block chain node in the block chain as the check node, and issuing a check strategy aiming at the check node; and the checking node inquires and stores the data on the chain according to the checking strategy.
3. The blockchain-based data collation method according to claim 1, wherein the acquiring of the data collation request includes:
acquiring the data checking request according to a preset time period; or
And receiving a data checking instruction uploaded by a service provider, and generating the data checking request according to the data checking instruction.
4. The blockchain-based data collating method according to claim 1, said sending a service data read request to at least two service systems according to the data collating request, and sending an on-chain data read request identical to or different from the service data read request to collating nodes in at least two blockchains, includes:
analyzing the data checking request to obtain data checking information;
generating the service data reading request and the on-chain data reading request based on the data checking information;
and sending the service data reading request to the service system, and sending the on-chain data reading request to the check node in the block chain.
5. The blockchain-based data collation method according to claim 4, wherein the generating the service data read request and the on-chain data read request based on the data collation information includes:
determining data checking time and data checking identification contained in the data checking information, and determining a service system identification and a block chain identification according to the data checking identification;
and generating the service data reading request based on the data checking time and the service system identification, and generating the on-chain data reading request according to the data checking time and the block chain identification.
6. The blockchain-based data collation method according to claim 1, said making a collation result as a response to said data collation request, including:
acquiring broadcast data in the block chain under the condition that the service data is inconsistent with the data on the chain;
and checking the broadcast data, the service data and the data on the link to obtain checking information, and generating the checking result as a response of the data checking request based on the checking information.
7. The method for checking block chain-based data according to claim 6, wherein after the step of checking the traffic data and the on-chain data and responding to the data checking request, the method further comprises:
selecting an uplink strategy from preset adjustment strategies under the condition that the broadcast data is determined to be inconsistent with the service data according to the check result;
and generating uplink adjustment information according to the uplink strategy, and sending the uplink adjustment information to the service system.
8. The method for collating block chain-based data according to claim 6, after said collating said service data and said on-chain data and performing a collating result as a response to said data collating request, further comprising:
selecting a broadcasting strategy from preset adjusting strategies under the condition that the on-chain data is determined to be inconsistent with the broadcasting data according to the check result;
and generating broadcast adjustment information according to the broadcast strategy, and sending the broadcast adjustment information to the block chain.
9. A blockchain-based data collation system comprising:
the system comprises a checking system, a service system and a block chain, wherein the block chain comprises at least one checking node and at least one block chain node;
the checking system is configured to obtain a data checking request; sending a service data reading request to at least two service systems according to the data checking request, and sending a chain data reading request different from the service data reading request to the checking node in at least two block chains, wherein the checking system is independent of the service systems and the checking node; the business system is configured to extract business data according to the business data reading request and return the business data to the checking system;
the checking node is configured to extract the on-chain data according to the on-chain data reading request and return the on-chain data to the checking system;
the reconciliation system is further configured to receive the traffic data and the on-chain data; and checking the service data and the data on the chain, and using a checking result as a response of the data checking request.
10. The blockchain-based data collation system according to claim 9, said collation system being further configured to send a broadcast data read request to the blockchain nexus in the event that the traffic data and the on-chain data are inconsistent;
the block chain node is configured to extract broadcast data according to the broadcast data reading request and return the broadcast data to the checking system;
the collating system is further configured to collate the broadcast data, the service data, and the on-chain data to obtain collating information, and generate the collating result as a response to the data collating request based on the collating information.
11. The system for checking blockchain-based data according to claim 10, wherein the checking system is further configured to select a ul policy from preset adjustment policies if it is determined that the broadcast data and the service data are inconsistent according to the checking result; and generating uplink adjustment information according to the uplink strategy, and sending the uplink adjustment information to the service system.
12. The blockchain-based data collation system according to claim 10, said collation system being further configured to select a broadcast policy among preset adjustment policies in a case where it is determined from the collation result that the on-chain data and the broadcast data are inconsistent; and generating broadcast adjustment information according to the broadcast strategy, and sending the broadcast adjustment information to the block chain node.
13. A computing device, comprising:
a memory and a processor;
the memory is configured to store computer-executable instructions, and the processor is configured to execute the computer-executable instructions to implement the method of:
acquiring a data checking request;
sending a service data reading request to at least two service systems according to the data checking request, and sending a data reading request on a chain which is the same as or different from the service data reading request to checking nodes in at least two block chains;
receiving the service data returned by the service system aiming at the service data reading request and the chain data returned by the check node aiming at the chain data reading request;
and checking the service data and the data on the chain, and using a checking result as a response of the data checking request.
14. A computer readable storage medium storing computer instructions which, when executed by a processor, carry out the steps of the method of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110544443.7A CN113239056B (en) | 2021-05-19 | 2021-05-19 | Data checking method and system based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110544443.7A CN113239056B (en) | 2021-05-19 | 2021-05-19 | Data checking method and system based on block chain |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113239056A CN113239056A (en) | 2021-08-10 |
CN113239056B true CN113239056B (en) | 2022-10-04 |
Family
ID=77137630
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110544443.7A Active CN113239056B (en) | 2021-05-19 | 2021-05-19 | Data checking method and system based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113239056B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113626524A (en) * | 2021-08-12 | 2021-11-09 | 浙江网商银行股份有限公司 | Data processing method and device and data checking system |
CN115102759B (en) * | 2022-06-21 | 2023-09-12 | 南京质子链科技有限公司 | Interface backtracking system based on block chain |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110389985A (en) * | 2019-06-18 | 2019-10-29 | 深圳壹账通智能科技有限公司 | Verification of data method, apparatus, computer equipment and storage medium |
KR20210040569A (en) * | 2019-10-04 | 2021-04-14 | 삼성에스디에스 주식회사 | Blockchain based data management system and method thereof |
CN111209600A (en) * | 2019-12-31 | 2020-05-29 | 阿尔法云计算(深圳)有限公司 | Block chain-based data processing method and related product |
CN112380269B (en) * | 2020-10-28 | 2022-03-22 | 杭州链城数字科技有限公司 | Identity card information inquiry and evidence fixing and obtaining method based on block chain |
-
2021
- 2021-05-19 CN CN202110544443.7A patent/CN113239056B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113239056A (en) | 2021-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2019302940B2 (en) | Implementing a blockchain-based web service | |
CN113239056B (en) | Data checking method and system based on block chain | |
CN104660635B (en) | Message synchronization method, device and system | |
CN112348514A (en) | Block chain-based data checking system, method, computing device and storage medium | |
CN111628886B (en) | Method, device and computer equipment for building blockchain network in private cloud environment | |
CN111950019A (en) | Block chain-based Internet of things access control system and method | |
CN112364049B (en) | Data synchronization script generation method, system, terminal and storage medium | |
CN108710681A (en) | File acquisition method, device, equipment and storage medium | |
US20230259938A1 (en) | Blockchain-based data processing method and apparatus, device, readable storage medium and computer program product | |
CN114172662A (en) | Block chain external data acquisition method and device | |
CN112989422B (en) | Block chain system assembling method, device, electronic equipment and storage medium | |
US20240163119A1 (en) | Device management method, system, and apparatus | |
CN115510163A (en) | Mirror image file synchronization method and device, storage medium and electronic equipment | |
CN113190616B (en) | Block chain reconciliation system and method, computer device and readable storage medium | |
CN113297168B (en) | Data migration method and device in distributed system | |
CN113297229B (en) | Method for routing read request and feedback message, respective device and database | |
CN111241200A (en) | sSQLite database-based main and standby synchronous processing method and device | |
CN112422566B (en) | Remote call processing method and device, storage medium and electronic device | |
CN110324373B (en) | File sharing method and device and file synchronization system | |
CN115563067A (en) | API request data sharing method and device, electronic equipment and storage medium | |
CN113239297A (en) | Message pushing method, system and storage medium | |
CN107528797B (en) | Data processing method, device and system | |
KR102249697B1 (en) | System and method for communicating using content delivery network and edge computing in a complex network environment | |
JP2020027952A (en) | Message information management system, message information management method, message information management device and message information management program | |
CN113852919B (en) | Method and device for generating early warning message, storage medium and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |