A user data trading system based on blockchain
Through the user data transaction system based on the blockchain, metadata and message summaries are used to ensure the security of data transactions, which solves the problem of user data not being effectively utilized on the Internet and IoT platforms, and improves the security and efficiency of data transactions.
Patent Information
- Application Number
- CN202110839556.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-23
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-07-23
AI Technical Summary
Existing Internet and IoT platforms cannot effectively utilize user data, and users lack the technical framework for controlled data transactions in the industry chain, resulting in an increase in the concealment and possibility of data privacy leaks.
Adopt a user data transaction system based on the blockchain, collect and encrypt user data through the data provider, generate metadata and message digests, use the data processor and the blockchain to verify the validity of the encrypted data set, and transmit it to the Data buyers ensure the security and privacy protection of data transactions.
Recording metadata and message summaries on the blockchain ensures the security of transactions, avoids user data leakage, meets the needs of data buyers, and at the same time saves the amount of blockchain data and improves transaction efficiency.
Smart Images

Figure CN113570461B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of blockchain, and in particular to a user data transaction system based on blockchain. Background Art
[0002] With the development of information and communication technology, the amount of data generated by users is increasing due to the rigid demand for services such as the Internet and the Internet of Things. The massive data released by the Internet and the Internet of Things has infringed on the personal privacy of users through data integration, analysis and mining of personal information that was originally not protected by personal privacy rights, further increasing the hiddenness and possibility of data privacy leaks.
[0003] Currently, the Internet and IoT platforms have collected a large amount of user information, but considering the privacy and security of users, Internet, IoT companies and related industrial chains cannot effectively use this data. At the same time, users, as data producers and owners of private data, do not have the initiative to use data, and lack the technical framework for controllable data transactions in the industrial chain. Summary of the invention
[0004] In view of the above problems existing in the prior art, a user data trading system based on blockchain is now provided.
[0005] The specific technical solutions are as follows:
[0006] A user data transaction system based on blockchain, comprising:
[0007] Data providers collect user data and process the user data before uploading it to the data blockchain;
[0008] The data buyer accesses the data blockchain and sends a data purchase request to the data provider;
[0009] The data processor is connected to the data provider, the data buyer and the data blockchain respectively, and is used to receive the data processing requirements of the data buyer and the encrypted data set of the data provider, and processes the encrypted data set according to the data processing requirements of the data buyer and sends it to the data buyer.
[0010] Preferably, the data provider generates metadata according to the granularity and data content of the user data, encrypts the user data and generates a message digest, and uploads the metadata and the message digest to the data blockchain.
[0011] Preferably, the granularity is overall user statistics or partial group user statistics or individual user statistics.
[0012] Preferably, the data provider generates multiple sets of key pairs according to the granularity and data content of the user data;
[0013] Each set of the key pairs includes a metadata type, an encryption key, an integrity key, an encryption key signature, an integrity key signature, and an overall signature.
[0014] Preferably, the encrypted data set comprises a plurality of data blocks consisting of encrypted data and the key pairs corresponding to the encrypted data;
[0015] The encrypted data is generated according to the key pair and the data content;
[0016] The data block includes a plurality of data segments storing the encrypted data;
[0017] A plurality of the data segments in the same data block share the same key pair.
[0018] Preferably, the encryption key signature, the integrity key signature and the overall signature are generated according to a digital certificate;
[0019] The digital certificate is issued by an authoritative organization after authenticating the data provider.
[0020] Preferably, the user data is divided into private data and non-private data. When the user data is non-private data, the data provider generates user data containing a check digit based on the user data and the integrity key, and generates the message digest based on the user data containing the check digit.
[0021] Preferably, after receiving and confirming the data purchase request, the data provider generates the encrypted data set and sends it to the data processor.
[0022] Preferably, the data processor verifies the validity of the encrypted data set through the data blockchain, and decrypts the encrypted data through the key pair to generate decrypted data;
[0023] The data processor re-encrypts the decrypted data using the recipient's public key and sends the data to the data buyer through a secure channel. The data buyer decrypts the data using the recipient's private key.
[0024] Preferably, when the validity verification of the encrypted data set fails, or the integrity verification of the encrypted data fails, the data processor generates an error report.
[0025] The above technical solution has the following advantages or beneficial effects: using data blockchain to record metadata and message digests ensures the security of transactions and avoids user data leakage; the user data required for the transaction is processed by the data processor, which can better meet the needs of the data buyer; only metadata and message digests are recorded in the blockchain, which avoids user data leakage, while saving the amount of data in the blockchain and improving transaction efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The embodiments of the present invention are described more fully with reference to the attached drawings. However, the attached drawings are only used for illustration and explanation and do not constitute a limitation on the scope of the present invention; it is obvious that for those skilled in the art, other drawings can be obtained according to the corresponding technical inspiration given by these drawings without creative work.
[0027] Figure 1 A schematic diagram of a trading system according to an embodiment of the present invention;
[0028] Figure 2 A schematic diagram of a key pair according to an embodiment of the present invention;
[0029] Figure 3 A schematic diagram of a key group according to an embodiment of the present invention;
[0030] Figure 4 A schematic diagram of a data set according to an embodiment of the present invention;
[0031] Figure 5 A schematic diagram of a data segment according to an embodiment of the present invention;
[0032] Figure 6 A schematic diagram of a non-privacy data encryption process according to an embodiment of the present invention;
[0033] Figure 7 A schematic diagram of a transaction method according to an embodiment of the present invention;
[0034] Figure 8 A schematic diagram of an encryption process according to an embodiment of the present invention;
[0035] Fig. 9 A schematic diagram of a decryption method according to an embodiment of the present invention;
[0036] Fig.10 This is a schematic diagram of the data purchaser transmission process according to an embodiment of the present invention;
[0037] Fig.11 A schematic diagram of a trading system according to another embodiment of the present invention. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0039] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
[0040] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but they are not intended to limit the present invention.
[0041] The present invention includes a user data transaction system based on blockchain, such as Figure 1 As shown, it includes: a user data transaction system based on blockchain, including:
[0042] Data provider 1 collects user data, processes the user data, and uploads it to the data blockchain 4;
[0043] The data buyer 3 accesses the data blockchain 4 and sends a data purchase request to the data provider;
[0044] The data processor 2 is connected to the data provider 1, the data buyer 3 and the data blockchain 4 respectively, and is used to receive the data processing requirements of the data buyer 1 and the encrypted data set of the data provider 1, and processes the encrypted data set according to the data processing requirements of the data buyer 3 and sends it to the data buyer 3.
[0045] Specifically, the data provider 1, data processor 2 and data buyer 3 in the transaction system all receive authentication from the authority 5, and after confirming the security of the environment in data processing, obtain the corresponding digital certificate issued by the authority 5 through the public key infrastructure.
[0046] Furthermore, by setting up the authentication of the authority 5, it is ensured that all parties in the transaction process are in a relatively safe processing environment, thereby reducing the risk of user data leakage.
[0047] In a preferred embodiment, the data provider 1 generates metadata based on the granularity and data content of the user data, encrypts the user data and generates a message digest, and uploads the metadata and message digest to the data blockchain.
[0048] Specifically, the data content includes the user's location information, entertainment preferences, information preferences, travel habits, etc. Different meta messages are generated according to different contents and stored in the data blockchain 4, so that the data buyer 3 can select the corresponding meta message to purchase the corresponding user data according to business needs.
[0049] In a preferred embodiment, the granularity is overall user statistics or partial group user statistics or individual user statistics.
[0050] Specifically, after the data provider 1 collects the corresponding user data through various channels, it is necessary to further process the user data to better meet the needs of the data buyer 3. By processing the user data, filtering some of the data, and dividing the corresponding user groups according to certain conditions, including: region, age, gender, income, consumption habits, etc. The above conditions are only used as an example and do not limit the transaction system disclosed in this technical solution. The above conditions can be used individually, or two or more conditions can be combined to divide the user groups to better meet the needs of the data buyer 3. At the same time, when it is not necessary to track individual users, only overall user statistics or partial group user statistics are provided to protect the privacy of individual users.
[0051] In a preferred implementation, the data provider 1 generates multiple sets of key pairs according to the granularity and data content of the user data;
[0052] Each key pair includes a metadata type, an encryption key, an integrity key, an encryption key signature, an integrity key signature, and an overall signature.
[0053] Specifically, Figure 2 and Figure 3 As shown, the data provider 1 generates multiple groups of key pairs according to the granularity and content of the data, and saves them as a key group 10; taking the first key pair 11 as an example, it includes a meta-message type 111, an encryption key 112, an integrity key 114, an encryption key signature 113, an integrity key signature 115 and an overall signature 116.
[0054] Specifically, the encryption key signature 113, the integrity key signature 115 and the overall signature 116 are obtained by signing the encryption key 112, the integrity key 114 and the first key pair 11 respectively according to the digital certificate issued by the authority 5. The integrity of the key can be effectively guaranteed by the digital certificate signature, avoiding errors in the key pair transmission process caused by the influence of the communication system during the transmission process.
[0055] Furthermore, issuing corresponding digital certificates through the authority 5 can ensure the validity and security of data transmission and avoid data security issues caused by various reasons.
[0056] Furthermore, the meta-message type 111 is used to indicate the type of user data, including: user location information, entertainment preferences, information preferences, travel habits, etc., so that the data buyer 3 can judge what type of user data the encrypted data belongs to based on the meta-message type 111, thereby improving transaction efficiency and avoiding the transaction risk and reduction of transaction willingness caused by the data buyer 3 not being able to know the type of encrypted data. The encryption key 112 is used to encrypt user data to protect the original data, avoid leakage of user data during data transactions, and thus infringe on the user's personal privacy and cause subsequent compliance risks.
[0057] In a preferred embodiment, the integrity key 115 is used to verify the encrypted data. The integrity key 115 can effectively verify whether the encrypted data is intact after transmission, whether there are errors in the transmission process, etc. By setting the integrity key 115, the encrypted data can also have a certain verification and restoration function to a certain extent. By setting a certain check bit, the relevant data content can be effectively restored under poor transmission conditions and high error rates, thereby improving the overall effectiveness of the transaction system.
[0058] In a preferred embodiment, the encrypted data set includes a plurality of data blocks consisting of encrypted data and key pairs corresponding to the encrypted data;
[0059] Encrypted data is generated based on the key pair and data content;
[0060] The data block includes a plurality of data segments storing encrypted data;
[0061] Multiple data segments in the same data block share the same key pair.
[0062] Specifically, Figure 4 As shown, the encrypted data set includes multiple data blocks consisting of encrypted data and key pairs corresponding to the encrypted data, as shown in data set 20, which includes multiple data blocks 2A to 2N, each of which has a different key pair. In this embodiment, data block 2A stores data segments 2A1 to 2An of the same granularity, and key pair 2A0 is set according to the granularity of user data, so data segments 2A1 to 2An in data block 2A use the same key pair 2A0.
[0063] Furthermore, setting different key pairs according to data content and granularity can effectively encrypt and protect the data content, avoiding data security issues caused by the leakage of a single key pair. At the same time, by using the same key pair to encrypt user data with the same data content, the same granularity, or the same data content and granularity, it can effectively save key resources, improve the efficiency of the transaction system, and avoid resource waste caused by repeated decryption and key setting.
[0064] Furthermore, if Figure 5 As shown, taking data block 2A as an example, data block 2A stores multiple data segments 2A1 to 2An using the same key pair 2A0, and different encrypted data are stored in data segments 2A1 to 2An respectively. Taking data segment 2A1 as an example, Figure 6 As shown, the data segment 2A1 stores encrypted data 2A11, message digest 2A12 and metadata 2A13. By setting multiple data segments 2A1 to 2An to share the same key pair 2A0, computing resources can be effectively saved and the efficiency of data transactions can be improved. In addition, the key pair can also be set according to the metadata type 111, or combined with the metadata type 111 and the granularity, which will not be repeated here.
[0065] By providing a plurality of data blocks 2A to 2N in the data set 20, the efficiency of data transmission can be improved, the transmission bandwidth can be saved, and the overall efficiency of the transaction system can be improved.
[0066] In a preferred embodiment, the encryption key signature, the integrity key signature, and the overall signature are generated based on a digital certificate;
[0067] The digital certificate is issued by the authority 5 after authenticating the data provider 1.
[0068] In a preferred implementation, user data is divided into private data and non-private data, such as Figure 6 As shown, when the user data is non-privacy data, the data provider 1 generates the user data containing the check digit according to the user data and the integrity key, and generates a message digest according to the user data containing the check digit.
[0069] Specifically, by distinguishing user data into private data and non-private data, user data can be encrypted according to the type of user data; when user data is non-private data, there is no risk of data leakage leading to infringement of user privacy, so there is no need to use encryption keys to encrypt user data, only integrity keys are needed to process user data and generate message digests. By reducing encryption steps, computing resources can be saved and the efficiency of data transactions can be improved.
[0070] In a preferred implementation, after receiving and confirming the data purchase request, the data provider 1 generates an encrypted data set and sends it to the data processor.
[0071] In a preferred embodiment, the data processor 2 verifies the validity of the encrypted data set through the data blockchain 4, and decrypts the encrypted data through the key pair to generate decrypted data;
[0072] Data processor 2 re-encrypts the decrypted data using the recipient's public key and sends it to the data buyer through a secure channel. Data buyer 3 decrypts the data using the recipient's private key.
[0073] Specifically, the data processor 2 uses the recipient's public key to encrypt the decrypted data to generate encrypted transmission data, and transmits the encrypted transmission data to the data buyer 3 via a secure circuit. After obtaining the encrypted transmission data, the data buyer 3 uses the recipient's private key to decrypt the encrypted transmission data to obtain the actual purchase data.
[0074] Furthermore, the security loop is certified by an authority 5 to ensure the security of the transmission process and avoid leakage of user data during transmission.
[0075] In a preferred embodiment, when the validity verification of the encrypted data set fails or the integrity verification of the encrypted data fails, the data processor generates an error report.
[0076] Specifically, when the validity verification of the data block or the integrity verification of the encrypted data and the meta-message fails, the data processor 2 initiates a transmission request to the data provider 1 again until the validity verification of the data block or the integrity verification of the encrypted data and the meta-message passes. The above settings can effectively avoid data errors caused by bit errors during transmission, thereby improving the overall reliability of the transaction system.
[0077] Furthermore, when the data after decryption shows that its granularity is individual user data, the data processor 2 sends a confirmation signal to the data provider 1 to reconfirm the transaction process. By setting up a secondary confirmation method, the security of individual users' user data can be guaranteed to the greatest extent, avoiding the leakage of individual users' data due to omissions in the transaction process.
[0078] A user data transaction method, such as Figure 7 Features:
[0079] S1: Data provider 1 collects user data and generates metadata and message digests;
[0080] S2: Data provider 1 uploads metadata and message digest to data blockchain 4;
[0081] S3: Data buyer 3 accesses data blockchain 4 and selects required user data based on metadata and message digest;
[0082] S4: Data buyer 3 sends a transaction request and data processing requirements to data provider 1, and sends a data processing requirement to data processor 2;
[0083] S5: Data processor 2 confirms the transaction request and data processing requirements to data provider 1;
[0084] S6: Data processor 2 verifies and decrypts the encrypted data;
[0085] S7: Data processor 2 re-encrypts the decrypted data and sends it to data buyer 3;
[0086] S8: Data buyer 2 decrypts the encrypted data to obtain user data.
[0087] In a preferred embodiment, Figure 8 As shown, the steps for data provider 1 to process user data include:
[0088] S11: Generate metadata based on user data;
[0089] S12: Encrypt user data using the encryption key;
[0090] S13: Process the encrypted user data using the integrity key to generate encrypted data;
[0091] S14: Perform digest processing on the encrypted data to generate a message digest;
[0092] S15: Upload the metadata and message digest to the data blockchain.
[0093] In a preferred embodiment, Fig. 9 As shown, the steps for the data processor to process the encrypted data include:
[0094] S61: Verify the validity of the message digest through the data blockchain;
[0095] S62: Verify the integrity of the encrypted data and metadata according to the integrity key;
[0096] S63: decrypt the encrypted data using the encryption key;
[0097] S64: Repeat S61-S63 until all data blocks in the encrypted data set are decrypted.
[0098] In a preferred embodiment, when the validity verification of the data block fails, or the integrity verification of the encrypted data fails, the data processor 2 generates an error report.
[0099] Specifically, when the validity verification of the data block or the integrity verification of the encrypted data and metadata fails, the data processor 2 initiates a transmission request to the data provider 1 again until the validity verification of the data block or the integrity verification of the encrypted data and metadata passes. The above settings can effectively avoid data errors caused by bit errors during transmission, thereby improving the overall reliability of the transaction system.
[0100] Furthermore, when the data after decryption shows that its granularity is individual user data, the data processor 2 sends a confirmation signal to the data provider 1 to reconfirm the transaction process. By setting up a secondary confirmation method, the security of individual users' user data can be guaranteed to the greatest extent, avoiding the leakage of individual users' data due to omissions in the transaction process.
[0101] In a preferred embodiment, after the data processor completes the decryption, it encrypts the data result using the recipient's public key and sends it to the data buyer; the data buyer decrypts the data using the recipient's private key to obtain the data result.
[0102] Specifically, Fig.10 As shown, the data processor 2 uses the recipient's public key to encrypt the decrypted data to generate encrypted transmission data, and transmits the encrypted transmission data to the data purchaser 3 via a secure circuit. After obtaining the encrypted transmission data, the data purchaser 3 uses the recipient's private key to decrypt the encrypted transmission data to obtain the actual purchase data.
[0103] Furthermore, the security loop is authenticated by an authority 5 to ensure security during transmission and avoid leakage of user data during transmission.
[0104] In a preferred embodiment, the transaction system is applicable to the Internet of Things data transaction process.
[0105] In a preferred embodiment, Fig.11 As shown, IoT user A acts as data provider 1, IoT platform B acts as data processor 2, and IoT application provider C acts as data buyer.
[0106] Specifically, IoT user A, as data provider 1, uses a large number of IoT devices in daily work and life. These IoT devices will record a considerable amount of user data during use, including work logs, location information, work instructions, fault information, etc. The transaction system provided by the present invention provides a channel for data realization for such IoT user A.
[0107] Furthermore, after IoT user A has used IoT data for a long time, he can obtain certain aspects of user data. According to the key pair generation method mentioned above, the metadata type 111 of the user data can be effectively determined, and the granularity of the data can be determined according to its own needs. Then, according to the metadata type 111 and the granularity of the data, a corresponding number of key pairs are expanded using the digital certificate issued by the authority 5, and then the user data is encrypted according to the key pair to generate a message digest, and the message digest and metadata are stored in the data blockchain 4.
[0108] Specifically, IoT application provider C can improve IoT devices based on the data of IoT user A, or provide further services to IoT user A based on user data, or perform data analysis on user data provided by multiple IoT users A, and further process the data through big data analysis to meet business needs. IoT application provider C can access the IoT blockchain, retrieve the user data it needs based on metadata, and use the message digest as the identifier of the user data to be purchased. Due to the immutability of the blockchain, the message digest generated based on the user data has a permanent correspondence with the actual user data, avoiding transaction disputes caused by IoT application provider C purchasing wrong user data or user data not matching the message digest.
[0109] When IoT application provider C needs to purchase user data, it sends a purchase request and a data processing request to IoT user A and IoT platform B. After IoT user A verifies the corresponding request, it transmits the data set to IoT platform B through a secure channel. IoT platform B extracts the corresponding key pair from the data set to decrypt the data segment in the data set to obtain the corresponding user data. After confirming that the user data is consistent with the data processing request of IoT application provider C, the user data is re-encrypted using the recipient's public key and sent to IoT application provider C.
[0110] Specifically, IoT platform B first confirms whether the key pair is damaged or generated errors during the transmission process based on the overall signature, and then confirms the corresponding data content and data processing request based on the metadata type. When the metadata type meets the requirements, the encryption key signature and integrity key signature are used to confirm the encryption key and integrity key respectively to ensure that the encryption key and integrity key are generated by IoT user A, and the key is not incomplete due to bit errors during transmission. When the above verification process is passed, IoT platform B uses the encryption key to decrypt the encrypted data, and then uses the integrity key to confirm the integrity of the data content. After confirmation, the next processing process is carried out.
[0111] IoT application provider C can obtain the user data it needs by decrypting the encrypted transmission data after the double encryption using the recipient's private key, and settle the transaction process through IoT platform B, and IoT user A obtains corresponding rewards.
[0112] The beneficial effects of the present invention are as follows: using data blockchain to record metadata and message digests ensures the security of transactions and avoids user data leakage; the data processor processes the user data required for the transaction, which can better meet the needs of the data buyer; only metadata and message digests are recorded in the blockchain, which avoids user data leakage, while saving the amount of data in the blockchain and improving transaction efficiency.
[0113] The above are only preferred embodiments of the present invention, and are not intended to limit the implementation methods and protection scope of the present invention. Those skilled in the art should be aware that all solutions obtained by equivalent substitutions and obvious changes made using the description and illustrations of the present invention should be included in the protection scope of the present invention.
Claims
1. A user data transaction system based on blockchain, characterized in that: include: Data providers collect user data and process the user data before uploading it to the data blockchain; The data buyer accesses the data blockchain and sends a data purchase request to the data provider; A data processor, connected to the data provider, the data buyer and the data blockchain respectively, for receiving the data processing requirements of the data buyer and the encrypted data set of the data provider, and processing the encrypted data set according to the data processing requirements of the data buyer and sending it to the data buyer; The data provider generates metadata according to the granularity and data content of the user data, encrypts the user data and generates a message digest, and uploads the metadata and the message digest to the data blockchain; The data provider generates multiple sets of key pairs according to the granularity and data content of the user data; Each set of the key pairs includes a metadata type, an encryption key, an integrity key, an encryption key signature, an integrity key signature, and an overall signature; in: The encryption key is used to encrypt user data; The integrity key is used to perform integrity check on the encrypted data; The encryption key signature, the integrity key signature and the overall signature are obtained by respectively signing the encryption key, the integrity key and the key pair according to a pre-issued digital certificate; The metadata type is used to indicate the type of user data; The granularity is overall user statistics, partial group user statistics, or individual user statistics.
2. The trading system according to claim 1, characterized in that: The encryption key signature, the integrity key signature and the overall signature are generated according to a digital certificate; The digital certificate is issued by an authoritative organization after authenticating the data provider.
3. The trading system according to claim 1, characterized in that: The encrypted data set includes a plurality of data blocks consisting of encrypted data and the key pairs corresponding to the encrypted data; The encrypted data is generated according to the key pair and the data content; The data block includes a plurality of data segments storing the encrypted data; A plurality of the data segments in the same data block share the same key pair.
4. The trading system according to claim 1, characterized in that: The user data is divided into private data and non-private data. When the user data is non-private data, the data provider generates user data containing a check digit according to the user data and the integrity key, and generates the message digest according to the user data containing the check digit.
5. The trading system according to claim 1, characterized in that: After receiving and confirming the data purchase request, the data provider generates the encrypted data set and sends it to the data processor.
6. The trading system according to claim 3, characterized in that: The data processor verifies the validity of the encrypted data set through the data blockchain, and decrypts the encrypted data through the key pair to generate decrypted data; The data processor re-encrypts the decrypted data using the recipient's public key and sends the data to the data buyer through a secure channel. The data buyer decrypts the data using the recipient's private key.
7. The trading system according to claim 5, characterized in that: When the validity verification of the encrypted data set fails, or the integrity verification of the encrypted data fails, the data processor generates an error report.
