| With the development of science and technology,human beings cannot live without electricity.The introduction of smart grid systems brings new ideas to break the shackle of existing electricity systems.With the rapid development of modern society and the increasingly complicated data interaction between different energy entities,people put forward higher requirements for the power system.In the smart grid,the central server of the power supply bureau monitors the operation of the smart device,but the user cannot query the fault information of the smart device,and can only query the power consumption and pay the bill.The scale of power grid is gradually increasing,but the centralized management method is still adopted.It is difficult to realize the cross-platform multi-party data sharing of electrical data so that the real value of data cannot be played.The scale of power grid is gradually increasing,but the centralized management method is still adopted.It is difficult to realize the cross-platform multi-party data sharing of power data so that the real value of data cannot be played.Blockchain technology is an emerging technology.Its features of tamper-free,decentralized,programmable,time-series data and anonymous make blockchain stand out in many application scenarios since its inception.This paper combines blockchain and smart grid to design the operation mechanism of smart grid based on the consortium blockchain,and conducts research in the following two aspects:(1)Aiming at the limitation of node communication broadband and device storage capacity in smart grid,we propose an improved certificateless short signature scheme for frequent data exchange in smart grid based on consortium blockchain.We added the consortium blockchain timestamp and user information to the signature scheme for key generation.We come up with the improved certificateless short signature scheme that is proved to be secure in the standard model under the k-CAA and Inv-CDH.After comparison with several similar schemes,it is shown that the proposed scheme is more suitable for the smart grid with large amount of information and fast signature verification in terms of signature length and computational complexity.(2)This paper proposes a mechanism with data monitoring and sharing capabilities based on the consortium blockchain,realizing comprehensive monitoring of smart devices,and promoting the effective sharing of electrical data in smart grids.When a smart device is out of order,the smart contract connected to it will be triggered,and the users can check the running status.This approach allows nodes in the consortium blockchain to request transactions,using the prepaid paymenttransaction with time-lock script to protect the consumer right of request nodes.In addition,we use a(t,n)-threshold secret sharing scheme to realize multiparty sharing of electrical data.Paillier encryption arithmetic is used to guarantee the confidentiality of messages in node transaction.(3)To implement and test the smart grid mechanism based on consortium blockchain designed in this paper,we build the consortium blockchain based on Ethereum and complete the smart contract of smart devices and data sharing.Finally,the consortium blockchain node conducts the contract deployment.We test the overall operation mechanism and analyze the experimental results. |