Lightweight Blockchain Framework for Location-aware Peer-to-Peer Energy Trading

Mohsen Khorasany, Ali Dorri, Reza Razzaghi, Raja Jurdak

Abstract

The rapid proliferation of Distributed Energy Resources (DERs) necessitates efficient peer-to-peer (P2P) energy trading mechanisms. However, existing blockchain solutions often struggle with a "trilemma" of scalability, grid constraints, and privacy. This paper proposes a lightweight, decentralized framework that prioritizes local transactions to reduce grid stress. By utilizing off-chain advertisement storage and a novel Anonymous Proof of Location (A-PoL) algorithm, the system achieves high privacy and scalability. Implementation on low-resource hardware shows a 45% reduction in negotiation times and zero on-chain storage for advertisements, while enhancing social welfare for participants.

Introduction

The energy landscape is shifting from centralized generation to a distributed model where "prosumers"—owners of rooftop solar, home batteries, and electric vehicles—actively participate in the market. Integrating these millions of small-scale participants into traditional markets poses significant challenges for grid operators. Existing P2P models often face three primary hurdles:

  1. Scalability: High computational and storage overhead on blockchains.
  2. Grid Constraints: Long-distance trades straining physical infrastructure through voltage issues and line losses.
  3. Privacy: The risk of revealing sensitive location data when proving proximity for local trading.

This research introduces a framework to settle markets locally and privately without a central authority or Trusted Third Party (TTP).

The Proposed Framework

The framework is structured into two primary layers: an Information Layer for data management and a Physical Layer for energy transfer.

System architecture showing the interaction between the Information Layer and the Physical Layer.

The operational cycle consists of four distinct phases designed to optimize efficiency and grid health:

The iterative process flow of the proposed P2P energy trading framework.
  1. Advertisement: To minimize blockchain bloat, agents post energy surplus or deficit ads to an off-chain Advertisement Database (AD) managed by the grid operator.
  2. Prioritization: Agents use a Priority Index to rank potential partners based on reputation (historical reliability) and electrical distance (impact on power lines). This limits the search space and prevents "broadcast storms."
  3. Negotiation: A decentralized optimization algorithm based on Karush–Kuhn–Tucker (KKT) conditions is used to iteratively reach a consensus on price and quantity.
  4. Energy Trading: Transactions are finalized via atomic meta-transactions, ensuring payments only clear upon verified energy injection.

A critical component is the Anonymous Proof of Location (A-PoL). By using Merkle trees and "noisy" location data (e.g., street-level coordinates), prosumers can prove proximity to neighbors for local trading without compromising their exact identity.

Experimental Evaluation

The framework was evaluated using the standard IEEE 33-bus distribution system benchmark. To simulate real-world residential constraints, the system was implemented on Raspberry Pi 2 nodes.

Key Results

  • Operational Efficiency: The prioritization step reduced total negotiation time by 45%, dropping from 1.88s to 1.04s.
  • Storage Optimization: By offloading advertisements to the AD, the framework achieved 0KB of on-chain storage for ads, compared to 314KB in baseline methods over 10 intervals.
  • Economic and Grid Impact: P2P trading significantly improved consumer utility compared to traditional utility-only trading. Furthermore, the use of "electrical distance" to calculate grid service charges effectively incentivized local trades, reducing congestion.

Discussion and Conclusion

The framework demonstrates that location-aware P2P trading can be both private and efficient. By using "electrical distance" rather than physical distance, the system naturally aligns market incentives with grid stability. However, challenges remain, such as the assumption of tamper-proof smart meters and the relative centralization of the Advertisement Database. Future work will focus on further decentralizing the AD and adapting the model for mobile resources like Electric Vehicles.

Summary updated

BibTeX
@article{khorasany2020lightweight,
  author = {Mohsen Khorasany and Ali Dorri and Reza Razzaghi and Raja Jurdak},
  title = {{Lightweight Blockchain Framework for Location-aware Peer-to-Peer Energy Trading}},
  journal = {International Journal of Electrical Power \& Energy Systems},
  year = {2020},
  doi = {10.1016/j.ijepes.2020.106610},
}
Figure