| With the continuous advancement of smart cities,the number of sensing devices increases dramatically,and a large amount of sensing data floods into the cloud from the edge.In the face of malicious attacks launched from the edge and central server failure,smart city application systems still lack sufficient stability,and system data are still at risk of being modified,deleted and damaged,making it difficult to guarantee the authenticity,validity and privacy of the data.Blockchain,with its characteristics of decentralization,immutability and high credibility,can build trusted information and value delivery channels in untrusted environments.In view of the information security problems faced by smart cities,this paper studies the blockchain-based trustworthy management method of sensing devices,including three aspects: architecture design,behavior management of sensing devices and authority management of sensing data.The details are as follows:(1)A blockchain-edge computing hybrid trustworthy Io T architecture is proposed by redesigning Io T role functions,system network organization mode,and data storage and computation methods,which can be divided into four parts: peer-to-peer network,lightweight communication,decentralized consensus,and distributed ledger.The decentralized control of sensing devices and distributed storage of sensing data can be realized,which provides a reference scheme for building trustworthy smart city applications.(2)In order to adapt to the Io T system,a credit-based Proof of Work(Credit-based Po W)consensus algorithm is proposed.The malicious behaviors of sensing devices are classified,Credit-based Po W constrains these behaviors of the sensing devices by constructing a credibility system,which can greatly increase the cost of malicious attacks launched from the sensing devices.Relevant experiments evaluate the effectiveness and feasibility of the proposed algorithm,proving that Credit-based Po W can provide a decentralized behavior management method of sensing devices for smart cities.(3)In order to prevent the data from being stolen by malicious nodes in the process of transmission,a sensing data authority management scheme is designed by integrating symmetric encryption and elliptic curve digital signature algorithm.Public data is managed to ensure authenticity and can be accessed by any node.Private data is transmitted and stored in encryption,and access to private data requires requesting access rights from the data owner,which also provides a secure transmission method of symmetric secret keys and realizes the access control of the private data stored in the blockchain.The experimental results show that the computational cost of the scheme is within the acceptable range.Based on the proposed method,taking the device management of ancient buildings in street of culture and history as an example,aiming at alleviating the difficulties and pain points of the equipment management in the region,a blockchain-based trustworthy management system for the device of ancient buildings was designed and realized by Ethereum blockchain platform. |