With the development of the 5G technology,the Internet of Things technology is developing more and more rapidly,but it is difficult to provide low-latency and high-security services by relying on a cloud center server for data processing.Therefore,edge computing and blockchain technology are leveraged to solve those problems.Edge computing can provide services to the Internet of Things on the edge side to reduce latency,while blockchain,as a distributed ledger,can avoid central failures and improve availability,thereby improving security.However,there are still some urgent problems to be solved in the way that the current blockchain is applied in this scenario.Firstly,it is not considered that Io T devices belong to different organizations in practice,and there may be isolation problems between devices.Secondly,the blockchain has scalability problems,that is,with the increase of blockchain nodes,the performance of the overall blockchain network decreases.Furthermore,since blockchain nodes keep the copy of whole data generated in the network,edge servers as nodes cannot afford a large amount of blockchain data.Finally,in this scenario,there is a lack of a more autonomous controllable and highly secure data transmission mechanism and data authentication mechanism.In response to the above problems,this thesis proposes a data storage and data sharing model for Io T devices based on the consortium blockchain.This model sets the Io T scenario as the structure of different organizations under the consortium to make it more in line with the actual application situation and proposes multi-blockchain-based on-chain and off-chain data storage and reputation-based threshold signature for cross-chain data sharing in this scenario.The former solution alleviates the blockchain scalability problem by a multi-chain structure,reduces storage pressure by using on-chain and off-chain storage structures,and keeps the privacy for the transmission when the data on the chain and off-chain are separated by a method based on China standard cryptographic algorithm.The latter solution proposes a highly credible crosschain method for the isolation problem of multi-chain data storage structures under different organizations.This cross-chain method is an improvement to the notary mechanism in the current cross-chain method.First,a reputation-based node selection algorithm is proposed to reduce the degree of centralization in node selection,and the second is to use BLS threshold signatures to reduce the size of signatures.It reduces the storage cost and improves the usability of the signature process,and finally uses the national secret-based data transmission method to improve the security of off-chain cross-organization data transmission.The experiment uses Hyperledger to prototype the model,and through simulation,it is verified that the proposed two mechanisms have good performance and high security,so they are feasible in practical applications. |