DEGREE PROJECT IN COMPUTER SCIENCE AND ENGINEERING, SECOND CYCLE, 30 CREDITS STOCKHOLM, SWEDEN 2018
P2P Electricity transaction between DERs by Blockchain Technology
RUOGU LI
KTH ROYAL INSTITUTE OF TECHNOLOGY SCHOOL OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCE KTH Royal Institute of Technology
School of Electrical Engineering and Computer Science
Master’s Thesis in Computer Science and Computer Engineering P2P Electricity transaction between DERs by Blockchain Technology Author: Ruogu Liu Supervisors: Anne Håkansson Xue Wang
Examiner: Prof.Mihhail Matskin, KTH, Sweden
ii Abstract
The popularity of blockchain technologies increases with a significant rise in the price of cryptocurrency in 2017, which drew much attention in the academia and industry to research and implement new application or new blockchain technology. Many new blockchains have emerged over the last year in a broad spectrum of sectors and use cases including IOT, Energy, Finance, Real estate, Entertainment, etc. Despite many exciting research and applications have been done, there are still many areas worth investigating, and implementation of the blockchain based distributed application are still facing much uncertainty and challenging since blockchain is still an emerging technology. Meanwhile, the energy sector is under a transition to be digitalized and more distributed. A global technology revolution has disrupted the conventional centralized power system with distributed resources and technologies, like photovoltaic units (PV), batteries, electric mobilities, etc. The citizens then have control of their generation and consumption profiles. The purpose of this master thesis is to explore existing blockchain technology, and smart contracts such as IOTA, NEO, Ethereum Tobalaba, which can be adapted in the energy sector. Within this thesis, blockchain and the smart contract is proposed as a way of building distributed applications for a p2p transaction use case in the energy asset management platform. A design science research methodology is applied for the artifact development and evaluation for the research result. The design was implemented on Ethereum and tested on Tobalaba public network with ether and GAS. The evaluation shows the artifact for the p2p transaction in energy asset man- agement platform fulfill the completeness, and correctness of the design requirement. The result of the performance test on Tobalaba networks shows a correlation between GAS consumption and transaction time.
Keywords— Blockchain, Peer-to-peer, Energy System, Ethereum, Tobalaba, Transaction, Energy asset
Referat
Den popularitet av blockchain-tekniker ökar med en signifikant ökning av kryp- tokurrencyprisen år 2017, vilket gav stor uppmårksamhet i akademin och indus- trin för att undersöka och implementera ny applikation eller ny blockchain-teknik. Många nya blockblock har uppstått under det senaste året inom ett brett spektrum av sektorer och anvånder fall som IOT, energi, finans, fastigheter, underhållning etc. Pågrund av många spånnande undersökningar och applikationer finns det fortfarande många områden som år vårda att undersöka, och implementeringen av den blockchain- baserade distribuerade applikationen år fortfarande konfronterad med stor osåkerhet och utmanande eftersom blockchain fortfarande år en uppkommande teknik. Under tiden år energisektorn under en övergång att bli digitaliserad och mer distribuerad. En global teknologirevolution har stört det konventionella centraliserade kraftsys- temet med distribuerade resurser och teknologier, såsom fotovoltaiska enheter (PV), batterier, elektrisk rörlighet etc. Medborgarna har dåkontroll över sina generations- och konsumtionsprofiler. Den hår inriktningen år att undersöka befintliga blockchainteknologi och smarta kontrakt som IOTA, NEO, Ethereum Tobalaba, som kan anpassas inom energisek- torn. Inom denna avhandling har blockchain och the slimme kontrakt föreslagits som en metod för byggfördelade applikationer för en p2p-transaktionsanvåndning i energiförvaltningsplattformen. En designvetenskaplig forskningsmetodik anvånds för artefaktutveckling och utvårdering av forskningsresultatet. Designen genom- fördes påEthereum och testades påTobalabas o