Department of Electronic Engineering, Sogang University, Seoul 04107, Korea.
Sensors (Basel). 2021 Mar 11;21(6):1985. doi: 10.3390/s21061985.
We implement a peer-to-peer (P2P) energy trading system between prosumers and consumers using a smart contract on Ethereum blockchain. The smart contract resides on a blockchain shared by participants and hence guarantees exact execution of trade and keeps immutable transaction records. It removes high cost and overheads needed against hacking or tampering in traditional server-based P2P energy trade systems. The salient features of our implementation include: 1. Dynamic pricing for automatic balancing of total supply and total demand within a microgrid, 2. prevention of double sale, 3. automatic and autonomous operation, 4. experiment on a testbed (Node.js and web3.js API to access Ethereum Virtual Machine on Raspberry Pis with MATLAB interface), and 5. simulation via personas (virtual consumers and prosumers generated from benchmark). Detailed description of our implementation is provided along with state diagrams and core procedures.
我们在以太坊区块链上使用智能合约实现了一种生产者和消费者之间的点对点 (P2P) 能源交易系统。智能合约驻留在参与者共享的区块链上,因此可以保证交易的准确执行,并保持交易记录的不可变。它消除了传统基于服务器的 P2P 能源交易系统中针对黑客攻击或篡改所需的高成本和开销。我们的实现的突出特点包括:1. 动态定价,用于自动平衡微电网内的总供应和总需求,2. 防止双重销售,3. 自动和自主操作,4. 在测试平台上进行实验(Node.js 和 web3.js API 可访问带有 MATLAB 接口的 Raspberry Pis 上的以太坊虚拟机),5. 通过角色进行模拟(从基准测试生成的虚拟消费者和生产者)。我们提供了详细的实现描述,以及状态图和核心过程。