arXiv:2611.05816cs.CRNov 2026

Manuscript Offprint

arXiv:2611.05816

GRIDSHIELD: Verifiable Grid Feasibility and Manipulation Resistance in Privacy-Preserving Peer-to-Peer Energy Trading

Abdullahil Kafi, Md Zahidul Islam, Alvi Ataur Khalil

Abdullahil Kafi*, Md Zahidul Islam†, and Alvi Ataur Khalil*

*Computer Science, School of Computing, †School of Electrical, Computer, and Biomedical Engineering Southern Illinois University Carbondale, Carbondale, IL, USA Email: {abdullahil.kafi, mdzahidul.islam, a.khalil}@siu.edu

Abstract—Blockchain-based peer-to-peer (P2P) energy markets let neighbours trade directly; however, concentrate unchecked power in the clearing operator. Most prior work addresses only part of this: network-aware clearing respects grid constraints yet operates on plaintext allocations, while privacy-preserving designs hide bids yet either drop the network constraint, enforce it only inside an unauditable computation, or recover it at the cost of a per-circuit trusted setup. Neither considers what happens if an adversary captures the operator's clearing privilege to reorder trades for profit or curtail a rival. We present GRIDSHIELD, a P2P energy-trading system that clears sealed bids with an order-independent batch program, removing the welfare a compromised operator can extract by reordering trades, and proves the result grid-feasible via an aggregated congestion-feasibility proof (ACFP). Exploiting the additive homomorphism of Pedersen commitments, ACFP reconstructs each grid constraint directly from per-bus commitments, reducing feeder-wide feasibility verification over any public grid constraints to a single aggregated range proof over the hidden allocation, with a reveal-and-recompute challenge that catches feasible yet unfair clearings. We introduce congestion-responsibility fairness (CRF), a metric scoring curtailment against each party's physical responsibility for congestion rather than consumption. We evaluate GRIDSHIELD against three prior P2P energy-trading designs across four feeders, including a 240-node Midwest feeder with real hourly loads, on a live Hyperledger Fabric network benchmarked with Hyperledger Caliper. GRIDSHIELD proves an entire round feasible with a few-kilobyte proof and no trusted setup, rejects infeasible allocations two of the three compared designs accept, and sustains ≈ 1064 tx/s.

Index Terms—Peer-to-peer energy trading, smart grid, blockchain, zero-knowledge proofs, hyperledger fabric.

I. INTRODUCTION

Distributed energy resources, rooftop photovoltaics, home batteries, and controllable loads, are turning consumers into prosumers who both produce and consume power. Peer-to-peer (P2P) local energy markets let them trade surplus directly over short clearing intervals, improving the utilization of local generation and deferring costly grid reinforcement [1]. Such markets are increasingly settled on distributed ledgers as a trustless setup [2]. Unlike a financial marketplace, however, an energy market is bound by physics: power flows over shared distribution feeders under hard physical limits, thermal ratings and voltage bounds among them, therefore a valid market outcome must also be network-feasible [3].

That combination creates an authority the market-design literature has largely overlooked. In a permissioned consor-

tium, the distribution system operator (DSO) typically both operates the ordering service (a service that orders transactions into a sequence before they are added to the blockchain) and clears the market, and when a feeder is congested: the scarce resource is room on the wire. The DSO therefore decides who is prioritized first, who is curtailed from trading, and who pays the resulting congestion charge. This concentration of privilege is itself an attack surface. If the operator is compromised or coerced, it can manipulate welfare, much like the maximal extractable value (MEV) that ordering power yields in decentralized finance [4]. Privacy compounds the problem: once bids are hidden to protect prosumers, a curtailed participant cannot distinguish a fair loss from covert favoritism.

Transaction-ordering abuse was formalized as MEV by Daian et al. [4], who demonstrated front-running, back-running, and reordering attacks in decentralized exchanges. The standard countermeasures, fair-ordering consensus [5] and frequent batch auctions [6], remove the advantage of speed and position, however remain anchored to financial payoffs; the contested resource is always blockspace, never physical infrastructure. On the energy side, decentralized market-clearing formulations [7], [8] embed a linearized power-flow model into the matching logic so that admitted trades respect line limits, with distribution locational marginal pricing the standard tool for pricing the resulting congestion [9]; permissioned blockchains such as Hyperledger Fabric [10], whose ordering service concentrates sequencing power in a known operator, provide the settlement substrate. Because bids and consumption traces are privacy sensitive, a parallel literature hardens these markets cryptographically: zero-knowledge proofs of bid validity [11], secure computation over secret-shared bids [12], [13], or succinct proofs of a feasibility circuit [14].

Each line, however, concedes what the other provides. Network-aware clearing enforces line limits on a plaintext allocation [7] whose compliance the operator asserts, so a participant who cannot see the dispatch has no way to check it. Privacy-preserving designs hide the bids; however, either drop the network constraint altogether [15], enforce it only inside a computation no non-participant can audit, or recover public verifiability at the cost of a per-circuit trusted setup. Neither line defends against exploitation of the clearing privilege itself, so a compromised operator that reorders trades for profit or curtails a rival goes undetected. Running two of these designs on our data, we find their verifiers accept allocations loading a conductor to more than its thermal rating. The closest work on the attacker side studies participant-side economic gaming, strategic bidding [16] and inc-dec gaming [17], rather than infrastructure-side ordering by the operator, and MEV research never treats physical grid capacity as the contested resource. This paper occupies that empty intersection.

We propose GRIDSHIELD, a P2P energy-trading system that closes this gap by clearing sealed bids through an order-independent batch program, making the outcome a function of the bid set and eliminating gains from transaction reordering. It then proves that the resulting allocation satisfies the grid constraints without revealing the allocation itself. That proof, an aggregated congestion-feasibility proof (ACFP), rests on a single structural observation: every grid constraint is a linear function of the nodal injections, and Pedersen commitments [18] are additively homomorphic, so a commitment to each constraint can be rebuilt from the per-bus commitments and the public constraint matrix, and feeder-wide feasibility, over any set of linear constraints, collapses to one aggregated range proof with no arithmetic circuit and no trusted setup. Our contributions are three-fold:

  • We propose an aggregated congestion-feasibility proof and show that each radial-feeder grid constraint, thermal line-capacity limits and bus voltage-magnitude bounds alike, can be reconstructed homomorphically from per-bus Pedersen commitments, reducing all feasibility checks to a single aggregated range proof whose size grows logarithmically with the number of constraints.

  • We propose congestion-responsibility fairness, a new metric to measure fairness grounded in grid physics, which measures whether curtailment reflects each party's physical contribution to congested lines, rather than consumption or equal division. It captures disparities missed by conventional measures such as the Gini coefficient.

  • We reproduce three published privacy-preserving and grid-feasible trading designs and compare them with GRIDSHIELD on common market rounds, real distribution feeders, and a 240-node feeder. We further evaluate GRIDSHIELD on a live Hyperledger Fabric network using Hyperledger Caliper.

The rest of this paper is organized as follows: Section II provides background on P2P energy-trading, blockchain and zk proofs. Section III presents the system overview and technical details of GRIDSHIELD, Section IV evaluates its effectiveness, and V discuss limitations and conclude the paper.

References (20)