With the emergence of problems such as the depletion of primary energy and global warming,the development of the energy sector has ushered in profound impacts and challenges.The energy Internet,which combines new energy production capacity,intelligent load and information technology,provides a series of solutions for the flexible access and large-scale utilization of various renewable energy sources.Due to its weak centralization,anti-tampering,and intelligent contracts,the blockchain has become a research hotspot in the new era,and is known as the biggest technological revolution of human beings after the Internet.The blockchain layout has been launched in various industries.These characteristics of the blockchain in the energy field are naturally suitable for the trading needs of the energy Internet.The development of peer-to-peer energy trading can improve the multi-agent efficiency and promote the construction of new energy.At present,there are three main layout directions in the energy field.One is to use the characteristics of weak centralization to realize peer-to-peer energy trading in distributed energy systems.One is to use smart contracts to achieve multi-level scheduling and intelligence of energy.load.Another is to use the non-tamperable nature of the blockchain to maintain the security of the energy system.In this context,this paper first studies the blockchain technology in detail from the aspects of principle,technical model and consensus algorithm.Considering the types of energy transactions,energy transmission and consumption,the energy Local Area Network(LAN)is selected as the research scenario,and the convergence of blockchain technology and energy LAN is analyzed.The definition and model of energy blockchain are given.Then use the blockchain extension technology-lightning network and multi-chain structure to optimize the blockchain layer of the energy blockchain,solve the problem of slow block transaction speed and data structure confusion,and through the corresponding examples Contrasting and analyzing to meet the needs of commercial applications;based on this,a multi-layer transaction architecture model of energy blockchain is built,and energy blockchains are divided into functions: user layer,consensus layer,contract layer,transaction layer,and supervision.Layers and detailed design of each layer.Achieved the purpose of coordinating transaction prices,reducing transaction costs,and improving transaction efficiency;Finally,according to the multi-layer transaction structure of energy blockchain,the user-side energy trading system is designed and explained from the three dimensions of “value-information-physics”.Ethereum was selected as the underlying development platform,and solidity was used as the smart contract language to build and display the application of the energy blockchain trading system. |