| Nowadays,due to the increasingly severe global energy crisis,countries are beginning to turn their attention to distributed power generation based on renewable energy power generation.As a distributed energy system,there are randomness and volatility in microgrid.Many challenges are brought to the safe and stable operation of the current power grid due to its unstable characteristics by the new energy power generation.In addition,with the continuous development and improvement of microgrid in recent years,a large number of power data have been generated.Therefore,in view of the growing problems of big data in microgrid,such as difficult storage,deletion cannot be verified,sharing and automatic disaster recovery backup,using the characteristics of decentralization,tamper proof,data security,transparency and traceability of blockchain technology,a microgrid data security management scheme based on blockchain is studied in edge computing.The specific work is as follows:(1)Research on secure storage and deletion verification of microgrid data.Firstly,the edge computing is used to preprocess the power data,reduce the data scale and improve the data quality.Then,a hybrid encryption method combining symmetric encryption algorithm and asymmetric encryption algorithm is used to encrypt the outsourced data,and a secure storage blockchain is constructed based on K-Raft consensus protocol.Finally,after the data deletion request is initiated and the data is deleted successfully,the deletion certificate is generated and stored in the blockchain,and a deletion verification chain is constructed based on a minimalist lightweight Streamlet consensus protocol.Security analysis and experimental analysis show that this scheme can not only realize the safe storage of microgrid data,but also realize the efficient deletion and verification of outsourced data.(2)Research on secure sharing of microgrid data.Firstly,the user needs to complete the registration of the account and connect the smart meter to the data collector in the initialization stage.Secondly,an improved El Gamal encryption algorithm is used to encrypt the data preprocessed by edge computing and the packaged data blocks are broadcast to the outside.In addition,point is used to replace the token in the traditional blockchain consensus mechanism for circulation in the consensus stage.After getting consensus among nodes,the packet of data is stored in the database under the chain.And the storage address is returned to the chain for storage.Finally,submitting the query party’s application of access is required to implement data sharing.And then the data sharing is accomplished by the smart contract automatically.Security analysis and experimental analysis show that this scheme can improve the transaction rate significantly and ensure the safe sharing of data.(3)Research on disaster backup of microgrid data.Firstly,the honey encryption technology and AES encryption algorithm are combined to propose a new encryption algorithm HE-AES,which is used to encrypt the preprocessed data.Secondly,the Kademlia algorithm is embedded in the edge server to realize the distributed storage and automatic recovery of microgrid data.Finally,the traditional proof of authority(Po A)consensus mechanism is partially improved,and the improved Po A is used to make each node reach consensus and pack blocks on the chain.Security analysis and experimental analysis show that the scheme can not only realize the data disaster recovery backup automatically,but also has high efficiency of data processing. |