| With the rapid development of IoT technology,the network architecture presents a cloud-based development trend in the era of IoE.Edge computing emerges as the times require and it cooperates with traditional cloud computing technology,which is facing major challenges,to empower many industries and promote the innovative development of information technology ecology.The distributed service model of edge computing gives it an advantage in information system security compared to cloud computing.But the multi-source heterogeneous network model and real-time complex data interaction make it have its limitations in security.Blockchain technology supported by cryptography uses a decentralized network architecture to ensure the security of consistent data storage in distributed systems.The technical characteristics of the blockchain are exactly in line with the business model of edge computing.Through the deployment of the blockchain network,the resource entities in the edge network can realize safe and reliable data sharing and information flow.However,the devices in the edge network have limitations in computing power performance and storage resources,which challenge the traditional consensus mechanism in the blockchain system.On the other hand,the openness of blockchain is a double-edged sword for edge networks that are close to the data source and have a large amount of user-sensitive data and private information,making it insufficient in privacy protection.Aiming at the data sharing and privacy protection of edge devices in the blockchain network,this paper focuses on the optimization of consensus mechanisms that fit the edge computing scenarios and the research on privacy protection methods based on homomorphic encryption.The main contributions are as follows:(1)In terms of edge side data-sharing,this paper designs a data sharing model for an edge computing scenario,and proposes a lightweight Byzantine fault-tolerant consensus algorithm based on trusted election.It solves the performance bottleneck caused by the massive growth of nodes through the trusted election mechanism.In addition,the algorithm integrates the ideas of DPoS and PBFT,which reduces the complexity of communication between nodes.Through the comparative analysis of simulation experiments,the consensus rate is significantly improved.(2)In terms of the privacy protection of blockchain systems,this paper proposes a blockchain privacy protection scheme based on homomorphic encryption.It mainly includes the design of the random number generator and the optimization of the homomorphic encryption algorithm.This scheme provides a safe and efficient privacy guarantee for data sharing between node devices.Finally,the feasibility and performance of the scheme are verified through simulation experiments.Under the same security strength,it effectively reduces the computational cost of the encryption process. |