| With the increasing attention to environmental pollution and other issues,clean and renewable distributed energy generation has become a hot-spot.However,due to the access of a large number users who use distributed new energy,the traditional centralized energy interaction system is no longer suitable for the current application situation.The way to make distributed new energy users participate in the energy Internet market efficiently and safely is an important issue,which will promote the development of new energy.This thesis mainly applies the blockchain to the energy Internet trading system.By using alliance chain,consensus algorithm,intelligent contract and other technologies,users can achieve direct peer-to-peer transactions without the participation of third parties.Since all participating nodes jointly maintain the same ledger,the transaction cost is reduced,the transparency is improved,and the information timeliness is enhanced by reducing the information flow process.According to the application scenario of combining blockchain with energy Internet,this thesis designs an energy Internet trading system based on blockchain.The specific contributions are as following.1.This thesis studies the management mode and service requirements of the energy trading system,established the underlying blockchain network,designed the deployment of nodes,realized the authentication of participating nodes and the interaction between each node.2.By writing the logic code of intelligent contract,we can realize the business logic of inquiry,electricity sale and electricity purchase.The test results show that we have effectively completed the corresponding functions.3.This thesis uses MVC framework and Tomcat web services to build a web services platform,which realized some specific applications by encapsulating the functions of starting the underlying network and energy transaction,such as operating the underlying blockchain network in the browser.The energy Internet trading system designed in this thesis has the characteristics of decentralization,information security and transparency.The transaction data is saved on a chain that can be permanently saved and cannot be tampered with intelligent contract.Users can directly participate in the transaction,the operation results show that the system has a good feasibility thanks to the implementation of the Web application interface. |