| In recent years,the Internet of Things industry has developed rapidly.With the continuous expansion of its scale and distribution,the security and privacy issues of the Internet of Things have become the main challenges it faces.The information system in the traditional Internet of Things mainly realizes the interaction and sharing of information through smart devices and embedded sensors,in which the data generated by the sensors are collected,processed and sent by a central system.When these data are transmitted to other users or servers through the Internet,they may be attacked,resulting in user information leakage and privacy damage.Traditional centralized information security solutions have begun to fail to adapt to the Internet of Things due to resource overhead and structural conflicts.The security requirements of the application.In recent years,with the development of blockchain technology and its own unique advantages,it has become one of the options for solving the information security problems of the Internet of Things.The essence of the blockchain is a shareable database,and its immutable nature gives it unique advantages in terms of security.However,due to some inherent shortcomings of the blockchain,it cannot be well adapted to the Internet of Things system.For example,the blockchain serving encrypted currency has a high demand for resources,which cannot be satisfied by the equipment in the Internet of Things system.Latency characteristics are also not needed for IoT.Therefore,how to improve the blockchain system so that it can better adapt to the Internet of Things system has become an important issue.This paper proposes a layered blockchain system based on the resource characteristics of each device in the traditional centralized IoT system,improves and flexibly applies the traditional blockchain,improves and optimizes the consensus mechanism,and uses the Hyperledger Fabric platform to design a system suitable for The blockchain of the Internet of Things system-IoTBC(Internet of Things Bloch Chain),while ensuring the security of the system,focuses on solving the shortcomings of the traditional blockchain in the application of large resource consumption and high delay.The system is divided into two layers:high-performance layer and low-performance layer according to the difference of equipment resource capabilities.Different layers apply different types of blockchains and blockchains respectively,so as to give full play to the advantages of different types of blockchains and apply security in the high-performance layer.The higher consortium chain,the private chain that occupies less resources at the low resource layer.The system connects the high-performance layer and the low-performance layer by setting up a master node.The master node is both a part of the high-performance layer and a part of the low-performance layer.The master node selects the device with the most computing and storage resources,that is,the traditional Internet of Things.The central management device of the system.In addition,corresponding improvements have been made in the consensus mechanism of the blockchain,so that the blockchain can better adapt to the Internet of Things system.In this paper,IoTBC is implemented through a face authentication system.The system provides six modules: registration and login,face information query,face information modification,face information authentication,face information authorization,and data storage.By comparing the execution processes of specific transactions in different types of systems,the comprehensive performance of IoTBC is analyzed.Finally,this paper analyzes the security of the new consensus mechanism by means of qualitative analysis and mathematical model,and proves that the security of IoTBC is improved compared with the traditional Internet of things.By setting up a control experiment,the time and resource occupation of the system are simulated and analyzed,which proves the feasibility of this system and its superiority compared with other schemes. |