Data processing method and device, data checking system

By introducing corresponding modules into the blockchain data service, analyzing and verifying the on-chain data on the blockchain, the blockchain data verification problem in the existing technology is solved, and efficient and secure data verification is achieved.

CN113626524BActive Publication Date: 2025-02-28ZHEJIANG E COMMERCE BANK CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110923738.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-12
Publication Date
2025-02-28
Estimated Expiration
2041-08-12

AI Technical Summary

Technical Problem

In blockchain technology, it is difficult for the existing technology to effectively check the on-chain data stored on the blockchain and the source data stored on the processing platform, which makes it difficult to guarantee data security and correctness, and the probability of data risk occurring is high.

Method used

By introducing data-winding response analysis module, on-chain data query module and on-chain data storage module into the data service, the data-winding response synchronized by the processing platform is analyzed, the data storage type and query parameters are obtained, the blockchain data query interface is called to obtain on-chain data, and it is checked with the source data.

Benefits of technology

It realizes effective verification of the on-chain data stored on the blockchain and the source data stored on the processing platform, improves the security and correctness of the data, and reduces the probability of data risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113626524B_ABST
    Figure CN113626524B_ABST
Patent Text Reader

Abstract

The embodiments of this specification provide a data processing method and device, and a data verification system, wherein a data processing method is applied to a data service accessing a blockchain node, comprising: parsing a data on-chain response synchronized by a processing platform to obtain a data storage type and corresponding data query parameters; based on the data storage type and the corresponding data query parameters, calling a data query interface to perform a data query on the blockchain, and obtaining the on-chain data returned by the data query interface; storing the on-chain data to perform a verification process on the on-chain data with the source data stored by the processing platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document relates to the field of data processing technology, and in particular to a data processing method and device, and a data verification system. Background Art

[0002] Blockchain is a decentralized distributed ledger that stores data in blocks and connects them in chronological order to form a chain structure. Cryptography is used to ensure that it cannot be tampered with, cannot be forged, and has secure data transmission and access. Blockchain technology is decentralized, each computing node can participate in data recording, and each computing node can quickly synchronize data, making it widely used in many fields. Summary of the invention

[0003] One or more embodiments of this specification provide a data processing method, which is applied to data services accessing blockchain nodes, including: parsing the data on-chain response synchronized by the processing platform to obtain the data storage type and the corresponding data query parameters. Based on the data storage type and the corresponding data query parameters, calling the data query interface to query the data on the blockchain, and obtaining the on-chain data returned by the data query interface. The on-chain data is stored to perform a verification process on the on-chain data and the source data stored by the processing platform.

[0004] One or more embodiments of this specification provide a data processing device, including: a data on-chain response parsing module, configured to parse the data on-chain response synchronized by the processing platform, and obtain the data storage type and the corresponding data query parameters. The on-chain data query module is configured to call the data query interface to perform data query on the blockchain based on the data storage type and the corresponding data query parameters, and obtain the on-chain data returned by the data query interface. The on-chain data storage module is configured to store the on-chain data to perform verification processing on the on-chain data and the source data stored by the processing platform.

[0005] One or more embodiments of this specification provide a data verification system, including: a processing platform and a data service connected to a blockchain node, and a data verification platform. The processing platform is used to submit source data to the blockchain node and synchronize the data on-chain response of the source data to the data service. The data service is used to parse the data on-chain response, and based on the data storage type obtained by the parsing and the corresponding data query parameters, call the data query interface to query the data on the blockchain, obtain the on-chain data returned by the data query interface and store it. The data verification platform is used to perform verification processing on the on-chain data with the source data stored by the processing platform.

[0006] One or more embodiments of the present specification provide a data processing device, including: a processor; and a memory configured to store computer executable instructions, wherein when the computer executable instructions are executed, the processor: parses the data on-chain response synchronized by the processing platform to obtain the data storage type and the corresponding data query parameters. Based on the data storage type and the corresponding data query parameters, a data query interface is called to perform data query on the blockchain, and the on-chain data returned by the data query interface is obtained. The on-chain data is stored to perform verification processing on the on-chain data and the source data stored by the processing platform.

[0007] One or more embodiments of this specification provide a storage medium for storing computer executable instructions, which implement the following process when executed: parse the data on-chain response synchronized by the processing platform to obtain the data storage type and the corresponding data query parameters. Based on the data storage type and the corresponding data query parameters, call the data query interface to query the data on the blockchain, and obtain the on-chain data returned by the data query interface. Store the on-chain data to perform verification processing on the on-chain data and the source data stored by the processing platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] In order to more clearly illustrate one or more embodiments of the present specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present specification. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.

[0009] Figure 1 A data processing method processing flow chart provided for one or more embodiments of this specification;

[0010] Figure 2 A processing flow chart of a data processing method applied to a data verification scenario provided by one or more embodiments of this specification;

[0011] Figure 3 A schematic diagram of a data processing device provided for one or more embodiments of this specification;

[0012] Figure 4 A schematic diagram of a data verification system provided for one or more embodiments of this specification;

[0013] Figure 5 A schematic diagram of the structure of a data processing device provided for one or more embodiments of this specification. DETAILED DESCRIPTION

[0014] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below in conjunction with the drawings in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.

[0015] This specification provides a data processing method embodiment:

[0016] Reference Figure 1 , which shows a data processing method processing flow chart provided by this embodiment, referring to Figure 2 , which shows a processing flow chart of a data processing method applied to a data verification scenario provided by this embodiment.

[0017] Reference Figure 1 The data processing method provided in this embodiment is applied to data services accessing blockchain nodes, and specifically includes steps S102 to S106.

[0018] Step S102, parse the data uplink response synchronized by the processing platform to obtain the data storage type and corresponding data query parameters.

[0019] The data processing method provided in this embodiment cooperates with the data service and the processing platform, the data verification platform and the connected blockchain node. After the blockchain node completes the on-chain processing of the source data of the processing platform, the data service parses the data on-chain response synchronized by the processing platform to obtain the corresponding data on-chain parameters, and uses the parsed data on-chain parameters as input parameters to call the data query interface provided by the blockchain to query the data on the blockchain, and stores the on-chain data returned by the data query interface in the offline database. Finally, the data verification platform verifies the on-chain data stored in the offline database with the source data stored in the database of the processing platform, thereby realizing the verification of the on-chain data with the source data stored offline, improving the security and correctness of the on-chain data stored on the blockchain, and reducing the probability of data risks.

[0020] In specific implementation, before synchronizing the data on-chain response, the processing platform initiates data on-chain to the blockchain node connected to the blockchain. Specifically, during the data on-chain process, the processing platform submits the source data to be on-chain to the blockchain node in the form of a data on-chain request. After receiving the source data contained in the data on-chain request, the blockchain node performs on-chain processing on the source data. Here, the data stored on the blockchain after the source data is processed on-chain is referred to as on-chain data. In addition, the processing platform stores the source data in the database for subsequent verification of the on-chain data obtained by querying the blockchain with the source data in the database.

[0021] Optionally, the blockchain node accessed by the processing platform in the blockchain is the same blockchain node as the blockchain node accessed by the data service in the blockchain, and the on-chain data is generated and stored in the blockchain after being processed by the blockchain node based on the data on-chain request submitted by the processing platform.

[0022] The data on-chain response described in this embodiment refers to the processing response obtained after the source data is processed on the chain, and the data on-chain response contains the type identifier of the data storage type and the data query parameter. Optionally, the data on-chain response is returned to the processing platform by the blockchain node after the data on-chain request submitted by the processing platform is processed on the chain, and is synchronized to the data service by the processing platform; or, the data on-chain response is generated after the processing platform cooperates with the blockchain node to query the data on the chain, and is synchronized to the data service.

[0023] The data storage type refers to the type of on-chain storage of source data or the type of processing during the on-chain storage process, such as hashing the source data and then storing the encrypted hash field on the blockchain; or calling a smart contract deployed on a blockchain node to process the source data and then storing the processed data on the blockchain.

[0024] The data query parameters are used to query parameters of on-chain data on the blockchain or parameters related to on-chain data query, such as hash fields used to query on-chain data on the blockchain.

[0025] Optionally, the data storage type includes at least one of the following: a storage type and a contract type; wherein the storage type refers to a storage method in which source data is stored on the blockchain after data encryption, and the data query parameter corresponding to the storage type includes a hash field;

[0026] The contract type refers to the process in which source data is processed by calling a smart contract deployed on a blockchain node and then stored on the chain. The data query parameters corresponding to the contract type include a smart contract identifier, a method identifier of a smart contract calling method, and / or method execution parameters.

[0027] In specific implementation, the processing platform synchronizes the data on-chain response to the data service. After obtaining the data on-chain response synchronized by the processing platform, the data on-chain response is parsed. Specifically, during the parsing process, the type identifier of the data storage type and the data query parameters contained in the data on-chain response are extracted. The data storage type to which the obtained type identifier belongs is the data storage type in the process of chain storage of the source data. The obtained data query parameters are the data query parameters required for querying data of the data storage type on the blockchain, that is, the data query parameters corresponding to the data storage type.

[0028] Step S104: Based on the data storage type and the corresponding data query parameters, a data query interface is called to perform data query on the blockchain, and the on-chain data returned by the data query interface is obtained.

[0029] After the above steps parse the data on-chain response and obtain the data storage type and the corresponding data query parameters, in this step, the data storage type and the corresponding data query parameters obtained by the above analysis are used as input parameters, the data query interface provided by the blockchain is called to perform data query, and the on-chain data returned by the data query interface is obtained. The on-chain data mentioned here is the data stored on the blockchain after the source data is processed on the chain.

[0030] As described above, the data storage type described in this embodiment includes the evidence type and the contract type. The following takes these two data storage types as examples to specifically explain the process of calling the data query interface to perform data query on the blockchain, as well as the query processing process executed by the blockchain node in response to the query call.

[0031] If the data storage type is the evidence type, in the process of calling the data query interface for data query, optionally, the type identifier of the evidence type and the hash field are passed into the data query interface, and the on-chain data returned by the data query interface is received.

[0032] Accordingly, the blockchain node in the blockchain performs a query processing operation for the query call of the data service for the data query interface. Optionally, the query processing operation is implemented in the following manner:

[0033] According to the type identifier of the evidence type and the hash field passed in by the data query interface, query the blockchain for the initial data corresponding to the hash field as the on-chain data;

[0034] The on-chain data is returned to the data service through the data query interface.

[0035] If the data storage type is the contract type, in the process of calling the data query interface for data query, optionally, the type identifier of the contract type and the smart contract identifier, the method identifier and / or method execution parameters of the smart contract calling method are passed into the data query interface, and the on-chain data returned by the data query interface is received.

[0036] Accordingly, the blockchain node in the blockchain performs a query processing operation for the query call of the data service for the data query interface. Optionally, the query processing operation is implemented in the following manner:

[0037] Call and execute the smart contract according to the type identifier of the contract type passed in by the data query interface, the smart contract identifier, the method identifier and / or the method execution parameters;

[0038] Based on the smart contract execution result, the final state data stored on the blockchain is queried as the on-chain data, and returned to the data service through the data query interface.

[0039] The initial data includes encrypted data processed by encryption methods such as encryption algorithms. Compared with the source data, the encrypted data has changed from an unencrypted state to an encrypted state, but its data type or data essence has not changed. For example, the blockchain node encrypts the transaction data submitted by the processing platform to the blockchain node using a hash algorithm, and then uploads the encrypted data to the blockchain for storage. Here, compared with the transaction data, the encrypted data has changed in data form, but the data essence has not changed, and both represent transaction-related data.

[0040] In addition, the initial data also includes the source data itself and the data obtained after data processing using other data processing methods that do not change the essence of the data, such as data compression, data encoding and other data processing methods.

[0041] The final state data includes data obtained after the blockchain node calls the smart contract for processing according to the source data submitted by the processing platform. Compared with the initial state data, the final state data undergoes corresponding data processing during the on-chain processing of the blockchain node, and not only the data form but also the data essence changes.

[0042] For example, the processing platform submits transaction data to the blockchain node. After receiving the transaction data, the blockchain node calls the deployed smart contract to calculate the credit points for the transaction data, obtains the credit points corresponding to the transaction data, and then uploads the calculated credit points to the blockchain for storage. Here, the credit points have changed not only in data form but also in essence from transaction-related data to credit-related data.

[0043] Step S106, storing the on-chain data to perform verification processing on the on-chain data and the source data stored in the processing platform.

[0044] After receiving the on-chain data returned by the data query interface, the on-chain data is stored for verification and processing with the source data stored by the processing platform. Storing the on-chain data specifically includes storing the on-chain data in an offline database, thereby realizing verification and processing of the on-chain data and the source data in an offline environment.

[0045] Specifically, during the verification process, optionally, the verification process of the on-chain data and the source data is performed by a data verification platform; wherein, after the data verification platform detects that the on-chain data is stored in the offline database, the verification process is performed based on the on-chain data stored in the offline database and the source data stored in the database.

[0046] Optionally, if the verification result obtained after the verification process is that the on-chain data is consistent with the source data, the on-chain data stored in the offline database is deleted; if the verification result obtained after the verification process is that the on-chain data is inconsistent with the source data, an alarm notification is generated.

[0047] In addition, the data service can also perform verification processing on the on-chain data and the source data. Specifically, after detecting that the on-chain data is stored in the offline database, verification processing is performed based on the on-chain data stored in the offline database and the source data stored in the database.

[0048] In this embodiment, an optional implementation method for batch exporting and verifying data from the blockchain is also provided to improve the efficiency of data verification. At the same time, the implementation method of batch export and data verification is a supplement to the data verification implementation provided above, and can verify the on-chain data stored on the blockchain and the source data stored on the processing platform from an overall perspective, so as to further improve the integrity and accuracy of data verification.

[0049] Specifically, after receiving the batch verification request from the processing platform, the data export service exports the on-chain data set corresponding to the batch verification request from the blockchain through the data export service, and stores the on-chain data set in the offline database; and the data verification platform verifies the initial data contained in the on-chain data set with the source data stored by the processing platform.

[0050] The following uses the application of a data processing method provided by this embodiment in a dinner scene as an example to further illustrate the data processing method provided by this embodiment. Figure 2 , a data processing method applied to a data verification scenario, specifically includes steps S202 to S210.

[0051] Step S202, obtaining the data on-chain response synchronized by the processing platform and the connected blockchain node after the source data is processed on-chain.

[0052] Step S204, parse the data uplink response to obtain the data storage type and corresponding data query parameters.

[0053] Step S206, if the data storage type is a notarization type, the type identifier and hash field of the notarization type are passed into the data query interface, and the on-chain data returned by the data query interface is received.

[0054] Correspondingly, after the blockchain node receives the query call from the data service for the data query interface, it queries the initial data corresponding to the hash field on the blockchain as on-chain data based on the type identifier and hash field of the passed-in evidence type and returns it through the data service.

[0055] Step S208: If the data storage type is a contract type, the type identifier of the contract type, the smart contract identifier, the method identifier of the smart contract calling method and / or the method execution parameters are passed into the data query interface, and the on-chain data returned by the data query interface is received.

[0056] Correspondingly, after the blockchain node receives the query call of the data service for the data query interface, it calls and executes the smart contract according to the type identifier of the contract type and the smart contract identifier, method identifier and / or method execution parameters passed in, and queries the final state data stored on the blockchain based on the smart contract execution result as on-chain data and returns it through the data query interface.

[0057] Step S210, store the on-chain data in the offline database, so that the data verification platform verifies the on-chain data stored in the offline database and the source data stored in the database of the processing platform.

[0058] An embodiment of a data processing device provided in this specification is as follows:

[0059] In the above-mentioned embodiment, a data processing method is provided, and correspondingly, a data processing device is also provided, which will be described below with reference to the accompanying drawings.

[0060] Reference Figure 3 , which shows a schematic diagram of a data processing device provided by this embodiment.

[0061] Since the device embodiment corresponds to the method embodiment, the description is relatively simple, and the relevant parts can refer to the corresponding description of the method embodiment provided above. The device embodiment described below is only illustrative.

[0062] This embodiment provides a data processing device, which runs on a data service connected to a blockchain node, including:

[0063] The data uplink response parsing module 302 is configured to parse the data uplink response synchronized by the processing platform to obtain the data storage type and the corresponding data query parameters;

[0064] The on-chain data query module 304 is configured to call the data query interface to perform data query on the blockchain based on the data storage type and the corresponding data query parameters, and obtain the on-chain data returned by the data query interface;

[0065] The on-chain data storage module 306 is configured to store the on-chain data so as to perform verification processing on the on-chain data with the source data stored in the processing platform.

[0066] An embodiment of a data verification system provided in this specification is as follows:

[0067] Reference Figure 4 , which shows a schematic diagram of a data verification system provided by this embodiment.

[0068] This embodiment provides a data verification system, including:

[0069] Processing platform 401 and data service 402 connected to blockchain nodes, as well as data verification platform 403;

[0070] The processing platform 401 is used to submit source data to the blockchain node and synchronize the data on-chain response of the source data to the data service 402;

[0071] The data service 402 is used to parse the data on-chain response, call the data query interface to query data on the blockchain based on the data storage type and corresponding data query parameters obtained by the analysis, and obtain and store the on-chain data returned by the data query interface;

[0072] The data verification platform 403 is used to verify the on-chain data with the source data stored in the processing platform 401.

[0073] It should be noted that, before synchronizing the data on-chain response, the processing platform 401 initiates data on-chain to the blockchain node connected to the blockchain. Specifically, during the data on-chain process, the processing platform 401 submits the source data to be on-chain to the blockchain node in the form of a data on-chain request. After receiving the source data contained in the data on-chain request, the blockchain node performs on-chain processing on the source data. Here, the data stored on the blockchain after the source data is processed on-chain is referred to as on-chain data. In addition, the processing platform 401 stores the source data in the database for subsequent verification of the on-chain data obtained by querying the blockchain with the source data in the database.

[0074] Optionally, the blockchain node accessed by the processing platform 401 in the blockchain is the same blockchain node as the blockchain node accessed by the data service 402 in the blockchain, and the on-chain data is generated and stored in the blockchain after being processed by the blockchain node according to the data on-chain request submitted by the processing platform 401.

[0075] The data on-chain response described in this embodiment refers to the processing response obtained after the source data is processed on the chain, and the data on-chain response contains the type identifier of the data storage type and the data query parameter. Optionally, the data on-chain response is returned to the processing platform 401 by the blockchain node after the data on-chain request submitted by the processing platform 401 is processed on the chain, and is synchronized to the data service 402 by the processing platform 401; or, the data on-chain response is generated after the processing platform 401 cooperates with the blockchain node to query the data on the chain, and is synchronized to the data service 402.

[0076] The data storage type refers to the type of on-chain storage of source data or the type of processing during on-chain storage, such as hashing the source data and then storing the encrypted hash field on the blockchain; or calling the smart contract deployed by the blockchain node to process the source data and then storing the processed data on the blockchain. The data query parameter refers to the parameters used to query on-chain data on the blockchain or parameters related to on-chain data query, such as the hash field used to query on-chain data on the blockchain.

[0077] Optionally, the data storage type includes at least one of the following: an evidence type and a contract type; wherein the evidence type refers to a storage method in which source data is stored on the blockchain after data encryption, and the data query parameters corresponding to the evidence type include a hash field; the contract type refers to a process in which source data is stored on the chain after being processed by calling a smart contract deployed on a blockchain node during chain storage, and the data query parameters corresponding to the contract type include a smart contract identifier, a method identifier of a smart contract calling method, and / or method execution parameters.

[0078] During the operation of the system, the processing platform 401 synchronizes the data on-chain response to the data service 402. After obtaining the data on-chain response synchronized by the processing platform 401, the data on-chain response is parsed. Specifically, during the parsing process, the type identifier of the data storage type and the data query parameters contained in the data on-chain response are extracted. The data storage type to which the obtained type identifier belongs is the data storage type in the process of chain storage of the source data. The obtained data query parameters are the data query parameters required for querying data of the data storage type on the blockchain, that is, the data query parameters corresponding to the data storage type.

[0079] As described above, the data storage type described in this embodiment includes the evidence type and the contract type. The following takes these two data storage types as examples to specifically explain the process of calling the data query interface to perform data query on the blockchain, as well as the query processing process executed by the blockchain node in response to the query call.

[0080] If the data storage type is the evidence type, in the process of calling the data query interface for data query, optionally, the type identifier of the evidence type and the hash field are passed into the data query interface, and the on-chain data returned by the data query interface is received. Correspondingly, the blockchain node in the blockchain performs a query processing operation for the query call of the data query interface by the data service 402. Optionally, the query processing operation is implemented in the following manner: according to the type identifier of the evidence type and the hash field passed in by the data query interface, the initial state data corresponding to the hash field is queried on the blockchain as the on-chain data; and the on-chain data is returned to the data service 402 through the data query interface.

[0081] If the data storage type is the contract type, in the process of calling the data query interface for data query, optionally, the type identifier of the contract type and the smart contract identifier, the method identifier and / or method execution parameters of the smart contract calling method are passed into the data query interface, and the on-chain data returned by the data query interface is received. Correspondingly, the blockchain node in the blockchain performs a query processing operation for the query call of the data service 402 for the data query interface. Optionally, the query processing operation is implemented in the following manner: calling and executing the smart contract according to the type identifier of the contract type and the smart contract identifier, the method identifier and / or the method execution parameters passed in by the data query interface; querying the final state data stored on the blockchain as the on-chain data based on the smart contract execution result, and returning it to the data service 402 through the data query interface.

[0082] Among them, the initial state data includes encrypted data processed by encryption means such as encryption algorithms. Although the data form of the encrypted data changes from an unencrypted state to an encrypted state relative to the source data, its data type or data essence does not change. For example, the transaction data submitted by the processing platform 401 to the blockchain node, after the blockchain node uses a hash algorithm to encrypt the transaction data, the encrypted data is uploaded to the blockchain for storage. Here, the encrypted data is relative to the transaction data, although the data form changes, the data essence does not change, and both represent transaction-related data. In addition, the initial state data also includes the source data itself and the data obtained after data processing by other data processing means that do not change the essence of the data, such as data obtained by data compression, data encoding and other data processing means.

[0083] The final data includes data obtained after the blockchain node calls the smart contract for processing according to the source data submitted by the processing platform 401. Compared with the initial data, the final data undergoes corresponding data processing during the process of the blockchain node on-chain processing, and not only the data form changes, but also the data essence changes. For example, the transaction data submitted by the processing platform 401 to the blockchain node, after receiving the transaction data, the blockchain node calls the deployed smart contract to calculate the credit points for the transaction data, obtains the credit points corresponding to the transaction data, and then uploads the calculated credit points to the blockchain for storage. Here, the credit points are relative to the transaction data, not only the data form changes, but also the data essence changes from transaction-related data to credit-related data.

[0084] Specifically, during the verification process performed by the data verification platform 403, after the data verification platform 403 detects that the on-chain data is stored in the offline database, the verification process is performed based on the on-chain data stored in the offline database and the source data stored in the database. Optionally, if the verification result obtained after the verification process is that the on-chain data is consistent with the source data, the on-chain data stored in the offline database is deleted; if the verification result obtained after the verification process is that the on-chain data is inconsistent with the source data, an alarm notification is generated.

[0085] In addition, this embodiment also provides a data export service for batch export of data from the blockchain. The implementation of batch export and data verification is used as a supplement to the data verification implementation provided above, and the on-chain data stored on the blockchain can be verified from an overall perspective with the source data stored in the processing platform 401, so as to further improve the data verification efficiency. Specifically, after receiving the batch verification request from the processing platform 401, the data export service exports the on-chain data set corresponding to the batch verification request from the blockchain through the data export service, and stores the on-chain data set in the offline database; and the data verification platform 403 verifies the initial state data contained in the on-chain data set with the source data stored in the processing platform 401.

[0086] An embodiment of a data processing device provided in this specification is as follows:

[0087] Corresponding to the data processing method described above, based on the same technical concept, one or more embodiments of this specification further provide a data processing device, which is used to execute the data processing method provided above. Figure 5 A schematic diagram of the structure of a data processing device provided for one or more embodiments of this specification.

[0088] This embodiment provides a data processing device, including:

[0089] like Figure 5As shown, the data processing device may have relatively large differences due to different configurations or performances, and may include one or more processors 501 and memory 502, and the memory 502 may store one or more storage applications or data. Among them, the memory 502 may be a temporary storage or a permanent storage. The application stored in the memory 502 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the data processing device. Furthermore, the processor 501 may be configured to communicate with the memory 502 and execute a series of computer executable instructions in the memory 502 on the data processing device. The data processing device may also include one or more power supplies 503, one or more wired or wireless network interfaces 504, one or more input / output interfaces 505, one or more keyboards 506, etc.

[0090] In a specific embodiment, a data processing device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the data processing device, and the one or more programs configured to be executed by one or more processors include computer-executable instructions for performing the following:

[0091] Parse the data uplink response synchronized by the processing platform to obtain the data storage type and corresponding data query parameters;

[0092] Based on the data storage type and the corresponding data query parameters, call the data query interface to query the data on the blockchain, and obtain the on-chain data returned by the data query interface;

[0093] The on-chain data is stored to perform verification processing on the on-chain data and the source data stored in the processing platform.

[0094] An embodiment of a storage medium provided in this specification is as follows:

[0095] Corresponding to the data processing method described above, based on the same technical concept, one or more embodiments of this specification also provide a storage medium.

[0096] The storage medium provided in this embodiment is used to store computer executable instructions, and the computer executable instructions implement the following process when executed:

[0097] Parse the data uplink response synchronized by the processing platform to obtain the data storage type and corresponding data query parameters;

[0098] Based on the data storage type and the corresponding data query parameters, call the data query interface to query the data on the blockchain, and obtain the on-chain data returned by the data query interface;

[0099] The on-chain data is stored to perform verification processing on the on-chain data and the source data stored in the processing platform.

[0100] It should be noted that the embodiments of the storage medium in this specification and the embodiments of the data processing method in this specification are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the corresponding method mentioned above, and the repeated parts will not be repeated.

[0101] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0102] In the 1930s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0103] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0104] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0105] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing the embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0106] It should be understood by those skilled in the art that one or more embodiments of this specification may be provided as a method, system or computer program product. Therefore, one or more embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0107] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0108] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0109] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0110] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0111] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0112] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0113] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0114] One or more embodiments of the present specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0115] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0116] The above description is only an embodiment of this document and is not intended to limit this document. For those skilled in the art, this document may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this document should be included in the scope of the claims of this document.

Claims

1. A data processing method, applied to data services accessing blockchain nodes, comprising: Parse the data uplink response synchronized by the processing platform to obtain the data storage type and corresponding data query parameters; The data on-chain response is returned to the processing platform after the blockchain node processes the encrypted data and credit points corresponding to the transaction data on-chain; If the data storage type is a certificate storage type, the type identifier and hash field of the certificate storage type are passed into the data query interface for data query, and the encrypted data returned by the interface is stored in the offline database; If the data storage type is a contract type, the type identifier of the contract type and the smart contract identifier, the method identifier of the smart contract calling method and the method execution parameters are passed into the data query interface for data query, and the credit points returned by the interface are stored in the offline database; The data verification platform verifies the encrypted data, the credit points and the transaction data stored in the offline database.

2. According to the data processing method of claim 1, after the blockchain node receives the query call of the data service for the data query interface, it performs the following operations: According to the type identifier of the evidence type and the hash field passed in by the data query interface, query the encrypted data corresponding to the hash field on the blockchain; The encrypted data is returned to the data service through the data query interface.

3. According to the data processing method of claim 1, after receiving the query call of the data service for the data query interface, the blockchain node performs the following operations: Call and execute the smart contract according to the type identifier of the contract type and the smart contract identifier, the method identifier of the smart contract calling method and the method execution parameters transmitted by the data query interface; The credit points stored on the blockchain are queried based on the smart contract execution result, and returned to the data service through the data query interface.

4. According to the data processing method of claim 1, the processing platform is connected to the blockchain node, and the encrypted data and the credit points are generated and stored in the blockchain after being processed by the blockchain node according to the data chain request submitted by the processing platform.

5. According to the data processing method according to claim 4, the data on-chain response is returned to the processing platform after the blockchain node performs on-chain processing according to the data on-chain request submitted by the processing platform, and is synchronized to the data service by the processing platform.

6. According to the data processing method according to claim 4, the data on-chain response is generated after the processing platform cooperates with the blockchain node to perform a data on-chain query and is synchronized to the data service.

7. The data processing method according to claim 1, wherein the transaction data is stored in a database of the processing platform.

8. According to the data processing method of claim 7, after the data verification platform detects that the encrypted data and the credit points are stored in the offline database, verification is performed based on the encrypted data and the credit points stored in the offline database and the transaction data stored in the database.

9. The data processing method according to claim 8, if the verification result obtained after the verification process is that the encrypted data and the credit score are consistent with the transaction data, then deleting the encrypted data and the credit score stored in the offline database; If the verification result obtained after the verification process is that the encrypted data and the credit score are inconsistent with the transaction data, an alarm notification is generated.

10. The data processing method according to claim 1, after receiving the batch verification request from the processing platform, exporting the on-chain data set corresponding to the batch verification request from the blockchain through a data export service, and storing the on-chain data set in the offline database; Furthermore, the data verification platform verifies the encrypted data and the credit points contained in the on-chain data set with the transaction data stored in the processing platform.

11. A data processing device, running on a data service connected to a blockchain node, comprising: The data on-chain response parsing module is configured to parse the data on-chain response synchronized by the processing platform to obtain the data storage type and the corresponding data query parameters; the data on-chain response is returned to the processing platform after the blockchain node processes the encrypted data and credit points corresponding to the transaction data on-chain; The on-chain data query module is configured to, if the data storage type is a certificate type, pass the type identifier and hash field of the certificate type into the data query interface for data query, and store the encrypted data returned by the interface into the offline database; if the data storage type is a contract type, pass the type identifier of the contract type and the smart contract identifier, the method identifier and method execution parameters of the smart contract calling method into the data query interface for data query, and store the credit points returned by the interface into the offline database; The on-chain data storage module is configured to verify the encrypted data, the credit points and the transaction data stored in the offline database via a data verification platform.

12. A data checking system, comprising: Processing platforms and data services connected to blockchain nodes, as well as data verification platforms; The processing platform is used to submit transaction data to the blockchain node and synchronize the data on-chain response of the transaction data to the data service; the blockchain node processes the encrypted data and credit points corresponding to the transaction data on-chain and then returns the data on-chain response to the processing platform; The data service is used to parse the data on-chain response. If the data storage type obtained by the analysis is a certificate type, the type identifier and hash field of the certificate type are passed to the data query interface for data query, and the encrypted data returned by the interface is stored in the offline database; if the data storage type obtained by the analysis is a contract type, the type identifier of the contract type and the smart contract identifier, the method identifier and method execution parameters of the smart contract calling method are passed to the data query interface for data query, and the credit points returned by the interface are stored in the offline database; The data verification platform is used to verify the encrypted data and credit points stored in the offline database with the transaction data stored in the processing platform.

13. According to the data verification system of claim 12, after the blockchain node receives the query call of the data service for the data query interface, it performs the following operations: According to the type identifier of the evidence type and the hash field passed in by the data query interface, query the encrypted data corresponding to the hash field on the blockchain; The encrypted data is returned to the data service through the data query interface.

14. According to the data verification system of claim 12, after the blockchain node receives the query call of the data service for the data query interface, it performs the following operations: Call and execute the smart contract according to the type identifier of the contract type and the smart contract identifier, the method identifier of the smart contract calling method and the method execution parameters transmitted by the data query interface; The credit points stored on the blockchain are queried based on the smart contract execution result, and returned to the data service through the data query interface.

15. The data checking system according to claim 12, wherein the transaction data is stored in a database of the processing platform.

16. The data verification system according to claim 15, if the verification result obtained after the verification process is that the encrypted data and the credit score are consistent with the transaction data, then deleting the encrypted data and the credit score stored in the offline database; If the verification result obtained after the verification process is that the encrypted data and the credit score are inconsistent with the transaction data, an alarm notification is generated.

17. The data checking system according to claim 12, further comprising: A data export service is used to export an on-chain data set corresponding to a batch verification request from the processing platform from the blockchain, and store the on-chain data set in the offline database; and the data verification platform verifies the encrypted data and the credit points contained in the on-chain data set with the transaction data stored by the processing platform.

18. A data processing device comprising: processor; and a memory configured to store computer executable instructions that, when executed, cause the processor to: Parse the data on-chain response synchronized by the processing platform to obtain the data storage type and the corresponding data query parameters; the data on-chain response is returned to the processing platform after the blockchain node processes the encrypted data and credit points corresponding to the transaction data on-chain; If the data storage type is a certificate storage type, the type identifier and hash field of the certificate storage type are passed into the data query interface for data query, and the encrypted data returned by the interface is stored in the offline database; If the data storage type is a contract type, the type identifier of the contract type and the smart contract identifier are passed into the data query interface for data query, and the credit points returned by the interface are stored in the offline database; The data verification platform verifies the encrypted data, the credit points and the transaction data stored in the offline database.

19. A storage medium for storing computer executable instructions, wherein the computer executable instructions implement the following process when executed: Parse the data on-chain response synchronized by the processing platform to obtain the data storage type and the corresponding data query parameters; the data on-chain response is returned to the processing platform after the blockchain node processes the encrypted data and credit points corresponding to the transaction data on-chain; If the data storage type is a certificate storage type, the type identifier and hash field of the certificate storage type are passed into the data query interface for data query, and the encrypted data returned by the interface is stored in the offline database; If the data storage type is a contract type, the type identifier of the contract type and the smart contract identifier are passed into the data query interface for data query, and the credit points returned by the interface are stored in the offline database; The data verification platform verifies the encrypted data, the credit points and the transaction data stored in the offline database.

Citation Information

Patent Citations

  • Data storage and query method and device based on block chain, and electronic device

    CN110263035A

  • Block chain-based data consistency comparison method and device, and medium

    CN110990378A

  • Data checking method and system based on blockchain

    CN113239056A