Trusted collection and sharing method of IOT data based on blockchain and attribute encryption

By using blockchain and attribute encryption methods in IoT data collection and sharing, data security and monitoring problems in traditional technologies are solved, an efficient and trustworthy data sharing environment is achieved, malicious theft and computing overhead are avoided, and improved Improve the security and efficiency of data collection and sharing.

CN115733859BActive Publication Date: 2024-09-27KUNMING UNIV OF SCI & TECH
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202211389649.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-08
Publication Date
2024-09-27
Estimated Expiration
2042-11-08

AI Technical Summary

Technical Problem

Traditional Internet of Things (IOT) data collection and sharing technology relies on centralized servers, which is prone to single points of failure, increases the risk of data leakage, and lacks efficient data protection mechanisms, making it difficult to monitor malicious behaviors and affecting the identity and credibility of managers. Data quality.

Method used

Using methods based on blockchain and attribute encryption, we design the Hyperledger Fabric multi-subchain blockchain structure, deploy smart contracts and task hierarchical management strategies, and combine attribute encryption technology with cloud collaborative interaction to achieve fine-grained access control and avoid malicious theft and Reduce the computational overhead in the data sharing process.

Benefits of technology

It provides a safe and reliable IOT data collection and sharing environment, avoids malicious theft, implements fine-grained access control, improves the efficiency and credibility of the data sharing process, and reduces the computational overhead of multiple encryption and decryption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115733859B
    Figure CN115733859B
Patent Text Reader

Abstract

The present invention discloses a trusted collection and sharing method of IOT data based on blockchain and attribute encryption, combines blockchain with attribute encryption, designs a blockchain structure based on multiple sub-chains, uses multiple sub-chains as servers for secure collection and sharing of IOT data between various entities, divides reputation levels between different sub-chains, proposes an IOT data hierarchical storage strategy based on attribute encryption and multiple sub-chain structure, and interacts with the cloud in collaboration, and realizes fine-grained access control of IOT data in combination with on-chain smart contracts. Compared with the prior art, the present invention mainly solves the problem of privacy leakage caused by single point failure in the traditional IOT data collection process through centralized servers, increases the credibility of the collected data, and realizes more fine-grained access control and safer data sharing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of blockchain, and in particular relates to a trusted collection and sharing method of IOT data based on blockchain and attribute encryption. Background Art

[0002] With the rapid development of sensors, wireless communications and network technologies, the Internet of Things (IOT) has penetrated into every aspect of real life. It can collect data and make decisions through ubiquitous connected smart devices. It can be seen that IOT data has high value attributes and privacy in practical applications.

[0003] For the collection and sharing of IOT data, traditional mobile crowdsourcing technology usually requires a centralized server to operate. Once a single point of failure occurs, it may cause the leakage of IOT data, increasing potential risks. In addition, if there is a lack of efficient data protection mechanism, it will be impossible to monitor malicious behavior during the collection and sharing of IOT data, and the identity and credibility of IOT managers will also affect the quality of data collection. Summary of the invention

[0004] In order to solve the above problems, the present invention combines blockchain with attribute encryption, designs a multi-subchain blockchain structure based on Hyperledger Fabric, replaces the traditional centralized server, and provides a safe and reliable environment for the collection and sharing of IOT data between various entities. By deploying smart contracts to solve the trust problem when data is transmitted between unfamiliar entities, and combining task classification management strategies to achieve isolation between blockchain subchains, the possibility of malicious entities stealing private data of the Internet of Things is effectively avoided. At the same time, the introduction of attribute encryption technology and collaborative interaction with the cloud enables fine-grained access control of IoT data, making the collection and sharing process of IoT data more efficient and reliable.

[0005] In order to achieve the above technical objectives, the present invention is implemented by the following technical solutions:

[0006] A trusted collection and sharing method for IOT data based on blockchain and attribute encryption, comprising the following steps:

[0007] S1: The data acquirer (IOT Customer), as the demander of IoT data, sends a data request to the trusted service provider (Service Provider). The service provider broadcasts the data collection task to the blockchain according to the customer's needs. The IoT data manager (IOT Manager), as the party that deploys a large number of terminal sensors to collect data and owns the data, can choose to receive tasks at the corresponding level according to its own reputation value;

[0008] S2: Deploy reputation evaluation contracts and hierarchical management contracts on the blockchain, regularly evaluate the reputation of IoT data managers in different domains, and jointly build a multi-subchain hierarchical blockchain structure based on Hyperledger Fabric. IoT data managers at different levels collect target data, and use multiple subchains as servers for secure sharing of IoT data between entities.

[0009] S3: Deploy attribute encryption contracts and cloud-chain interaction contracts on the blockchain to achieve more fine-grained access control of IOT data through attribute-based encryption, so that data can be collected once and shared multiple times without repeated encryption. The collected IOT data is encrypted and stored in the cloud, and only the data hash value is retained on the chain to reduce the load pressure on the chain. The on-chain and off-chain collaborative storage jointly completes the integrity verification of IOT data and improves system work efficiency.

[0010] S4: The data acquirer matches its own attribute set with the authorization token issued by the IOT data manager. If the match is successful, the required plain text data can be obtained; if it fails, the process is terminated.

[0011] Preferably, the data acquirer sends a data collection task to the trusted service provider according to its own data needs, including attribute information such as data purpose, data quality, urgency, data characteristics, privacy and security, and the service provider organizes and divides the task into levels, and broadcasts tasks of different levels to different blockchain subchains;

[0012] Preferably, the blockchain body is built by Hyperledger Fabric consortium chain, and a hierarchical management contract is provided to divide the subchains in the consortium chain into levels. Each subchain only stores data collection tasks of the corresponding level, and trust evaluation is performed on IOT data managers regularly through a reputation evaluation contract. Each IOT data manager can only receive data collection tasks in the blockchain subchain of the current level, and cannot execute across subchains unless a higher score is obtained in the next round of trust evaluation;

[0013] Preferably, the specific implementation method of the reputation evaluation contract and the hierarchical management contract on the blockchain in the evaluation and calculation stage is:

[0014] Reputation update =Reputation m +Score*α*I c *T level (1)

[0015] Reputation in formula (1)update Represents the reputation value after each round of evaluation update. m represents the reputation value of the current IOT data manager, α represents the reward of the corresponding level, T level Indicates the level of the task.

[0016]

[0017] In formula (2), Score represents the final score of a data collection task, IScore a ,QScore a ,TScore a Respectively represent the actual score of the operation, ω represents the weight of the corresponding attribute, and the specific calculation method is as follows:

[0018]

[0019]

[0020]

[0021] ω represents the weight of the corresponding attribute, which is calculated by the score matrix of the IOT data manager (IOT Manager) in the historical data collection task:

[0022]

[0023]

[0024]

[0025]

[0026] In equations 6, 7, 8, and 9, IScore i , QScore i , TScore i represents the score obtained by the worker on the i-th task, αi represents the positive and negative growth of the worker's credit during the i-th task. If the credit is positive, α i =1, otherwise α i =0.

[0027]

[0028] I c represents the proportion of IOT data managers with positive reputation growth, m represents the number of tasks with positive reputation growth, n represents the total number of tasks currently executed, and T level Represents the weight of the task level, which is calculated as follows:

[0029]

[0030] Preferably, the specific interaction process between the attribute encryption contract and the cloud-chain interaction contract when executing data access control is as follows:

[0031] The encryption process is performed by a trusted service provider, which first generates a public key PK and a master private key MSK;

[0032] PK=G1,g,h=g β ,e(g,g) α (12)

[0033] MSK=(β,g α ) (13)

[0034] The service provider sets attribute access conditions for IOT data in plain text based on the attribute information of the task, and encrypts the data through the access structure tree and the public key PK;

[0035]

[0036] The service provider calculates the attribute private key through the master private key MSK and the attribute set;

[0037]

[0038] The IoT data manager (IOT Manager) sends the public key to the service provider, and the service provider encrypts the attribute private key with the public key of the IOTManager;

[0039] The service provider sends the IoT data ciphertext and the encrypted attribute private key to the cloud server for hosting, which can effectively prevent the cloud server from malicious tampering. At the same time, the IoT data ciphertext is hashed and a transaction is initiated on the blockchain, which can be used for integrity verification in the subsequent data sharing process.

[0040] The decryption process is as follows:

[0041] The data acquirer submits a data download request, attribute set and public key to the cloud server;

[0042] The cloud server uses an attribute-based matching strategy to determine whether the request is legitimate. If it is confirmed to be eligible for access, the ciphertext and the encrypted attribute private key are encrypted with the public key of the data acquirer.

[0043] The data acquirer uses its own private key to decrypt the data and obtain the IoT data ciphertext and the encrypted attribute private key. At the same time, it applies for authorization credentials from the IoT data manager.

[0044] The IoT data manager issues an authorization token to the data acquirer, and the acquirer decrypts the IoT data plaintext through authorization:

[0045]

[0046] The beneficial effects of the present invention are:

[0047] 1) Design a multi-subchain blockchain structure based on Hyperledger Fabric to replace the centralized server in traditional IoT data collection technology, and provide a safe and reliable environment for the collection and sharing of IoT data among various entities.

[0048] 2) By deploying smart contracts, we can solve the trust problem when sensitive data is transmitted and shared between unfamiliar entities, and combine the task hierarchical management strategy to achieve isolation between blockchain sub-chains, effectively avoiding the possibility of malicious entities stealing IoT privacy data.

[0049] 3) Introduce attribute encryption technology and interact with the cloud, cloud-chain collaboration, so that IoT data can achieve fine-grained access control at the attribute level, thereby making the collection and sharing process of IoT data more efficient and reliable, and reducing the computing overhead caused by multiple encryption and decryption. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 This is a general flow chart of a trusted collection and sharing method for IOT data based on blockchain and attribute encryption provided by an embodiment of the present invention.

[0051] Figure 2 It is the overall system architecture diagram of the present invention.

[0052] Figure 3 It is a data security sharing interaction flow chart based on attribute encryption and cloud-chain collaboration provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0053] 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 creative work are within the scope of protection of the present invention.

[0054] Example 1

[0055] As attached Figure 1 As shown, a trusted collection and sharing method of IOT data based on blockchain and attribute encryption, the specific steps of the method are as follows:

[0056] As the demander of IOT data, the data acquirer (IOT Customer) sends a data request to the trusted service provider (Service Provider), and the service provider broadcasts the data collection task to the blockchain according to the customer's needs;

[0057] Deploy a reputation evaluation contract and a hierarchical management contract on the blockchain, regularly evaluate the reputation of IOT data managers (IOT Managers) in different domains, and jointly build a multi-subchain hierarchical blockchain structure based on Hyperledger Fabric. IOT data managers at different levels collect target data, and use multiple subchains as servers for secure sharing of IOT data between entities of all parties;

[0058] The blockchain deploys attribute encryption contracts and cloud-chain interaction contracts to achieve more fine-grained access control of IOT data through attribute-based encryption, so that data can be collected once and shared multiple times without repeated encryption. The collected IOT data is encrypted and stored in the cloud, and only the data hash value is retained on the chain to reduce the load pressure on the chain. The on-chain and off-chain collaborative storage jointly completes the integrity verification of IOT data and improves the work efficiency of the system;

[0059] The service provider executes access control decisions for IoT data based on attribute encryption contracts.

[0060] The data acquirer decrypts the encrypted data and attribute private key according to its own attribute set and the authorization token issued by the IoT data manager. If the decryption is successful, the required IoT data plaintext can be obtained. If it fails, the process is terminated.

[0061] Example 2

[0062] As attached Figure 2 As shown, the overall system architecture diagram of the present invention mainly includes five entities, namely, data acquisition party, trusted service provider, blockchain, Internet of Things manager, and cloud server.

[0063] The data acquirer sends data collection tasks to the trusted service provider based on its own data needs, including attribute information such as data purpose, data quality, urgency, data characteristics, privacy and security. The service provider organizes the data and divides the tasks into levels, and broadcasts tasks of different levels to different blockchain sub-chains.

[0064] The multi-subchain hierarchical blockchain structure based on Hyperledger Fabric is characterized by: the blockchain body is built by the Hyperledger Fabric alliance chain, and a hierarchical management contract is provided to divide the subchains in the alliance chain into levels. Each subchain only stores data collection tasks of the corresponding level, and trust evaluation is performed on IOT data managers regularly through reputation evaluation contracts. Each IOT data manager can only receive data collection tasks in the blockchain subchain of the current level, and cannot execute across subchains, unless a higher score is obtained in the next round of trust evaluation, then it can apply for cross-channel viewing of data collection tasks in higher-level subchains.

[0065] The specific implementation of the reputation evaluation contract and the hierarchical management contract on the blockchain in the evaluation calculation stage is as follows:

[0066] Reputation update =Reputation m +Score*α*I c *T level (1)

[0067] Reputation in formula (1) update Represents the reputation value after each round of evaluation update. m represents the reputation value of the current IOT data manager, α represents the reward of the corresponding level, T level Indicates the level of the task.

[0068]

[0069] In formula (2), Score represents the final score of a data collection task, IScore a ,QScore a ,TScore a Respectively represent the actual score of the operation, ω represents the weight of the corresponding attribute, and the specific calculation method is as follows:

[0070]

[0071]

[0072]

[0073] ω represents the weight of the corresponding attribute, which is calculated by the score matrix of the IOT data manager (IOT Manager) in the historical data collection task:

[0074]

[0075]

[0076]

[0077]

[0078] In equations 6, 7, 8, and 9, IScore i , QScore i , TScore i represents the score obtained by the worker on the i-th task, αi represents the positive and negative growth of the worker's credit during the i-th task. If the credit is positive, α i =1, otherwise α i =0.

[0079]

[0080] I c represents the proportion of IOT data managers with positive reputation growth, m represents the number of tasks with positive reputation growth, n represents the total number of tasks currently executed, and T level Represents the weight of the task level, which is calculated as follows:

[0081]

[0082] Example 3

[0083] As attached Figure 3 As shown, it is a data security sharing interaction flow chart based on attribute encryption and cloud-chain collaboration provided by an embodiment of the present invention.

[0084] The specific interaction process between the attribute encryption contract and the cloud-chain interaction contract when executing data access control and secure sharing is as follows:

[0085] The encryption process is performed by a trusted service provider and the process is as follows:

[0086] First, generate the public key PK and the master private key MSK;

[0087] PK=G1,g,h=g β ,e(g,g) α (12)

[0088] MSK=(β,g α ) (13)

[0089] The service provider sets attribute access conditions for IOT data in plain text based on the attribute information of the task, and encrypts the data through the access structure tree and the public key PK;

[0090]

[0091] The service provider calculates the attribute private key through the master private key MSK and the attribute set;

[0092]

[0093] The IoT data manager (IOT Manager) sends the public key to the service provider, and the service provider encrypts the attribute private key with the public key of the IOTManager;

[0094] The service provider sends the IoT data ciphertext and the encrypted attribute private key to the cloud server for hosting, which can effectively prevent the cloud server from malicious tampering. At the same time, the IoT data ciphertext is hashed and a transaction is initiated on the blockchain, which can be used for integrity verification in the subsequent data sharing process.

[0095] The decryption process is as follows:

[0096] The data acquirer submits a data download request, attribute set and public key to the cloud server;

[0097] The cloud server uses an attribute-based matching strategy to determine whether the request is legitimate. If it is confirmed to be eligible for access, the ciphertext and the encrypted attribute private key are encrypted with the public key of the data acquirer.

[0098] The data acquirer decrypts the data with its own private key to obtain the IoT data ciphertext and the encrypted attribute private key, and applies for authorization credentials from the IoT data manager;

[0099] The IoT data manager issues an authorization token to the data acquirer, and the acquirer decrypts the IoT data plaintext through authorization:

[0100]

[0101] The above is the entire process of achieving secure data sharing among various entities based on attribute encryption. IoT data is securely transmitted between multiple parties through asymmetric encryption, ensuring the privacy, integrity and security of IoT data.

Claims

1. A trusted collection and sharing method for IOT data based on blockchain and attribute encryption, characterized in that: The following steps are involved: S1: The data acquirer IOT Customer, as the demander of IoT data, sends a data request to the trusted service provider ServiceProvider. The service provider broadcasts the data collection task to the blockchain according to the customer's needs. The IoT data manager IOT Manager, as the party that deploys a large number of terminal sensors to collect data and owns the data, can choose to receive tasks at the corresponding level according to its own reputation value; S2: Deploy reputation evaluation contracts and hierarchical management contracts on the blockchain, regularly evaluate the reputation of IOT data managers in different domains, and jointly build a multi-subchain hierarchical blockchain structure based on Hyperledger Fabric. IOT data managers at different levels collect target data, and use multiple subchains as servers for secure sharing of IOT data between various entities. S3: Deploy attribute encryption contracts and cloud-chain interaction contracts on the blockchain to achieve more fine-grained access control of IOT data through attribute-based encryption, so that data can be collected once and shared multiple times without repeated encryption. The collected IOT data is encrypted and stored in the cloud, and only the data hash value is retained on the chain to reduce the load pressure on the chain. The on-chain and off-chain collaborative storage jointly completes the integrity verification of IOT data and improves system work efficiency. S4: The data acquirer matches its own attribute set with the authorization token issued by the IOT data manager. If the match is successful, the required data plaintext can be obtained; if it fails, the process is terminated; The specific implementation of the reputation evaluation contract and the hierarchical management contract on the blockchain in the evaluation calculation stage is as follows: (1) Reputation in formula (1) update Represents the reputation value after each round of evaluation update. m represents the reputation value of the current IOT data manager, α represents the reward of the corresponding level, T level represents the weight of the task level; (2) In formula (2), Score represents the final score of a data collection task, IScore a , QScore a , TScore a Respectively represent the actual score of the operation, ω represents the weight of the corresponding attribute, and the specific calculation method is as follows: (3) (4) (5) ω represents the weight of the corresponding attribute, which is calculated by the score matrix of the IOT data manager (IOT Manager) in the historical data collection task: (6) (7) (8) (9) In equations 6, 7, 8, and 9, IScore i , QScore i , TScore i represents the score obtained by the worker on the i-th task, αi represents the positive and negative growth of the worker's credit during the i-th task. If the credit is positive, α i =1, otherwise α i =0; (10) I c represents the proportion of IOT data managers with positive reputation growth, m represents the number of tasks with positive reputation growth, n represents the total number of tasks currently executed, and T level Represents the weight of the task level, which is calculated as follows: (11) The specific interaction process between the attribute encryption contract and the cloud-chain interaction contract when executing data access control is as follows: The encryption process is performed by a trusted service provider, which first generates a public key PK and a master private key MSK; (12) (13) The service provider sets attribute access conditions for IOT data in plain text based on the attribute information of the task, and encrypts the data through the access structure tree and the public key PK; (14) The service provider calculates the attribute private key through the master private key MSK and the attribute set; (15) The IoT data manager (IOT Manager) sends the public key to the service provider, and the service provider encrypts the attribute private key with the public key of the IOTManager; The service provider sends the IoT data ciphertext and the encrypted attribute private key to the cloud server for hosting, which can effectively prevent the cloud server from malicious tampering. At the same time, the IoT data ciphertext is hashed and a transaction is initiated on the blockchain, which can be used for integrity verification in the subsequent data sharing process. The decryption process is as follows: The data acquirer submits a data download request, attribute set and public key to the cloud server; The cloud server uses an attribute-based matching strategy to determine whether the request is legitimate. If it is confirmed to be eligible for access, the ciphertext and the encrypted attribute private key are encrypted with the public key of the data acquirer. The data acquirer uses its own private key to decrypt the data and obtain the IoT data ciphertext and the encrypted attribute private key. At the same time, it applies for authorization credentials from the IoT data manager. The IoT data manager issues an authorization token to the data acquirer, and the acquirer decrypts the IoT data plaintext through authorization: (16)。 2. According to claim 1, a trusted collection and sharing method for IOT data based on blockchain and attribute encryption is characterized in that: The data acquirer sends data collection tasks to the trusted service provider based on its own data needs, including data usage, data quality, urgency, data characteristics, privacy and security attribute information. The service provider organizes the tasks and divides them into levels, and broadcasts tasks of different levels to different blockchain sub-chains.

3. According to claim 1, a trusted collection and sharing method for IOT data based on blockchain and attribute encryption is characterized in that: The blockchain body is built by the Hyperledger Fabric alliance chain, and a hierarchical management contract is provided to divide the sub-chains in the alliance chain into levels. Each sub-chain only stores data collection tasks of the corresponding level, and trust evaluation is performed on IOT data managers regularly through a reputation evaluation contract. Each IOT data manager can only receive data collection tasks in the blockchain sub-chain of the current level, and cannot execute across sub-chains unless a higher score is obtained in the next round of trust evaluation.

Citation Information

Patent Citations

  • Method and system for implementing credit by using union block chain based on attribute-based encryption

    CN108898475A

  • Intelligent traffic data safety sharing method based on alliance block chain

    CN111050317A

  • Document editing method, device and system based on block chain

    CN111523150A

  • Data security sharing method and system in blockchain and cloud storage environment

    CN111914269A

  • Attribute encryption access control system and method based on block chain

    CN112804064A