| With the development of the digital economy,edge devices such as sensors and mobile terminals in the industrial Internet of Things are fully popularized,and massive data are collected for analysis,calculation,reasoning and other scenarios,which effectively improves production quality and efficiency and reduces labor costs..But at the same time,massive amounts of data have rapidly increased the storage pressure of enterprises,so many organizations directly choose to give up part of the data.However,these data are often still valuable.If they can be fully circulated,social development will make great progress.However,people’s concept of data privacy protection is also rapidly improving.Data owners often do not share data outside the organization.Otherwise,data owners often lose control over the data,which may lead to data leakage and privacy issues.Protection noncompliance and other issues.These problems make the study of trusted data sharing and fine-grained access control very important.Although the existing data sharing and access control schemes for intelligent terminals of the Industrial Internet of Things can solve the above problems to a certain extent,there is still a lot of room for improvement,such as existing cloud platform-based schemes,edge computing-based schemes,etc.There are still problems such as single point of failure,difficult to manage,etc.The blockchain-based solution can improve the security and reliability of data,reduce the cost and risk of centralized management,and enhance the value and circulation of data,but it still faces huge challenges in terms of performance and scalability.This paper uses the Interplanetary File System(IPFS)as a data storage platform,combines blockchain and attribute-based encryption to build a data trusted storage and access control mechanism,and divides data sharing in industrial Io T scenarios into data output layer,trusted storage Layer and data sharing layer three levels.Two main solutions are proposed for the problems existing between different layers:(1)Aiming at the security problems faced by the data sharing and storage of intelligent terminals in the Industrial Internet of Things,a distributed data storage scheme based on the combination of IPFS and alliance chain is proposed.This scheme studies two scenarios of real-time data sharing and non-real-time data storage and continuous sharing in the Internet of Things,and designs a storage and sharing control scheme in the process of data sharing based on smart contracts.At the same time,an incentive mechanism based on reputation value is designed in the scheme to ensure the enthusiasm of each node to participate and the quality of task completion.The experimental results show that this scheme effectively improves the performance of data transmission in real-time data sharing,and at the same time improves the security;in terms of data storage and sharing,it improves data security while ensuring performance advantages.(2)Aiming at the problems of data access and authority control in the Industrial Internet of Things,a data access and control mechanism combining attribute-based encryption and blockchain is proposed.The scheme adopts attribute encryption based on ciphertext policy,and at the same time combines traditional symmetric encryption to improve the encryption speed,and realizes fine-grained access control.In the production of public security parameters of attribute-based encryption,secure multi-party computing is used to solve the problem of traditional attribute-based encryption.Single point of failure problem,and finally combined with the trusted execution environment to form an off-chain data access contract execution environment to ensure the security of the data access process.Experimental results show that this scheme improves the performance of the scheme slightly while refining the access control granularity and ensuring the security of the data access process. |