Peer-to-Peer EnergyTrade: A Distributed Private Energy Trading Platform

Ali Dorri, Ambrose Hill, Salil S. Kanhere, Raja Jurdak, Fengji Luo, Zhao Yang Dong

Abstract

The transition from centralized power grids to decentralized networks of "prosumers"—consumers who also produce energy—requires secure and efficient trading mechanisms. While blockchain technology offers a decentralized solution, existing platforms often suffer from privacy vulnerabilities, high operational costs, and a continued reliance on trusted third parties. This paper introduces Secure Private Blockchain (SPB), a framework designed to optimize peer-to-peer energy trading. By utilizing atomic meta-transactions and off-chain storage, SPB achieves a 35% reduction in end-to-end delay and a 66% reduction in monetary costs compared to standard blockchain implementations.

Introduction

As residential solar panels and battery storage systems become increasingly prevalent, the traditional centralized energy model is evolving into a distributed network of prosumers. Peer-to-peer (P2P) energy trading allows these participants to exchange surplus energy directly. However, implementing such a system on a standard blockchain faces three critical challenges:

  1. Reliance on Trusted Third Parties (TTPs): Most platforms require a broker to guarantee that energy delivery follows payment.
  2. Privacy Risks: Transaction patterns on public ledgers can reveal sensitive household energy usage habits.
  3. High Overheads: Broadcasting every negotiation message to all nodes leads to network congestion and high "gas" fees.

The Secure Private Blockchain (SPB) Framework

To address these limitations, we propose the SPB framework, which incorporates several technical innovations to ensure privacy and efficiency.

Atomic Meta-Transactions

To eliminate the need for a TTP, SPB introduces a two-step verification process involving Commit To Pay (CTP) and Energy Receipt Confirmation (ERC). A smart contract holds the consumer's funds and only releases them to the producer once the consumer’s smart meter generates an ERC, proving the energy was received within the agreed timeframe.

The SPB transaction workflow for a successful energy trade, illustrating the CTP and ERC exchange.

Off-Chain Storage and Backbone Routing

Scalability is improved by storing CTPs in local miner databases rather than on the main blockchain. Only finalized trades are recorded on-chain, significantly reducing the ledger's memory footprint. Furthermore, instead of network-wide broadcasts, SPB utilizes a backbone of high-resource nodes to "unicast" messages directly between buyers and sellers.

Privacy via Certificate of Existence (CoE)

To protect user identities, smart meters utilize a Merkle tree-based signing process called a Certificate of Existence. This allows a device to prove its legitimacy without revealing its specific identity or linking multiple transactions to the same household.

Experimental Evaluation

The SPB framework was implemented using Solidity smart contracts on a private Ethereum testnet. The experimental testbed consisted of Raspberry Pi 3 devices acting as smart meters and a MacBook Pro serving as the miner. We benchmarked SPB against a baseline model where all negotiation steps are recorded on-chain.

Key Results

The evaluation, averaged over 100 experimental runs, demonstrated significant performance gains:

  • Latency: End-to-end delay for a trade was reduced by 35%.
  • Cost Efficiency: Monetary costs dropped by 66% (from 60 Ether to 20 Ether) due to the reduction in on-chain transactions.
  • Throughput: SPB processed 100 trades in 16.6 minutes, a 48% improvement over the baseline's 32 minutes.
  • Storage: The blockchain size was reduced by 40%, which is vital for resource-constrained smart meters.
Comparison of end-to-end delay between the SPB framework and the baseline blockchain model.

Conclusion and Future Work

The SPB framework provides a robust, private, and cost-effective solution for P2P energy trading. By moving intermediate negotiation steps off-chain and utilizing atomic transactions, the system achieves superior scalability and privacy. Future research will focus on scaling the network to a larger number of nodes, integrating with physical grid hardware, and developing specialized energy-oriented virtual currencies to further incentivize participation.

Summary updated

Abstract

Blockchain is increasingly being used as a distributed, anonymous, trustless framework for energy trading in smart grids. However, most of the existing solutions suffer from reliance on Trusted Third Parties (TTP) and processing overheads. In our previous work, we have proposed a Secure Private Blockchain-based framework (SPB) for energy trading to address the aforementioned challenges. In this paper, we present a proof-on-concept implementation of SPB on the Ethereum private network to demonstrates SPB's applicability for energy trading. We benchmark SPB's performance against the relevant state-of-the-art. The implementation results demonstrate that SPB incurs lower overheads and monetary cost for end users to trade energy compared to existing solutions.
BibTeX
@inproceedings{dorri2019peer,
  author = {Ali Dorri and Ambrose Hill and Salil S. Kanhere and Raja Jurdak and Fengji Luo and Zhao Yang Dong},
  title = {{Peer-to-Peer EnergyTrade: A Distributed Private Energy Trading Platform}},
  booktitle = {IEEE ICBC},
  year = {2019},
  doi = {10.1109/bloc.2019.8751268},
}
Figure