| In edge computing,the storage and transmission of data will face various risks,including data tampering,data leakage,and easy attack.Blockchain,as a secure distributed data storage system,can effectively maintain the credibility of data.Due to some scalability problems of blockchain,such as low on-chain efficiency and high storage redundancy,the resource connectivity between blockchain and edge devices is limited and different structures will produce contradictions,which leads to some applications combining the two cannot play a good role.To solve the above problems,this paper proposes a hierarched and sharded based blockchain storage model suitable for edge computing.Based on this and the timeliness point of the data in the edge device,this method of blockchain data clipping based on access heat is proposed,which effectively solves the problem of blockchain storage overflow.The main research contents and contributions are as follows.1.This paper designs a hierarchical and sharded based blockchain storage model(HSBS)suitable for edge computing.The model uses a layered deployment blockchain with a master-slave structure.A bead curtain is deployed in the cloud center,which is responsible for integrating the state information of multiple fragments of slave chain,so as to achieve the consistency of the state of the master-slave chain network and realize cross-chain relay of slave chain.Based on the idea of community discovery,edge devices with similar performance and similar location cluster into different slave chain fragments,and a consistent hashing algorithm based on weight is proposed to reasonably allocate the fragment storage load.The simulation results show that the storage model has two characteristics: high throughput and low redundancy.2.Data that is not frequently accessed on edge devices is kept on the chain for a long time,which wastes storage resources.To solve this problem,a block data clipping method based on access heat is proposed.Using the idea of Newton’s cooling law,block data access heat and clipping can be determined from the chain.Detailed design of the structure of the block from the chain can prevent the data clipped down the chain from being tampered with.Combined with the master-slave architecture of the HSBS model,the specific tailoring process is designed to ensure the consistency of each node tailoring.Simulation experiments confirm the effectiveness of the method. |