Sensitive data transaction system and method based on blockchain

Through technologies such as blockchain encryption mechanisms and smart contracts, the problem of trust between buyers and sellers in sensitive data transactions is solved, the authorized delivery and supervision of data are realized, the legality and security of sensitive data transactions are ensured, and the problems in existing technologies are solved. Data transactions are difficult to regulate.

CN115099820BActive Publication Date: 2024-09-20SHANDONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210767321.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-01
Publication Date
2024-09-20
Estimated Expiration
2042-07-01

AI Technical Summary

Technical Problem

The existing technology has problems in sensitive data transactions, such as low mutual trust between buyers and sellers, unclear data authorization, and difficulty in supervising transactions, and cannot meet the specific needs of sensitive data transactions.

Method used

Adopt a sensitive data transaction system based on the blockchain, realize the authorized delivery and supervision of data through the blockchain encryption mechanism and distributed storage, and use smart contracts and oracle contracts for data verification and delivery to ensure the security and privacy of the data. sex.

Benefits of technology

It realizes legal and compliant transactions of sensitive data, guarantees the credibility of data and the traceability of transactions, prevents data theft and abuse, and ensures the rights and economic interests of data owners.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115099820B
    Figure CN115099820B
Patent Text Reader

Abstract

The present disclosure provides a sensitive data transaction system and method based on blockchain, which belongs to the field of e-commerce technology, including a data transaction platform, which is used to receive data supplies published by data sellers through clients, and data requirements published by data buyers through clients; and meet data requirements by matching data definitions of one or more data sellers, and inform data buyers; perform data verification on matched data based on preset strategies, and after data verification, data buyers and sellers realize authorized data delivery based on preset data delivery methods on the basis of blockchain; settle current data transactions; distributed storage, which is used to perform distributed storage on transaction data; a supervision platform, which is used to supervise the entire process of data transactions; and blockchain, which is used to access clients of data buyers, data sellers, and data owners in the form of an alliance chain to realize the construction of a distributed data transaction system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure belongs to the field of e-commerce technology, and in particular, relates to a sensitive data transaction system and method based on blockchain. Background Art

[0002] The statements in this section merely provide background information related to the present disclosure and do not necessarily constitute prior art.

[0003] Since a large part of valuable data involves sensitive data of individuals and enterprises, such as personal medical records, health records, income status, marital status, corporate tax status, corporate financial statements, corporate electricity consumption data, etc., it is difficult for buyers and sellers of these sensitive data to conduct legal transactions under existing regulations. The main reasons are as follows:

[0004] (1) The level of mutual trust between buyers and sellers is low, and there is a high possibility of disputes such as division of data responsibilities and inconsistent metering and billing.

[0005] (2) It is impossible to determine whether the data has been individually authorized by the information subject, which may lead to illegal and irregular situations.

[0006] (3) It is difficult to understand the data circulation situation, making it difficult to carry out auditing, supervision and other tasks.

[0007] At present, technologies such as federated computing and multi-party secure computing can promote data transactions while ensuring data security and data privacy, but the applicable fields and scenarios are still limited, and there is no breakthrough in data authorization. Although the existing blockchain technology has formed corresponding solutions in terms of data security and data authorization, it is still lacking in data transactions, especially sensitive data transactions, and cannot meet the specific needs of sensitive data transactions. For example: the existing data middle platform and other methods do not carry out data rights confirmation, but only carry out data permission access control, and data flow only exists between data buyers and sellers; sensitive data is usually private data, involving personal privacy or corporate trade secrets, and requires personal / corporate authorization before it can be opened or used. There is no personal / corporate authorization process in the existing methods. Even if there is, it is usually achieved through the signing of an agreement and there is no technical guarantee. Summary of the invention

[0008] In order to solve the above problems, the present disclosure provides a sensitive data transaction system and method based on blockchain. The scheme optimizes the blockchain encryption mechanism and utilizes the advantages of blockchain such as distribution, non-tamperability and traceability to realize the sensitive data transaction system and mechanism, thereby effectively realizing the legal, compliant and reasonable transaction of sensitive data.

[0009] According to a first aspect of an embodiment of the present disclosure, a blockchain-based sensitive data transaction system is provided, comprising:

[0010] The data trading platform is used to receive data supply published by data sellers through the client and data requirements published by data buyers through the client; and meet data requirements by matching the data definitions of one or more data sellers and inform the data buyers; verify the matched data based on the preset strategy. After data verification, the data buyer and seller realize the authorized delivery of data based on the preset data delivery method on the basis of blockchain, where only the data owner has the authorization authority for the encrypted data stored by the data seller; and settle the current data transaction;

[0011] Distributed storage, which is used to distribute the transaction data;

[0012] A supervision platform, which is used to supervise the entire process of data transactions;

[0013] Blockchain is used to connect data buyers, data sellers and data owners’ clients in the form of a consortium chain to build a distributed data trading system.

[0014] Furthermore, the data verification of the matched data based on the preset strategy specifically includes:

[0015] The data buyer applies the preset algorithm and the expected result threshold to the data to form a smart contract. The data seller matches the corresponding data for calculation and informs the data buyer of the percentage of the calculation result within the expected threshold as the data trial result.

[0016] Furthermore, the authorized delivery of data based on the preset data delivery method specifically includes:

[0017] Decrypt transaction data and deliver metadata directly;

[0018] Or, call the smart contract and oracle contract, obtain the transaction data through the oracle, perform desensitization processing, and then deliver the data after filtering out some private data;

[0019] Or, call the smart contract and the oracle contract, pull the transaction data through the oracle to perform calculations, obtain the calculation results, and deliver the data calculation results.

[0020] Furthermore, the current data transaction is settled, wherein the settlement measurement method includes:

[0021] Obtain the data buyer to the data storage address and send the acquisition transaction as the basis for measurement;

[0022] Alternatively, measurement may be performed by recording the number of times the data buyer calls the CP-ABE decryption algorithm.

[0023] Furthermore, the data trading platform is also used to authenticate the identity of users who register accounts, and generate and distribute keys for registered users based on the CP-ABE algorithm, where the users include data sellers, data buyers and data owners.

[0024] Furthermore, the data supply published by the data seller through the client specifically includes a data definition consisting of basic information, categories, data rights confirmation, usage methods, usage rights and pricing standards, and the data definition is converted into a smart contract.

[0025] Furthermore, the data trading platform puts the data buyer's data demands that are not met after matching into the data trading platform demand pool and waits for the next matching.

[0026] According to a second aspect of an embodiment of the present disclosure, a sensitive data transaction method based on blockchain is provided, which is based on the above-mentioned sensitive data transaction system based on blockchain, including:

[0027] The data seller publishes data supply on the data trading platform through the client, and the data buyer publishes data demand on the data trading platform through the client; wherein the data supply is a data definition including basic data information and service commitment;

[0028] The data trading platform meets the data demand by matching the data definitions of one or more data sellers and notifies the data buyer;

[0029] The matched data is verified based on the preset strategy. After the data verification, the data buyer and seller realize the authorized delivery of data based on the preset data delivery method on the blockchain; among them, only the data owner has the authorization authority for the encrypted data stored by the data seller;

[0030] The current data transaction is settled, where the transaction settlement is divided into two parts: on-chain and off-chain. Funds settlement adopts off-chain settlement, and the on-chain provides fee basis and reconciliation records for off-chain settlement.

[0031] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising a memory, a processor, and a computer program stored and running on the memory, wherein when the processor executes the program, the method for sensitive data transactions based on blockchain is implemented.

[0032] According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the sensitive data transaction method based on blockchain is implemented.

[0033] Compared with the prior art, the beneficial effects of the present invention are:

[0034] (1) The scheme disclosed in the present invention provides a sensitive data transaction method and system based on blockchain, which realizes the legal and compliant transaction of sensitive data / high-value data after authorization. By utilizing the characteristics of blockchain such as immutability and traceability, data credibility and data transaction traceability are effectively guaranteed. Encryption algorithms are used to protect data privacy and prevent data theft and abuse. Data encryption storage is implemented by the data seller, and data address decryption is implemented by the data owner. The data buyer needs to obtain authorization from both the data seller and the data owner before obtaining the data, which protects the rights and interests of the data owner and the economic interests of the data seller (preventing the data owner from directly providing data to the data buyer. The ownership of data in data transactions defined in the present invention belongs to the data collection and processing party, the data seller and the data owner jointly).

[0035] (2) The scheme disclosed in this disclosure adopts blockchain combined with CP-ABE encryption system. On the one hand, it can effectively realize trusted identity on blockchain, realize the correspondence between individuals and organizations on the chain, and unify the identity information of people / enterprises, including biometric information, ukey, certificates, etc. as identity identification, realize identity is decryption, identity is transaction, and multiple authentication methods; on the other hand, it can realize fine-grained data access permission control, and can realize that a piece of data can be viewed by multiple people through user permission policy settings, without the need to use their respective public keys to encrypt and form multiple copies, resulting in storage waste.

[0036] (3) The solution disclosed in this disclosure introduces a hybrid contract (smart contract and oracle contract) + oracle, which can achieve collaboration among multiple data sellers, form new data for storage, increase data types, and promote data transactions.

[0037] Advantages of additional aspects of the present disclosure will be given in part in the following description and in part will become apparent from the following description or will be learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings constituting a part of the present disclosure are used to provide a further understanding of the present disclosure. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure.

[0039] Figure 1 It is a schematic diagram of the structure of each participant in the data transaction system described in the embodiment of the present disclosure;

[0040] Figure 2 is a schematic diagram of the structure of the data transaction system described in the embodiment of the present disclosure;

[0041] Figure 3 is an operation flow chart of the sensitive data transaction system based on blockchain described in the embodiments of the present disclosure;

[0042] Figure 4 It is a schematic diagram of data authorization circulation based on metadata delivery described in an embodiment of the present disclosure;

[0043] Figure 5 It is a flow chart of the sensitive data transaction method based on blockchain described in the embodiment of the present disclosure. DETAILED DESCRIPTION

[0044] The present disclosure is further described below in conjunction with the accompanying drawings and embodiments.

[0045] It should be noted that the following detailed descriptions are all illustrative and are intended to provide further explanation of the present disclosure. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present disclosure belongs.

[0046] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present disclosure. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0047] In the absence of conflict, the embodiments in the present disclosure and the features in the embodiments may be combined with each other.

[0048] Embodiment 1:

[0049] The purpose of this embodiment is to provide a sensitive data transaction system based on blockchain.

[0050] A sensitive data transaction system based on blockchain, comprising:

[0051] The data trading platform is used to receive data supply published by data sellers through the client and data requirements published by data buyers through the client; and meet data requirements by matching the data definitions of one or more data sellers and inform the data buyers; verify the matched data based on the preset strategy. After data verification, the data buyer and seller realize the authorized delivery of data based on the preset data delivery method on the basis of blockchain, where only the data owner has the authorization authority for the encrypted data stored by the data seller; and settle the current data transaction;

[0052] Distributed storage, which is used to distribute the transaction data;

[0053] A supervision platform, which is used to supervise the entire process of data transactions;

[0054] Blockchain is used to connect data buyers, data sellers and data owners’ clients in the form of a consortium chain to build a distributed data trading system.

[0055] Furthermore, the data verification of the matched data based on the preset strategy specifically includes:

[0056] Zero-knowledge proof; wherein the zero-knowledge proof is specifically:

[0057] Assume that a certain type of sensitive data contains four data items a, b, c, and d, that is, [(a1, b1, c1, d1), (a2, b2, c2, d2), (a3, b3, c3, d3)...]; the data seller holds all the data, and the data buyer knows data item a;

[0058] Specific process:

[0059] Design a function h(x)=ax related to a;

[0060] Write a smart contract to verify h(x)=ax;

[0061] The buyer randomly selects a number of a data items, [ax1, ax2, ax3…],

[0062] The smart contract uses the data provided by the data seller and the data buyer to calculate the result. If the result is consistent, it proves that the data seller has the corresponding data required by the data buyer.

[0063] Alternatively, the data buyer applies a preset algorithm and expected result threshold to the data to form a smart contract, and the data seller matches the corresponding data for calculation and informs the data buyer of the percentage of the calculation result within the expected threshold as the data trial result.

[0064] Furthermore, the authorized delivery of data based on the preset data delivery method specifically includes:

[0065] Decrypt transaction data and deliver metadata directly;

[0066] Or, call the smart contract and oracle contract, obtain the transaction data through the oracle, perform desensitization processing, and then deliver the data after filtering out some private data;

[0067] Or, call the smart contract and the oracle contract, pull the transaction data through the oracle to perform calculations, obtain the calculation results, and deliver the data calculation results.

[0068] Furthermore, the current data transaction is settled, wherein the settlement measurement method includes:

[0069] Obtain the data buyer to the data storage address and send the acquisition transaction as the basis for measurement;

[0070] Alternatively, measurement may be performed by recording the number of times the data buyer calls the CP-ABE decryption algorithm.

[0071] Furthermore, the data trading platform is also used to authenticate the identity of users who register accounts, and generate and distribute keys for registered users based on the CP-ABE algorithm, where the users include data sellers, data buyers and data owners.

[0072] Furthermore, the data supply published by the data seller through the client specifically includes a data definition consisting of basic information, categories, data rights confirmation, usage methods, usage rights and pricing standards, and the data definition is converted into a smart contract.

[0073] Furthermore, the data trading platform puts the data buyer's data demands that are not met after matching into the data trading platform demand pool and waits for the next matching.

[0074] Specifically, for ease of understanding, the solution described in this embodiment is described in detail below with reference to the accompanying drawings:

[0075] This embodiment provides a sensitive data transaction system based on blockchain, such as Figure 1 The scheme described above uses the method of data buyers, data sellers and data owners to access the alliance chain to realize the distributed data trading system. By optimizing the alliance chain encryption algorithm, data rights are confirmed on the chain, and three data delivery methods are formed by using smart contracts, oracle machines and other devices. At the same time, the data transaction supervision system is established by using the characteristics of blockchain that cannot be tampered with and can be traced. As shown in Table 1, the specific definitions of the system participants are shown.

[0076] Table 1 Definition of system participants

[0077]

[0078] The main technical concepts of the solution described in this embodiment are as follows:

[0079] 1) Implement a distributed data trading system based on blockchain. Based on the decentralized and distributed characteristics of blockchain, a distributed data trading system is built, using off-chain encrypted storage and on-chain encrypted anchored storage addresses, and off-chain verification of data summaries to ensure the rights and interests of all parties involved in data transactions and information subjects.

[0080] 2) Realize data rights confirmation and data authorization transactions based on blockchain encryption mechanism. Optimize blockchain security system and implement fine-grained permission access control for blockchain data based on CP-ABE cryptographic algorithm.

[0081] 3) Using blockchain smart contracts to achieve different ways of data delivery. Using blockchain smart contracts to achieve three different ways of data delivery, including metadata delivery, filtered data delivery, and data calculation result delivery.

[0082] Specifically, Figure 2 As shown, a sensitive data transaction system based on blockchain includes Figure 3 The five steps shown are: account registration, publishing data supply / demand, data verification / trial, data authorization, and data transaction settlement.

[0083] Account Registration:

[0084] Prerequisite: Add the CP-ABE module to the blockchain system. When the system starts, CP-ABE will initialize the system at the same time, mainly including the generation of public parameters and master keys (MK, PK).

[0085] Identity Authentication

[0086] Users (including data buyers and sellers and rights holders) submit their identity information through biometrics or other credible methods on the client and apply to open an account.

[0087] Open an account

[0088] When the system receives an account opening request, it opens a new blockchain account for the user who has passed the identity verification, generates the user's public and private keys (Bpk, Bsk), encrypts the user's attribute information on the chain, generates an account opening transaction, and triggers the attribute key generation contract.

[0089] User attribute key generation and distribution

[0090] Generate and distribute a specific key SK containing the user's attributes for the account opening user, and use the user's blockchain public key Bpk to encrypt and chain it. The user uses his own blockchain private key Bsk to obtain the user attribute key SK.

[0091] Table 2. CP-ABE user attribute definition

[0092]

[0093] Release data supply / demand:

[0094] Both parties of a data transaction can publish data supply and data demand through the client, and the data supply and data demand will exist in a visual form on the data transaction platform.

[0095] a. Data seller publishes data supply:

[0096] Selling a house with data first requires defining the data, which mainly includes two parts: basic data information and service commitment. It is specifically composed of basic information, categories, data ownership, usage methods, usage rights and pricing standards.

[0097] Table 3 Data definition

[0098]

[0099] At the same time, the data definition will be converted into a smart contract DDC (data definition contract).

[0100] b. Data buyers publish data requirements:

[0101] Data buyers can publish data requirements through the data trading platform

[0102] c. The data trading platform will meet the data demand by matching the data definitions of one or more data sellers and inform the data buyer. After matching, the unsatisfied data demand will enter the data trading platform demand pool and wait for further matching.

[0103] Data verification / trial:

[0104] There are two ways to verify / test data:

[0105] a. Zero-knowledge proof

[0106] b. The data buyer applies the corresponding algorithm (for example, bank customer access algorithm) and the expected result threshold to the data to form a smart contract. The data seller matches the corresponding data for calculation, and informs the data buyer of the percentage of the calculation result within the expected threshold as the data trial result.

[0107] Data authorization circulation:

[0108] After data verification, data buyers and sellers will realize data authorization circulation based on blockchain. The specific process is as follows: Figure 4 As shown:

[0109] a. The buyer and seller agree on the data transaction-related content offline and form a transaction contract Ctx. The data seller sends the transaction Tx0 to the data buyer, and the digital summary Hash (Ctx) formed by Ctx is uploaded to the chain and stored in the blockchain account book. The data buyer verifies whether the contract is consistent.

[0110] b. Data buyer applies for data. The data buyer sends a data transaction request to the data seller, which contains the sensitive data information subject P, the agreed data ID and other related information, and uses CP-ABE to encrypt the data request plaintext. The data seller uses his own user attribute private key to decrypt the data request.

[0111] c. The data seller provides data. The data seller encrypts the required plaintext data D according to the established user access policy (developed according to actual conditions, for example: allowing the data owner and all authorized organizations and all people belonging to the organization to decrypt) and stores the data. At the same time, the data transaction authorization application is sent to the information subject O, including the data seller information, the approximate content of the data and the scope of use. The storage address is encrypted according to the user access policy (only the data owner is allowed to decrypt) and the data summary Hash (D) is uploaded to the chain at the same time.

[0112] d. Authorization by the information subject. Use the identity attribute private key SKp to decrypt the data storage address and encrypt CTdab with the user permission access policy (formulated as required, consistent with the encryption of data D), and send the transaction together with Hash (D) to the data buyer.

[0113] e. The data buyer uses the data. After receiving the authorization from the information subject, the data buyer uses the identity attribute private key SKb to decrypt the data storage address, and calls to obtain the ciphertext data CTd, and then uses the identity attribute private key SKb to decrypt the data again and verify the digital summary.

[0114] The above process mainly describes the data transaction process with metadata delivery as the final delivery content. Based on this system, three different data delivery methods can be realized. The main difference is that the last step of the information subject authorization is Figure 4 Step 5" and subsequent operations in the previous section. The other two data delivery methods are as follows:

[0115] Method 1: Filtering some data delivery

[0116] This data delivery method is mainly used for data acquisition to support big data analysis scenarios, such as pharmaceutical companies obtaining patient medical records data without exposing personal information such as personal names and ID numbers.

[0117] The last step of information subject authorization is 5”: the data owner sends a transaction to the data buyer to indicate the consent for authorization, and at the same time calls the data filtering contract (hybrid contract = smart contract + oracle contract) to obtain the encrypted data through the oracle, decrypt the encrypted data (same as 5') and verify the Hash (D). After the data is verified, the data items are filtered according to the filtering requirements agreed upon in the data exchange, and encrypted (same as 5") and transmitted to the data buyer, who decrypts or obtains the data (same as 6').

[0118] Method 2: Delivery of data calculation results

[0119] This data delivery method is mainly used for those who only need to pay attention, mainly for risk control result calculation, etc. At the same time, the online execution of this business chain can realize the collaboration of multiple data sellers, and the new data generated will be encrypted and stored for re-trading. For example: a financial institution provides a personal business loan with housing mortgage for a certain enterprise (the business owner uses personal real estate as a mortgage loan). The financial institution ultimately needs a house value assessment. The real estate center and the business owner authorize the financial institution to use the real estate data, and obtain the regional reference price by calling the real estate appraisal agency's on-chain assessment contract and the hybrid contract to realize the real estate assessment price of the business owner. The result will not change in the short term and can be encrypted and stored as new data for trading.

[0120] The last step of information subject authorization is 5”: the data owner sends a transaction to the data buyer to indicate that it agrees to the authorization, and at the same time calls the business contract (hybrid contract = smart contract + oracle contract) to obtain the encrypted data through the oracle, decrypt the encrypted data (same as 5') and verify the Hash (D). After the data is verified, the data items are filtered according to the filtering requirements agreed upon in the data exchange, and encrypted (same as 5") and transmitted to the data buyer, who decrypts or obtains the data (same as 6').

[0121] Data transaction settlement:

[0122] Data transaction settlement is divided into two parts: on-chain and off-chain. Fund settlement occurs off-chain, and the on-chain provides cost basis and reconciliation records for off-chain settlement. The measurement method of this system is mainly divided into two dimensions. One is to measure the data buyer to obtain the data storage address and send the acquisition transaction as the basis, and the other is to measure by recording the number of times the data buyer calls the CP-ABE decryption algorithm (one transaction requires decryption twice).

[0123] Embodiment 2:

[0124] The purpose of this embodiment is to provide a sensitive data transaction method based on blockchain.

[0125] like Figure 5 As shown, a sensitive data transaction method based on blockchain, which is based on the above-mentioned sensitive data transaction system based on blockchain, includes:

[0126] The data seller publishes data supply on the data trading platform through the client, and the data buyer publishes data demand on the data trading platform through the client; wherein the data supply is a data definition including basic data information and service commitment;

[0127] The data trading platform meets the data demand by matching the data definitions of one or more data sellers and notifies the data buyer;

[0128] The matched data is verified based on the preset strategy. After the data verification, the data buyer and seller realize the authorized delivery of data based on the preset data delivery method on the blockchain; among them, only the data owner has the authorization authority for the encrypted data stored by the data seller;

[0129] The current data transaction is settled, where the transaction settlement is divided into two parts: on-chain and off-chain. Funds settlement adopts off-chain settlement, and the on-chain provides fee basis and reconciliation records for off-chain settlement.

[0130] Furthermore, the technical details of the method described in this embodiment have been described in detail in the system described in Example 1, so they will not be repeated here.

[0131] In further embodiments, there is also provided:

[0132] An electronic device includes a memory and a processor, and computer instructions stored in the memory and executed on the processor, wherein when the computer instructions are executed by the processor, the method described in Embodiment 1 is performed. For the sake of brevity, no further description is given here.

[0133] It should be understood that in this embodiment, the processor may be a central processing unit CPU, and the processor may also be other general-purpose processors, digital signal processors DSP, application-specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0134] The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.

[0135] A computer-readable storage medium is used to store computer instructions. When the computer instructions are executed by a processor, the method described in embodiment 1 is completed.

[0136] The method in the first embodiment can be directly embodied as a hardware processor, or a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.

[0137] Those skilled in the art will appreciate that the units, i.e., algorithm steps, of the various examples described in the present embodiment can be implemented in electronic hardware or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this disclosure.

[0138] The sensitive data transaction system and method based on blockchain provided in the above embodiment can be implemented and has broad application prospects.

[0139] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A sensitive data transaction system based on blockchain, characterized in that: include: Data trading platform, which is used to receive data supply published by data sellers through the client, and data demand published by data buyers through the client; and satisfy the data requirements by matching the data definitions of one or more data sellers and informing the data buyers; Verify the matching data based on the preset strategy. After data verification, the data buyer and seller implement the authorized delivery of data based on the preset data delivery method on the blockchain. For the encrypted data stored by the data seller, only the data owner has the authorization authority. Settle the current data transaction. Distributed storage, which is used to distribute the transaction data; A supervision platform, which is used to supervise the entire process of data transactions; Blockchain, which is used to connect data buyers, data sellers, and data owners’ clients in the form of a consortium chain to build a distributed data trading system; The method of implementing authorized data delivery based on a preset data delivery method specifically includes: Decrypt transaction data and deliver metadata directly; Or, call the smart contract and oracle contract, obtain the transaction data through the oracle, perform desensitization processing, and then deliver the data after filtering out some private data; Or, calling the smart contract and the oracle contract, pulling the transaction data through the oracle to perform calculations, obtaining the calculation results, and delivering the data calculation results; The data transaction process of metadata delivery is as follows: a. The buyer and seller agree on the data transaction content offline and form a transaction contract Ctx. The data seller sends the transaction Tx0 to the data buyer, and the digital summary Hash Ctx formed by Ctx is uploaded to the chain and stored in the blockchain account book. The data buyer verifies whether the contract is consistent; b. Data buyer applies for data: The data buyer sends a data transaction request to the data seller, which contains the sensitive data information subject P, the agreed data ID and other related information, and uses CP-ABE to encrypt the data request plaintext; the data seller uses its own user attribute private key to decrypt the data request; c. Data seller provides data: The data seller encrypts the required plaintext data D according to the established user authority access policy, CTd and stores the data. At the same time, the data transaction authorization application is sent to the information subject O, including the data seller information, the approximate content of the data and the scope of use. The storage address is encrypted according to the user authority access policy, CTdao, and the data summary Hash D is uploaded to the chain at the same time; The user rights access policy only allows the data owner to decrypt; d. Information subject authorization: Use the identity attribute private key SKp to decrypt the data storage address and encrypt CTdab with the user permission access policy, and send the transaction together with Hash D to the data buyer; e. Data buyer uses data: After receiving the authorization from the information subject, the data buyer uses the identity attribute private key SKb to decrypt the data storage address, and calls to obtain the ciphertext data CTd, and then uses the identity attribute private key SKb to decrypt the data again and verify the digital summary.

2. A blockchain-based sensitive data transaction system as claimed in claim 1, characterized in that: The data verification of the matched data based on the preset strategy specifically includes: Zero-knowledge proof; Alternatively, the data buyer applies a preset algorithm and expected result threshold to the data to form a smart contract, and the data seller matches the corresponding data for calculation and informs the data buyer of the percentage of the calculation result within the expected threshold as the data trial result.

3. A blockchain-based sensitive data transaction system as claimed in claim 1, characterized in that: The current data transaction is settled, wherein the settlement measurement method includes: Obtain the data buyer to the data storage address and send the acquisition transaction as the basis for measurement; Alternatively, measurement may be performed by recording the number of times the data buyer calls the CP-ABE decryption algorithm.

4. A blockchain-based sensitive data transaction system as claimed in claim 1, characterized in that: The data trading platform is also used to authenticate the identity of users who register accounts and generate and distribute keys to registered users based on the CP-ABE algorithm, where the users include data sellers, data buyers and data owners.

5. A blockchain-based sensitive data transaction system as claimed in claim 1, characterized in that: The data supply published by the data seller through the client specifically includes a data definition consisting of basic information, categories, data rights confirmation, usage methods, usage rights and pricing standards, and the data definition is converted into a smart contract.

6. A blockchain-based sensitive data transaction system as claimed in claim 1, characterized in that: The data trading platform puts the data buyer's data demand that is not satisfied after matching into the data trading platform demand pool and waits for the next matching.

7. A sensitive data transaction method based on blockchain, characterized in that: A blockchain-based sensitive data transaction system according to any one of claims 1 to 6, comprising: The data seller publishes data supply on the data trading platform through the client, and the data buyer publishes data demand on the data trading platform through the client; wherein the data supply is a data definition including basic data information and service commitment; The data trading platform meets the data demand by matching the data definitions of one or more data sellers and notifies the data buyer; The matched data is verified based on the preset strategy. After the data verification, the data buyer and seller realize the authorized delivery of data based on the preset data delivery method on the blockchain; among them, only the data owner has the authorization authority for the encrypted data stored by the data seller; The current data transaction is settled, where the transaction settlement is divided into two parts: on-chain and off-chain. Funds settlement adopts off-chain settlement, and the on-chain provides fee basis and reconciliation records for off-chain settlement.

8. An electronic device comprising a memory, a processor and a computer program stored and running on the memory, characterized in that: When the processor executes the program, a sensitive data transaction method based on blockchain as described in claim 7 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a sensitive data transaction method based on blockchain as described in claim 7 is implemented.