| In recent years,power data has become an important asset of the power system,and can better promote the development of smart grids.Since the smart grid is a complex and huge system,in the process of data access and sharing,organizations in the smart grid face various data security challenges,and the users in the smart grid are also facing the risk of privacy leakage.In this dissertation,we study the data security access control in different application scenarios in the smart grid.We mainly improve the attribute-based encryption scheme(ABE)and use technologies such as blockchain and signature as solutions.In this thesis,three data access control schemes suitable for different application scenarios in smart grid are proposed to deal with data security and privacy issues in the smart grid.At first,in view of the problem that a large number of IoT devices with limited storage and computing capabilities in the smart grid cannot execute computationally intensive algorithms,an improved attribute-based encryption scheme is proposed to achieve data access control for lightweight IoT devices.Our proposed scheme has a constant ciphertext length,a lower encryption and decryption computational overhead,and high security.In addition,in response to data leakage and user privacy leakage,two enhance schemes are proposed in combination with Chameleon Hash and Bloom Filter.Then,for the problem of secure data sharing and access control between the microgrids and the main grid in the distributed energy system,we proposed a secure data access control scheme with fair accountability based on edge-blockchain.Using edge computing to ensure low latency of distributed systems,lightweight IoT devices can outsource part of the encryption and decryption calculation tasks to edge nodes in the consortium blockchain to ensure the correctness of the returned calculation results.In addition,the(t,n)threshold secret sharing scheme is introduced to establish a distributed authority to solve the single point of failure problem of the centralized authority.At last,aiming at the issue of energy trading in distributed energy resources,a peer-to-peer(P2P)energy trading method based on the consortium blockchain is proposed,which realizes secure and efficient energy trading through access control to transaction data.The improved ABE scheme solves the system performance bottleneck problem caused by relying on third-party nodes in existing blockchain-based P2P energy trading methods,realizes the autonomous matching of sellers and purchasers.At the same time,the ABE scheme ensures that user privacy is not maliciously leaked.In addition,a flexible,arbitrable,and supervisable P2P energy trading is realized based on redactable blockchain and smart contract. |