| The popularity of Internet of Things(IoT)technology has brought great convenience to people’s lives.However,there is a “cloud service trust” problem in the IoT system.Because the IoT users’ control over the IoT device is based on the trust of the IoT cloud service providers.The cloud service providers have ability to control the operation of the IoT device without the users’ permission.In some sensitive situations,users often do not want their devices to be controlled by other organizations or individuals.In order to solve this problem,the main work of the thesis is to combine the blockchain technology and the Internet of Things technology to design a decentralized IoT control management scheme based on the blockchain smart contract,and realize the feasibility of the scheme by implementing the IoT door lock case system without centralized cloud service control.The cores of the IoT control management scheme are using the Ethereum blockchain to store user authority information and the user identification mechanism implemented by signature and verification technology using asymmetric encryption algorithm.Further,considering that the solution is vulnerable to replay attacks,the program introduces a random sequence of instructions mechanism,a Nonce mechanism,and a timestamp mechanism.The IoT door lock system consists of a smart contract part,a mobile app part,a Raspberry pie door lock hardware part,and a secondary cloud service part.The paper analyzes,designs and implements the various parts,and then tests the IoT lock system on the Ethereum test chain.It is found that the system can operate as expected,and the proposed scheme is feasible. |