| In recent years,the Internet of Things technology has continued to develop and is playing an increasingly important role in various fields.The Internet of Things is designed as a distributed equipment system equipped with sensors and actuators.With the rapid development of the Internet of Things,a large amount of data is generated every day in different terminals,and the research of data is of great significance in the development of the new era.Filtering out useful information from data and ensuring data security are challenges faced by Io T technology in the process of continuous development.The traditional method of using a trusted third-party cloud cannot meet the real-time requirements of edge terminals.Blockchain technology has the characteristics of immutability and decentralization,and is widely used in Io T data sharing scenarios,solving some problems in data sharing in Io T.This paper mainly combines blockchain technology with edge computing to ensure data security,reduce resource consumption and improve data sharing efficiency in data sharing in the Internet of Things.First of all,when using blockchain technology for data sharing in the Internet of Things,although the attribute-based access control policy improves the fine-grained access control,it needs to consume more storage space with the increase of access control policies.Control policy verification mostly uses hash-based or basic bloom filters.With the increase of data,the hash conflict is serious and the access control policy verification speed is slow.Aiming at the above problems,a weighted attribute access control strategy based on cuckoo filter is proposed,and the recently used access control strategy is cached in edge nodes.Through experimental comparison and analysis with the attribute access control strategy using hash table and the attribute access control strategy method using basic Bloom filter,it is verified that the weighted attribute access control strategy based on cuckoo filter can be used in the situation of increasing data volume.It reduces space consumption and improves the efficiency of data sharing.Secondly,in the framework of applying blockchain technology for data sharing,more consideration is given to the security of data.Most of the public chains that use the proof-ofwork(Po W)consensus mechanism are used.The block consensus speed is slow and data sharing is difficult low efficiency.In response to these problems,this paper proposes a consortium chain based on Hyperledger Fabric structure-a data sharing framework based on PBFT consensus algorithm,which reduces the time for node consensus in the network,uses a combination of symmetric and asymmetric encryption to encrypt data,and uses distributed Storage,improve system throughput and read and write efficiency,and store data digests in blocks to ensure data integrity.By comparing the data sharing time,throughput and CPU utilization with the data framework based on the Po W consensus algorithm,it is verified that the data sharing framework based on the PBFT consensus algorithm can improve the efficiency of data sharing while ensuring data security. |