On the design of communication and transaction anonymity in blockchain-based transactive microgrids

Jonatan Bergquist, Aron Laszka, Monika Sturm, Abhishek Dubey

Introduction

As the energy sector shifts toward decentralized models, "transactive microgrids" have emerged as a promising solution. In these systems, prosumers—consumers who also produce energy via solar panels or electric vehicles—trade energy assets directly with their neighbors. While blockchain technology provides the decentralized ledger necessary for trust and transparency, it introduces a significant privacy risk. Public ledgers can inadvertently expose sensitive data, such as a resident's daily routine, appliance usage, or financial status, to neighbors, ISPs, and malicious actors.

This paper explores the design of an architectural extension to the PETra (Privacy-preserving Energy Transactions) framework. The proposed solution addresses the critical intersection of decentralized energy markets and data privacy by combining advanced network-layer anonymity with cryptographic ledger-layer protections.

The Privacy Trilemma

Implementing privacy in a transactive microgrid involves balancing three competing requirements:

  1. Privacy: Protecting the sensitive habits and identities of prosumers.
  2. Integrity: Ensuring the system prevents "double-spending" of energy assets.
  3. Grid Safety: Allowing the Distribution System Operator (DSO) to regulate trades to prevent local grid instability, such as transformer overloads.

Existing blockchain implementations often fail to protect both the communication layer (IP addresses) and the transaction layer (the link between buyer and seller) simultaneously.

Methods: The PETra Framework

The authors build upon the PETra workflow, which utilizes "quantized energy asset tokens" to represent units of energy. The workflow involves a multi-step process where assets are created, verified by the DSO, and then traded anonymously on the blockchain.

The PETra workflow illustrating the lifecycle of energy assets from creation to transaction on the blockchain.

1. Communication Anonymity

In a microgrid, participants are often physically close and connected to the same network feeder, making IP-based identification easier. To counter this, the authors propose using the Invisible Internet Project (I2P) and its garlic routing protocol.

Conceptual diagram of layered encryption in anonymous communication protocols like garlic routing.

Unlike standard onion routing, garlic routing bundles multiple messages together, which helps thwart "timing analysis" attacks. In these attacks, an adversary correlates the time a message is sent with the time a transaction appears on the ledger. The system also employs noise generation, where nodes send "zero-asset" transactions even when not trading to obfuscate real activity.

2. Transaction Anonymity

To decouple identities from transactions on the ledger, the paper evaluates two primary cryptographic tools:

  • Ring Signatures: Similar to the CryptoNote protocol used by Monero, this allows a user to sign a transaction on behalf of a group. Observers can verify that a member of the group authorized the trade but cannot identify the specific individual.
  • Zero-Knowledge Proofs (zk-SNARKs): These allow a smart meter to prove it has the physical capacity to fulfill a trade without revealing the actual energy amount or the meter’s identity.

Key Insights and Performance

A critical design feature is the role of the DSO as a "blind" regulator. The DSO validates the initial physical capacity of a prosumer to produce energy but remains excluded from the details of subsequent peer-to-peer trades. This maintains grid safety without compromising user privacy.

Regarding performance, the authors note a significant trade-off in latency. Generating a zk-SNARK for a private transaction currently takes approximately 3 minutes, which may be acceptable for energy "futures" trading but is a bottleneck for high-frequency markets. However, verification is nearly instantaneous at 8.5 ms.

Limitations and Future Work

While the proposed architecture provides a robust roadmap for privacy, challenges remain. The computational overhead of zk-SNARKs and the limited programmability of current privacy-centric protocols (like Zerocash) hinder the implementation of complex energy auction logic. Future research will focus on improving the efficiency of these transactions in IoT environments through schemes like "Z-Channel" to better support the high-frequency demands of modern microgrids.

Summary updated

BibTeX
@inproceedings{bergquist2017design,
  author = {Jonatan Bergquist and Aron Laszka and Monika Sturm and Abhishek Dubey},
  title = {{On the design of communication and transaction anonymity in blockchain-based transactive microgrids}},
  booktitle = {SERIAL@Middleware},
  year = {2017},
  doi = {10.1145/3152824.3152827},
}
Figure