| Under the background of “dual carbon target”,distributed energy mainly based on green energy develops rapidly.In order to promote the nearby consumption of distributed energy,distributed energy is allowed to participate in market trading.Traditional centralized trading is still the main trading mode of distributed energy because of its maturity.However,the traditional centralized trading mode has disadvantages such as low trading efficiency,long settlement time and opaque trading information in the face of distributed energy massive,high frequency and small transaction,which is not conducive to promoting the consumption of distributed energy.Therefore,this paper proposes a distributed energy trading method based on block chain technology to solve the problems faced by distributed energy exchanges at present.First,the centralized distributed energy trading transaction efficiency low,settlement time is long,trading information opaque,and the risk of transaction data been tampered with,causes producing away to join their enthusiasm is not high,not conducive to the problem of distributed energy given,introducing block chain technology,design technology based on block chain of distributed energy trading framework.The distributed network,consensus mechanism,smart contract and asymmetric encryption algorithm of block chain are utilized to provide a decentralized,distrust free,efficient and more secure trading environment for distributed energy transactions.Secondly,in order to ensure the distributed energy market in the smooth and fair trading can fully promote the distributed energy given at the same time,the design of an improved continuous double auction trading mechanism,trading mechanism in a uniform clearing price to ensure that the electric power market fairness at the same time,to ensure that both parties at least one party needs are met.In order to increase the income of producers and consumers,a non-cooperative game model between producers and consumers is established,the trading strategies of producers and consumers are discussed in the trading market,and an adaptive iterative algorithm is designed to solve the game.The Nash equilibrium solution can ensure the maximum income of producers and consumers.The results show that the distributed energy trading model and trading strategy proposed in this paper can improve the income and enthusiasm of producers and consumers,promote the consumption of distributed energy,and reduce the dependence of producers and consumers on the grid.Finally,in order to facilitate the application of distributed energy trading method based on block chain,continuous two-way auction smart contract,power grid transaction smart contract and transaction settlement smart contract matching distributed energy trading are designed on Remix platform.After compiling and debugging,the contract is deployed to the blockchain for testing.The test results show that the smart contract designed in this paper can enable producers to carry out power transactions between producers and consumers and between producers and power grid on the blockchain,and the smart contract can automatically settle after the transaction is completed,which verifies the feasibility of the distributed energy transaction method based on blockchain technology. |