Trusted data verification method, device, equipment and storage medium based on blockchain
Through the trusted data verification method based on the blockchain, the problem of false information when financial institutions obtain data through third-party platforms is solved, ensuring the integrity and credibility of the data during transmission and reducing business risks.
Patent Information
- Application Number
- CN202211328620.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-27
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-10-27
AI Technical Summary
In the existing technology, data obtained by financial institutions through third-party platforms is easily tampered with, leading to increased business risks and uncontrollable financial risks.
Adopting a trusted data verification method based on the blockchain, by obtaining the original data certificate from the data application party and the blockchain, the actual data certificate is generated and verified to ensure the integrity and credibility of the data during the transmission process. .
It improves the credibility of data and reduces business risks, allowing financial institutions to formulate business plans more accurately and reduce financial risks.
Smart Images

Figure CN115664678B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a trusted data verification method, device, equipment and storage medium based on blockchain. Background Art
[0002] This year, with the development of Internet technology, large Internet institutions have further deepened business cooperation with various industries by leveraging their advantages in customer numbers. In the financial field, large Internet institutions (third-party platforms) conduct financial business by sharing data with traditional financial institutions, such as joint loans and loan assistance models between commercial banks and third-party platforms in mainstream financial business.
[0003] In the existing technology, since the data comes from data collected by various parties on third-party non-trusted platforms, some platforms package and tamper with the data provided to financial institutions for their own interests. Financial institutions lending or designing financial products based on false data will increase financial risks, making the risks of financial institutions uncontrollable and causing major losses. Summary of the invention
[0004] In view of this, the embodiments of the present invention provide a blockchain-based trusted data verification method, device and equipment to solve the technical problem in the prior art that the business data obtained by the data application party through a third-party platform contains false information, resulting in increased business risks.
[0005] The technical solution adopted by the present invention is:
[0006] The present invention provides a trusted data verification method based on blockchain, the method comprising:
[0007] Obtain the first data voucher of the actual application data accepted by the data application party and the original data corresponding to the data request information on the blockchain;
[0008] Generating, according to the actual application data, an actual data voucher corresponding to the actual application data;
[0009] Performing a credibility check on the actual application data according to the first data voucher and the actual data voucher to obtain credibility check information;
[0010] Based on the trusted verification information and the data request information, a second transaction voucher is generated and published to the blockchain.
[0011] Preferably, the first data voucher for obtaining the actual application data accepted by the data application party and the original data corresponding to the data request information on the blockchain includes:
[0012] Obtaining data request information from a data application party and identity verification information corresponding to the data request information;
[0013] According to the identity verification information, if the identity verification of the data requester is passed, traverse the local trusted database according to the data request information to obtain the target data corresponding to the data request information;
[0014] The target data is transmitted to the data application party according to the blockchain point-to-point channel to obtain the actual application data.
[0015] Preferably, the identity verification information includes the authenticity verification of the identity of the data application party and the data authorization verification of the data request information, and the data request information of the data application party and the identity verification information corresponding to the data request information are obtained, including:
[0016] Obtain the data request information sent by the data application party and the data authorization information sent by the data supervisor;
[0017] If the data authorization verification result meets the requirements, the data application party is verified for identity authenticity according to the data request information to obtain the identity authenticity information;
[0018] Among them, the data authorization information is the data authorization verification result made by the data supervisor on the data request information based on the current permission information of the data application party stored on the blockchain.
[0019] Preferably, if the data authorization information is partial authorization or authorization rejection, according to the identity verification information, if the identity verification of the data requester passes, traversing the local trusted database according to the data request information to obtain the target data corresponding to the data request information includes:
[0020] Generate data receipt information based on the data authorization information and the data request information and send it to the data application party;
[0021] Generate data confirmation information based on the data receipt information and send it to the data generator;
[0022] The local database is traversed according to the data confirmation information to obtain the target data defined by the data request information and the data authorization information.
[0023] Preferably, the data request information sent by the data application party and the data authorization information sent by the data supervisor include:
[0024] According to the address information of the data request information, a first point-to-point channel and a second point-to-point channel are established based on a blockchain trusted node;
[0025] The data request information is sent to the data generator using the first point-to-point channel, and the data authorization information is sent to the data generator using the second point-to-point channel.
[0026] Preferably, when the first point-to-point channel is the same as the second point-to-point channel, the data request information sent by the data application party and the data authorization information sent by the data supervisor include:
[0027] Establishing the first point-to-point channel and the third point-to-point channel based on the trusted node of the blockchain;
[0028] Using the third point-to-point channel, sending the data request information to the data supervisor;
[0029] generating the data authorization information according to the identity information of the data request information;
[0030] The data authorization information and the data request information are packaged and sent to the data generator by using the first point-to-point channel.
[0031] Preferably, the performing credibility verification on the actual application data according to the first data voucher and the actual data voucher to obtain credibility verification information includes:
[0032] Obtaining a second hash value corresponding to the actual application data;
[0033] Comparing the second hash value with the target hash value of the first data credential to obtain a credibility verification result of the actual application data;
[0034] If the target hash value is equal to the second hash value, the actual application data is credible data.
[0035] The present invention also provides a trusted data verification device based on blockchain, comprising:
[0036] Data acquisition module: used to obtain the actual application data accepted by the data application party and the first data voucher of the original data corresponding to the data request information on the blockchain;
[0037] Data processing module: used to generate actual data vouchers corresponding to the actual application data according to the actual application data;
[0038] Data verification module: used to perform credibility verification on the actual application data according to the first data voucher and the actual data voucher to obtain credibility verification information;
[0039] Information publishing module: used to generate a second transaction certificate based on the trusted verification information and the data request information and publish it to the blockchain.
[0040] The present invention also provides an electronic device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, and when the computer program instructions are executed by the processor, any of the above-mentioned methods is implemented.
[0041] The present invention also provides a medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, any of the above-mentioned methods is implemented.
[0042] In summary, the beneficial effects of the present invention are as follows:
[0043] The present invention provides a blockchain-based trusted data verification method, device, equipment and storage medium. After receiving the data sent by the data generator, the data application party generates an actual data certificate for the actual application data based on the data application node of the data application party, and compares the actual data certificate with the first data certificate to determine whether the actual application data is credible; the first data certificate is a data certificate generated by the data generation node of the data generator for the original data, and the data application node and the data generation node belong to the same blockchain; based on the anti-tampering characteristics of the blockchain, the data application party can judge by itself whether the actual application data has been tampered with during the transmission process in this way, thereby improving the credibility of the actual application data, facilitating the data application party to correctly specify the business plan, and reducing business risks. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the embodiment of the present invention will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work, and these are all within the protection scope of the present invention.
[0045] Figure 1 This is a flowchart of a trusted data verification method based on blockchain in Example 1 of the present invention;
[0046] Figure 2 This is a schematic diagram of the process of transmitting target data based on a blockchain point-to-point channel in Example 1 of the present invention;
[0047] Figure 3 This is a schematic diagram of a process for performing a credibility check of actual application data based on a hash value in Embodiment 1 of the present invention;
[0048] Figure 4 This is a schematic diagram of the structure of a trusted data verification device based on blockchain in Embodiment 2 of the present invention;
[0049] Figure 5 Schematic diagram of the structure of an electronic device in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described in conjunction with the drawings in the embodiment of the present invention. It should be noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. In the description of the present invention, it should be understood that the orientation or position relationship indicated by the terms "center", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such a process, method, article or device. In the absence of further restrictions, the elements defined by the phrase "comprising..." do not exclude the existence of other identical elements in the process, method, article or device comprising the elements. If there is no conflict, the various features of the present invention and the embodiments can be combined with each other, all within the protection scope of the present invention.
[0051] Example 1
[0052] To facilitate the understanding of this article, the blockchain network structure involved in this article is briefly described here. First, the blockchain operator configures a trusted data node for each new institution joining the blockchain network. The internal system of each institutional member in the blockchain network is connected to the blockchain network through the trusted data node. Each institutional member in the blockchain network publishes business requests and receives business information published by other nodes on the blockchain through its own trusted data node. To facilitate the description of this article, when an institutional member needs business data of other institutions in the blockchain network, the trusted data node of the institution is recorded as a data application node, and the institution is recorded as a data application party; the business data provider is recorded as a data generator, and the trusted data node of the data generator is recorded as a data generation node.
[0053] Trusted data: original data collected by data generation organizations; trusted data collection methods include: SDK embedding, IoT collectors, and database collectors to actively collect real-time data from business platforms.
[0054] Specifically, during the data collection phase, the data generator actively collects real-time data from the business platform by using SDK embedding, IoT tools and other means in the business system, ensuring that the real and unmodified business data falls into the trusted data warehouse for storage. The trusted data node of the data generator generates a first data voucher for the original data to be stored, and the first data voucher includes the first hash value corresponding to the original data to be stored and the first summary information of the original data; since the original data is unmodified business data that falls directly into the trusted database, this type of original data is recorded as trusted data. For the convenience of description in this article, the original data, partial data, and complete data mentioned in this article are all trusted data, that is, the data sent from the data generator is trusted data. In order to avoid misunderstandings, other situations may occur during the data transmission process, such as network attacks, forwarding through third parties, etc., resulting in the actual application data received by the data application party not necessarily being trusted data.
[0055] Trusted data transmission: The data received by the data application organization is the data transmission process corresponding to the original data collected by the data generation organization;
[0056] Trusted data storage: The data generated by the data provider's business system is collected in real time to the trusted data node of the data generation organization. The trusted data node will store the collected original data locally and broadcast the hash value of the trusted data to the blockchain for data consensus. This overall process is called trusted data storage.
[0057] P2P stands for peer-to-peer network, also known as point-to-peer technology. It is an Internet system without a central server and relies on user groups to exchange information. Unlike a central network system with a central server, each user end of a peer-to-peer network is both a node and a server.
[0058] See also Figure 1 , Figure 1 In Embodiment 1 of the present invention, a trusted data verification method based on blockchain is provided, the method comprising:
[0059] S1: Obtain the first data voucher of the actual application data accepted by the data application party and the original data corresponding to the data request information on the blockchain;
[0060] Specifically, the first data voucher includes the first hash value and first summary information of the corresponding trusted data published on the blockchain. It should be understood that the first data voucher can be used to know what type of data or partial data information the trusted data is. For example, the detailed information of the wealth management product released by the wealth management subsidiary A of Bank A includes: release time, subscription method, redemption method, subscription conditions, subscription quantity and other detailed information, but the first data voucher data on the blockchain can only know partial information such as the name of the wealth management product, release time, and hash value corresponding to the detailed information; the actual application data is the data corresponding to the target data sent by the data generator received by the data application party.
[0061] S2: generating an actual data voucher corresponding to the actual application data according to the actual application data;
[0062] S3: Performing a credibility check on the actual application data according to the first data voucher and the actual data voucher to obtain credibility check information;
[0063] S4: Generate a second transaction voucher based on the trusted verification information and the data request information and publish it to the blockchain.
[0064] Specifically, the data application party receives the actual application data from the data generator through an instant messaging app, email, point-to-point channel or other means. There is no specific limitation on how the data application party receives the actual application data. The data application party generates an actual data certificate for the received actual application data, and compares the actual data certificate with the first data certificate to determine whether the actual application data is consistent with the data sent by the data generator. If they are consistent, the actual application data is credible; if not, the actual application data is untrustworthy data; the second transaction certificate is generated using the credible verification information of the actual application data and the data request information and published to the blockchain, so as to indicate the actual transaction information corresponding to this data request by the data application party.
[0065] The first data voucher and the actual data voucher are used to perform trustworthy verification of the actual application data, and the verification methods include hash value comparison, file data structure verification, file log verification, etc.; preferably, hash value comparison is used to generate a second hash value of the actual application data using the hash function corresponding to the blockchain, and the second hash value is compared with the first hash value in the first data voucher pre-stored on the blockchain, so as to obtain the trustworthy verification information of the target data received by the data application party, combine the trustworthy verification information with the data request information, obtain the second transaction voucher, and broadcast the second transaction voucher to the blockchain for storage, so as to facilitate the later traceability of this transaction.
[0066] In one embodiment, see Figure 2 , the S1 comprises:
[0067] S11: Acquire data request information from a data application party and identity verification information corresponding to the data request information;
[0068] S12: According to the identity verification information, if the identity verification of the data requesting party passes, traverse the local trusted database according to the data request information to obtain the target data corresponding to the data request information;
[0069] S13: Transmit the target data to the data application party according to the blockchain point-to-point channel to obtain the actual application data.
[0070] Specifically, when the data generation node receives the data request information, it performs identity verification on the data application party corresponding to the data request information. If the identity verification passes, it traverses the local trusted database according to the request content corresponding to the data request information, determines the target data required by the data application party, and then uses the blockchain point-to-point channel to send the target data to the data application party. Identity authentication methods include but are not limited to obtaining certificates representing identity information pre-stored on the blockchain or confirming through other communication methods, such as: email communication, telephone communication, mark recognition (time, symbol), etc.
[0071] In one embodiment, the identity verification information includes the authenticity verification of the identity of the data application party and the data authorization verification of the data request information, and S11 includes:
[0072] S110: Acquire the data request information sent by the data application party and the data authorization information sent by the data supervisor;
[0073] S111: If the data authorization verification result meets the requirements, the data application party is verified for identity authenticity according to the data request information to obtain the identity authenticity information;
[0074] Among them, the data authorization information is the data authorization verification result made by the data supervisor on the data request information based on the current permission information of the data application party stored on the blockchain.
[0075] Specifically, due to the particularity of the financial field, financial regulatory agencies have strictly authorized and supervised financial data; only data authorized by regulatory agencies can be transmitted and / or applied. Each trusted node in the blockchain can establish a P2P network for data transmission, which does not meet the requirements of financial data supervision. Therefore, when a data application party needs to request application data from a data generator in the blockchain, it needs to send the data request information to the data regulator for authorization review. The data generator will only send the corresponding target data to the data application party when it receives the data authorization information and data request information, thereby realizing data supervision between data application parties and data generators in the blockchain network.
[0076] Identity verification information includes identity authenticity verification and data authorization verification. The data supervisor verifies the authority of the data application party in the data request information, and the data generator verifies the identity information of the data application party in the data request information. After the verification is passed, the target data of the trusted database is authorized to be obtained. This method can reduce the data processing volume of the data supervisor, and facilitate business verification between the data application party and the data generator, avoid repeated identity verification, improve business efficiency, and improve the flexibility of business on the blockchain.
[0077] In one embodiment, if the data authorization information is partial authorization or authorization rejection, S12 includes:
[0078] S121: Generate data receipt information according to the data authorization information and the data request information and send it to the data application party;
[0079] S122: Generate data confirmation information according to the data receipt information and send it to the data generator;
[0080] S123: Traverse the local database according to the data confirmation information to obtain the target data defined by the data request information and the data authorization information.
[0081] Specifically, if the data authorization information is not a full authorization, that is, the target data provided to the data application party as limited by the data authorization information is only part of the complete data corresponding to the data request information, then the data generator sends data receipt information to the data application party before sending the target data to the data application party, wherein the receipt information includes second summary information corresponding to the target data, and the second summary information is different from the first summary information. The second summary information includes: the number of target data items, transmission time, data size, permission authorization information, etc., that is, the second summary information is mainly used to explain the actual information of this data request; the data application party generates a response to the data receipt information and generates corresponding data confirmation information. If it is confirmed to continue sending the target data, the data generator sends the target data to the data application party.
[0082] In one embodiment, if the data confirmation information is to re-verify the identity information of the data application party, the target data is a null value, and the data request task is canceled.
[0083] Specifically, if the data application party confirms based on the data receipt information that it cannot obtain all the data due to the failure to update the permissions and the necessary data is not in the target data, and chooses to abandon the data request, the data generator will directly cancel the transaction.
[0084] In one embodiment, the S110 includes:
[0085] S110-1: Establishing a first point-to-point channel and a second point-to-point channel based on a blockchain trusted node according to the address information of the data request information;
[0086] S110 - 2 : Using the first point-to-point channel to send the data request information to the data generator, and using the second point-to-point channel to send the data authorization information to the data generator.
[0087] Specifically, the data application party finds the first data certificate corresponding to the application data required by the data application party based on the data certificates of each trusted data stored on the blockchain network, determines the data generation node of the corresponding data generator through the address information of the first data certificate, thereby forming the data request information of this data demand, and at the same time establishes a first point-to-point channel and a second point-to-point channel with the trusted data nodes of the data generator and the data supervisor, uses the first point-to-point channel to send the data request information to the data generator, and uses the second point-to-point channel to send the data authorization information to the data generator. The first point-to-point channel and the second point-to-point channel can be either point-to-point channels between the data generation node and the data application node or point-to-point channels between the data generation node and the data supervisor node.
[0088] In one embodiment, when the first point-to-point channel is the same as the second point-to-point channel, the S110 includes:
[0089] S110-3: Establishing the first point-to-point channel and the third point-to-point channel based on the trusted node of the blockchain;
[0090] S110-4: Sending the data request information to the data supervisor by using the third point-to-point channel;
[0091] S110-5: Generate the data authorization information according to the identity information of the data request information;
[0092] S110-6: Using the first point-to-point channel, the data authorization information and the data request information are packaged and sent to the data generator.
[0093] Specifically, the data application party sends the data request information to the data supervisor based on the third point-to-point channel, and the data supervisor verifies the data content of the data request information and the identity authority of the data application party to generate data authorization information; the data supervisor packages the data authorization information and the data request information and transmits them to the data generator through the first point-to-point channel to avoid the data request information and data authorization information received by the data generator being received at a time that is not synchronized, resulting in a waste of computer resources and an increase in workload due to the temporary storage of data received by the data generator.
[0094] In one embodiment, the data supervisor sends the data authorization information to the data application party, and the data application party assembles the data request information and the data authorization information. In this way, the data processing amount of the data supervisor can be reduced and the data processing efficiency of the data supervisor can be improved.
[0095] In one embodiment, the data supervisor directly assembles the data authorization information and the data request information to ensure the consistency of the data authorization information and the data request information. Preferably, the first point-to-point channel is a point-to-point channel between the data generation node and the data supervision node.
[0096] In one embodiment, when the first point-to-point channel is different from the second point-to-point channel, the S110 includes:
[0097] Establishing the first point-to-point channel, the second point-to-point channel and the third point-to-point channel based on the trusted node of the blockchain;
[0098] Synchronously sending the data request information to a data generator and a data supervisor based on the first point-to-point channel and the third point-to-point channel;
[0099] generating the data authorization information according to the identity information of the data request information;
[0100] The data authorization information is sent to the data generator based on the second point-to-point channel.
[0101] Specifically, after the data application party generates data request information, it sends the data request information to the data generator and the data regulator at the same time. The data generator can parse the data request information of the data application party at the first time, and the data regulator simultaneously verifies the authority of the data request information, and then transmits the data authorization information directly to the data generator using the second point-to-point channel. The data generator retrieves the target data of the previously parsed data request information according to the data authorization information, and then sends the target data to the data application party; while the data regulator generates data authorization information from the data request information, the data generator parses the data request information. The data request information parsing includes: identity authenticity verification. After receiving the data authorization information, the trusted database is traversed within the scope of the data authorization information to obtain the target data within the scope limited by the data authorization information. The authorization verification of the data request information and the request content parsing are performed simultaneously, which can improve business processing efficiency.
[0102] In one embodiment, the data supervisor verifies the authority of the data application party in the data request information, and the data generator verifies the identity information of the data application party in the data request information. After the verification is passed, the data application party is authorized to obtain the target data of the trusted database. This method can reduce the data processing volume of the data supervisor, and facilitate business verification between the data application party and the data generator, avoid repeated identity verification, and improve business efficiency.
[0103] In one embodiment, the data generator sending the target data to the data application party further includes:
[0104] According to the target data and the data request information, a first transaction voucher is generated and published to the blockchain.
[0105] Specifically, the data generator generates a first transaction voucher based on the data request information, data authorization information and the actual transaction corresponding to the target data and publishes it to the blockchain. The data application party can learn the details of the transaction based on the received actual application data in combination with the first transaction voucher, such as determining whether the received actual application data is consistent with the transaction data published by the first transaction voucher. This approach can improve the adverse effects caused by the lag in authority updates of various institutions in the blockchain system, help remind relevant institutions to upgrade their authorities, and improve the efficiency of financial business.
[0106] In one embodiment, the first data voucher includes a first hash value corresponding to the original data, and S1 includes:
[0107] S101b: Acquire the real-time data generated by the business platform and the data structure of each data set;
[0108] S102b: verifying the real-time data according to the data structure, obtaining the original data and storing it in a trusted database of the data generator;
[0109] S103b: Generate the first hash value according to the original data, and publish the first hash value to the blockchain;
[0110] The data set is a set of data of the same type, and each piece of data in the same data set has the same data structure.
[0111] Specifically, the data generator classifies the real-time data collected from each business platform into data sets, so as to facilitate the classified storage, retrieval and use of data of the same type; the data generation node generates the first data voucher corresponding to the original data to be stored and publishes it to the blockchain, and the first data voucher includes the first hash value corresponding to the original data and the first summary information of the original data; so that the data application party can understand the trusted data and verify the credibility of the actual application data received later. Data set example: the data structure agreed by data set A is: field name: Name, Age; field type: character type; field length: no more than 5 characters; the data of data set A are all data 1: Name: Zhang San, Age: 50; data 2: Name: Li Si, Age: 23; data 3: Name: Wang Wu, Age: 37... This type of data.
[0112] In one embodiment, if the data authorization information is partial authorization, the first data credential further includes a third hash value corresponding to the target data, and S1 includes:
[0113] Obtaining the original data voucher pre-stored on the blockchain corresponding to the complete data requested by the data request information;
[0114] generating, according to the target data, a second data voucher corresponding to the target data;
[0115] Associating the second data voucher with the original data voucher to obtain the first data voucher and publishing it to the blockchain;
[0116] The second data credential includes a third hash value corresponding to the target data.
[0117] Specifically, when the data confirmation information shows that the target data continues to be sent, the data generator generates a second data certificate for the target data, and associates the second data certificate with the original data certificate to obtain the first data certificate and publish it to the blockchain. Associating the second data certificate with the original data certificate includes: combining the second data certificate and the original data certificate into a first data certificate, or establishing a mapping relationship between the original data certificate and the second data certificate. The second data certificate and the original data certificate can be queried with each other through the mapping relationship, so that the first data certificate includes two certificates, and the second data certificate includes a third hash value of the target data and a third summary information of the target data. After receiving the actual application data, the data application party generates a corresponding second hash value, and compares the third hash value with the second hash value, thereby verifying the consistency of the actual application data with the target data, preventing data distortion caused by the target data during transmission, and improving the flexibility of blockchain data tamper-proofing.
[0118] In one embodiment, see Figure 3 , said S3 comprises:
[0119] S31: Obtain a second hash value corresponding to the actual application data;
[0120] S32: Compare the second hash value with the target hash value of the first data credential to obtain a credibility verification result of the actual application data;
[0121] Wherein, if the target hash value is equal to the second hash value, the actual application data is credible data, and the target hash value includes the first hash value of the complete data corresponding to the data request information and the third hash value corresponding to the target data. If the data authorization information is full authorization, the first hash value is equal to the third hash value.
[0122] Specifically, the data sent by the data generator and received by the data application party through the point-to-point channel of the blockchain is recorded as actual application data, and the second hash value of the actual application data is generated by using the hash function corresponding to the blockchain. If the data authorization information is full authorization, the second hash value is compared with the first hash value in the first data certificate pre-stored on the blockchain. If the data authorization information is partial authorization, the second hash value is compared with the third hash value in the first data certificate pre-stored on the blockchain, so as to perform consistency verification on the actual application data and the target data. If the second hash value is equal to the first hash value or the second hash value in the first data certificate, the actual application data is trusted data; otherwise, it is untrusted data and the data has been tampered with.
[0123] According to the blockchain-based trusted data application method of the present invention, after receiving the data sent by the data generator, the data application party generates an actual data certificate for the actual application data based on the data application node of the data application party, and compares the actual data certificate with the first data certificate to determine whether the actual application data is credible; the first data certificate is a data certificate generated by the data generation node of the data generator for the original data, and the data application node and the data generation node belong to the same blockchain; based on the tamper-proof feature of the blockchain, the data application party can judge by itself whether the actual application data has been tampered with during the transmission process in this way, thereby improving the credibility of the actual application data, facilitating the data application party to correctly specify the business plan, and reducing business risks.
[0124] Example 3
[0125] The present invention further provides a trusted data verification device based on blockchain based on the trusted data verification method of embodiment 1, see Figure 4 ,include:
[0126] Data acquisition module: used to obtain the actual application data accepted by the data application party and the first data voucher of the original data corresponding to the data request information on the blockchain;
[0127] Data processing module: used to generate actual data vouchers corresponding to the actual application data according to the actual application data;
[0128] Data verification module: used to perform credibility verification on the actual application data according to the first data voucher and the actual data voucher to obtain credibility verification information;
[0129] Information publishing module: used to generate a second transaction certificate based on the trusted verification information and the data request information and publish it to the blockchain.
[0130] In one embodiment, the data acquisition module includes:
[0131] Information collection unit: obtains data request information from a data application party and identity verification information corresponding to the data request information;
[0132] Data retrieval unit: according to the identity verification information, if the identity verification of the data requester is passed, traverse the local trusted database according to the data request information to obtain the target data corresponding to the data request information;
[0133] Data transmission unit: transmits the target data to the data application party according to the blockchain point-to-point channel to obtain the actual application data.
[0134] In one embodiment, the identity verification information includes the authenticity verification of the identity of the data application party and the data authorization verification of the data request information, and the information collection unit includes:
[0135] Information sending unit: obtains the data request information sent by the data application party and the data authorization information sent by the data supervisor;
[0136] Information verification unit: if the data authorization verification result meets the requirements, the data application party is verified for identity authenticity according to the data request information to obtain the identity authenticity information;
[0137] Among them, the data authorization information is the data authorization verification result made by the data supervisor on the data request information based on the current permission information of the data application party stored on the blockchain.
[0138] In one embodiment, if the data authorization information is partial authorization or authorization rejection, the data retrieval unit includes:
[0139] Information receipt unit: generates data receipt information according to the data authorization information and the data request information and sends it to the data application party;
[0140] Information confirmation unit: generating data confirmation information according to the data receipt information and sending it to the data generator;
[0141] Data confirmation unit: traverses the local database according to the data confirmation information to obtain the target data defined by the data request information and the data authorization information.
[0142] In one embodiment, the information sending unit includes:
[0143] A channel establishing unit: establishing a first point-to-point channel and a second point-to-point channel based on a blockchain trusted node according to the address information of the data request information;
[0144] Data sending unit: uses the first point-to-point channel to send the data request information to the data generator, and uses the second point-to-point channel to send the data authorization information to the data generator.
[0145] In one embodiment, when the first point-to-point channel is the same as the second point-to-point channel, the information sending unit includes:
[0146] Channel information unit: establishing the first point-to-point channel and the third point-to-point channel based on the trusted node of the blockchain;
[0147] Data supervision unit: sending the data request information to the data supervisor by using the third point-to-point channel;
[0148] Data authorization unit: generating the data authorization information according to the identity information of the data request information;
[0149] Data receiving unit: uses the first point-to-point channel to package the data authorization information and the data request information and send them to the data generator.
[0150] In one embodiment, the data processing module includes:
[0151] Actual data unit: obtaining a second hash value corresponding to the actual application data;
[0152] Data parsing unit: comparing the second hash value with the target hash value of the first data credential to obtain a credibility verification result of the actual application data;
[0153] If the target hash value is equal to the second hash value, the actual application data is credible data.
[0154] The present invention provides a trusted data verification device based on blockchain. After receiving the data sent by the data generator, the data application party generates an actual data certificate for the actual application data based on the data application node of the data application party, and compares the actual data certificate with the first data certificate to determine whether the actual application data is credible; the first data certificate is a data certificate generated by the data generation node of the data generator for the original data, and the data application node and the data generation node belong to the same blockchain; based on the anti-tampering characteristics of the blockchain, the data application party can judge by itself whether the actual application data has been tampered with during the transmission process in this way, thereby improving the credibility of the actual application data, facilitating the data application party to correctly specify the business plan, and reducing business risks.
[0155] Example 4
[0156] The present invention provides an electronic device and a storage medium, such as Figure 5 As shown, the system comprises at least one processor, at least one memory and computer program instructions stored in the memory.
[0157] Specifically, the above-mentioned processor may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of an embodiment of the present invention, and the electronic device includes at least one of the following: a computer, a mobile terminal, a PC, a tablet computer, etc.
[0158] The memory may include a large capacity memory for data or instructions. By way of example and not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory may include a removable or non-removable (or fixed) medium. Where appropriate, the memory may be inside or outside a data processing device. In a particular embodiment, the memory is a non-volatile solid-state memory. In a particular embodiment, the memory includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.
[0159] The processor implements any one of the blockchain-based trusted data verification methods in the first embodiment described above by reading and executing computer program instructions stored in the memory.
[0160] In one example, the electronic device may further include a communication interface and a bus, wherein the processor, the memory, and the communication interface are connected via the bus and communicate with each other.
[0161] The communication interface is mainly used to implement communication between the modules, devices, units and / or equipment in the embodiments of the present invention.
[0162] Bus includes hardware, software or both, and the parts of electronic equipment are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In suitable cases, bus may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.
[0163] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0164] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0165] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A trusted data verification method based on blockchain, characterized in that: The method comprises: Obtaining the actual application data accepted by the data application party and the first data voucher of the original data corresponding to the data request information on the blockchain, including: obtaining the data request information of the data application party and the identity verification information corresponding to the data request information; according to the identity verification information, if the identity verification of the data request party passes, traversing the local trusted database according to the data request information to obtain the target data corresponding to the data request information; transmitting the target data to the data application party according to the blockchain point-to-point channel to obtain the actual application data; the first data voucher includes the first hash value corresponding to the original data to be stored and the first summary information of the original data; the actual application data is the data corresponding to the target data sent by the data generator and received by the data application party; The identity verification information includes the identity authenticity verification of the data application party and the data authorization verification of the data request information. The obtaining of the data request information of the data application party and the identity verification information corresponding to the data request information includes: obtaining the data request information sent by the data application party and the data authorization information sent by the data supervisor; if the data authorization verification result meets the requirements, performing identity authenticity verification on the data application party according to the data request information to obtain the identity authenticity information; wherein the data authorization information is the data authorization verification result made by the data supervisor on the data request information according to the current authority information of the data application party stored on the blockchain; Generating, according to the actual application data, an actual data voucher corresponding to the actual application data; Performing a credibility check on the actual application data according to the first data voucher and the actual data voucher to obtain credibility check information; Based on the trusted verification information and the data request information, a second transaction voucher is generated and published to the blockchain.
2. The blockchain-based trusted data verification method according to claim 1, characterized in that: If the data authorization information is partial authorization or authorization rejection, according to the identity verification information, if the identity verification of the data requester passes, traversing the local trusted database according to the data request information to obtain the target data corresponding to the data request information includes: Generate data receipt information based on the data authorization information and the data request information and send it to the data application party; Generate data confirmation information based on the data receipt information and send it to the data generator; The local database is traversed according to the data confirmation information to obtain the target data defined by the data request information and the data authorization information.
3. The blockchain-based trusted data verification method according to claim 1, characterized in that: The data request information sent by the data application party and the data authorization information sent by the data supervisor include: According to the address information of the data request information, a first point-to-point channel and a second point-to-point channel are established based on a blockchain trusted node; The data request information is sent to the data generator using the first point-to-point channel, and the data authorization information is sent to the data generator using the second point-to-point channel.
4. The blockchain-based trusted data verification method according to claim 3 is characterized in that: When the first point-to-point channel is the same as the second point-to-point channel, the data request information sent by the data application party and the data authorization information sent by the data supervisor include: Establishing the first point-to-point channel and the third point-to-point channel based on the trusted node of the blockchain; Using the third point-to-point channel, sending the data request information to the data supervisor; generating the data authorization information according to the identity information of the data request information; The data authorization information and the data request information are packaged and sent to the data generator by using the first point-to-point channel.
5. The blockchain-based trusted data verification method according to claim 1, characterized in that: The performing credibility verification on the actual application data according to the first data voucher and the actual data voucher to obtain credibility verification information includes: Obtaining a second hash value corresponding to the actual application data; Comparing the second hash value with the target hash value of the first data credential to obtain a credibility verification result of the actual application data; If the target hash value is equal to the second hash value, the actual application data is credible data.
6. A trusted data verification device based on blockchain, characterized in that: include: Data acquisition module: used to obtain the actual application data accepted by the data application party and the first data voucher of the original data corresponding to the data request information on the blockchain, including: obtaining the data request information of the data application party and the identity verification information corresponding to the data request information; according to the identity verification information, if the identity verification of the data request party passes, traversing the local trusted database according to the data request information to obtain the target data corresponding to the data request information; transmitting the target data to the data application party according to the blockchain point-to-point channel to obtain the actual application data; the first data voucher includes the first hash value corresponding to the original data to be stored and the first summary information of the original data; the actual application data is received by the data application party The data corresponding to the target data sent by the data generator; the identity verification information includes the identity authenticity verification of the data application party and the data authorization verification of the data request information, and the acquisition of the data application party's data request information and the identity verification information corresponding to the data request information includes: acquiring the data request information sent by the data application party and the data authorization information sent by the data supervisor; if the data authorization verification result meets the requirements, the identity authenticity verification of the data application party is performed according to the data request information to obtain the identity authenticity information; wherein, the data authorization information is the data authorization verification result made by the data supervisor on the data request information according to the current authority information of the data application party stored on the blockchain; Data processing module: used to generate actual data vouchers corresponding to the actual application data according to the actual application data; Data verification module: used to perform credibility verification on the actual application data according to the first data voucher and the actual data voucher to obtain credibility verification information; Information publishing module: used to generate a second transaction certificate based on the trusted verification information and the data request information and publish it to the blockchain.
7. An electronic device, characterized in that: include: At least one processor, at least one memory and computer program instructions stored in the memory, when the computer program instructions are executed by the processor, implement the method according to any one of claims 1 to 5.
8. A storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Block chain processing method and device, block-chain node and storage medium
CN109040014A
Data processing method, device and system based on block chain
CN111416704A
Business data verification method and device based on block chain and readable storage medium
CN111444550A
Resource exchange processing method and device, equipment and storage medium
CN112989380A
Block chain-based service right confirmation method and device, storage medium and electronic equipment
CN114172663A
