Skip to main content


Front. Blockchain, 21 December 2020
Sec. Non-Financial Blockchain
Volume 3 - 2020 |

The Role of Blockchains in Multi-Stakeholder Transactive Energy Systems

Scott Eisele1 Aron Laszka2 Douglas C. Schmidt1* Abhishek Dubey1
  • 1EECS, Institute for Software Integrated Systems, Vanderbilt University, Nashville, TN, United States
  • 2Department of Computer Science, University of Houston, Houston, TX, United States

Power grids are undergoing major changes due to rapid growth in renewable energy and improvements in battery technology. Prompted by the increasing complexity of power systems, decentralized solutions are emerging that arrange local communities into transactive microgrids. This paper addresses the problem of implementing transactive energy mechanisms in a distributed setting, providing both privacy and safety. Specifically, we design and implement an automated auction and matching system that ensures safety (e.g., satisfaction of line capacity constraints), preserves privacy, and promotes local trade and market efficiency for transactive energy systems. This design problem is challenging because safety, market efficiency, and privacy are competing objectives. We implement our solution as a decentralized trading platform built on blockchain technology and smart contracts. To demonstrate the viability of our platform, we analyze the results of experiments with dozens of embedded devices and energy production and consumption profiles using an actual dataset from the transactive energy domain.

1. Introduction

Current energy markets are competitive wholesale markets that are run by Regional Transmission Organizations (RTO). An RTO typically runs two energy markets: a day-ahead market, which occurs 24 h prior to energy dispatch, and a real-time market, which is run once each hour based on predicted energy demand. Any adjustments necessary to meet changing energy demands are handled by ancillary services, such as Reserves, which can be integrated with the grid in under an hour, and Regulation, which maintains system frequency by adjusting output. In this market, power plants and utility operators place offers that are matched to determine pricing.

Due to the advent of individually-owned distributed energy resources (DER), such as solar panels (Randall, 2015) and energy storage devices, balancing supply and demand becomes more challenging for a centralized controller. These challenges stem from the fact that supply (e.g., solar, wind, etc.) (Barbieri et al., 2017) and demand (e.g., electric vehicle charging) are more volatile. They also more frequently occur “behind the meter,” meaning they are harder to measure. These conditions are further complicated since they are controlled by many different users, making them hard to manage (Abrishambaf et al., 2019). Maintaining the balance between supply and demand is vital because imbalances shift the frequency of alternating current (AC) power, which in turn alters the behavior of devices connected to the power line. If these errors are not appropriately addressed, they can lead to physical system damage.

These challenges with DER have led to a recent surge of interest in peer-to-peer transactive energy systems (TES), as shown in Figure 1.


Figure 1. DER enables transition from top-down energy distribution to peer-to-peer energy transfers.

In TES, energy producers and consumers (known as “prosumers”) submit offers to trade energy. If the trades in the system are not balanced—or if they exceed the safety constraints of the system—they can cause physical damage.

Safe trades can be incentivized by recording trades and fining prosumers for deviating from them. Providing this degree of oversight, however, requires knowledge about which prosumer has made a given offer. In turn, this type of information could violate privacy concerns if it is not carefully managed.

An example TES is shown in Figure 2, where each node is associated with a participant in the local peer-to-peer energy trading market. This figure shows how a feeder consists of a number of nodes, some of which have the capability to sell energy. Each feeder is protected by an overcurrent relay at the junction of the common bus. The inset figure shows that a node in the network has different types of loads, some of which can be scheduled, making it possible for a consumer to bid in advance for those loads. A smart meter ensures proper billing per node.


Figure 2. A multi-feeder microgrid example of a transactive energy system.

1.1. Common Problems in Transactive Energy Systems

Using TES effectively in practice requires addressing the following problems (which we cover in this paper):

1. Ensuring the physical stability and safety of the grid apparatus, e.g., dynamically balancing supply and demand without violating line capacity constraints.

2. Ensuring that a peer-to-peer market operates in a trustworthy manner, even if some of the nodes are malicious.

3. Ensuring privacy since TES disseminate information amongst participants to enable finding suitable trade partners1.

Our recent work (Laszka et al., 2017) introduced Privacy preserving Energy Transactions (PETra), which is a blockchain-based solution that (1) enables trading energy futures in a secure and verifiable manner and (2) preserves prosumer privacy. These objectives were accomplished via a public distributed ledger for (1) and anonymized identifiers with a mixing service that prevents tracing the assets being traded back to the owner for (2). Our market mechanism was opportunistic, however, since each consumer looked at the available asks from producers and chose the one that fit the needs of the consumer the best, which was tedious and error-prone.

To address limitations with our prior work, this paper describes the structure, functionality, and performance of an automated matching system that maximizes the amount of energy traded within the local market. Moreover, we now consider system-wide safety constraints, whereas our prior work only considered constraints on individual prosumers. As in our prior work (Laszka et al., 2017), we use the Ethereum blockchain platform to implement parts of our design via distributed ledgers. We chose Ethereum because it meets our requirements better than the alternatives. In particular proof-of-work consensus is better understood and has more formal analysis (Garay et al., 2015; Cachin and Vukolić, 2017; Tholoniat and Gramoli, 2019). There are alternatives such as Hyperledger Sawtooth (Olson et al., 2018) which uses a “Proof of Elapsed Time” consensus algorithm, however this relies on the Intel SGX hardware and we did not want to include that requirement in the system. Another alternative is Hyperledger Fabric (Hyperledger, 2017) whose consensus is deterministic and relies on a known number of participants in the blockchain network and does not handle partitions well. We want a transactive energy market to continue operating despite partitions. To fully attain this goal we would require a special version of the consensus protocol that allowed two chains of transactions to be merged after the partition healed since trades must have happened on both sides. This is something to be explored in the future. Additionally, we required a blockchain platform that is popular and well-documented. This approach is consistent with the recent trends in the research community and power industry focused on transactive energy markets (Orsini et al., 2017; Power Ledger Pty Ltd, 2017).

Disintermediation of trust is widely regarded as the primary feature of blockchain-based transaction systems (Peck, 2017). Applying them in TES is appealing since they elegantly integrate the ability to immutably record the ownership and transfer of assets, with essential distributed computing services, such as Byzantine fault-tolerant consensus on the ledger state, as well as event chronology. The ability to establish consensus on state and ordering of events is important in the context of TES to detect trades that could destabilize the system.

1.2. Research Contributions

This paper makes the following contributions to research on transactive energy systems (TES):

• We co-design an automated matching mechanism and a decentralized transaction management platform that supports the energy trading workflow while ensuring prosumer privacy (i.e., their identity) and system safety (e.g., satisfaction of line capacity constraints). This design problem is hard due to inherent conflicts between safety, privacy, and market efficiency.

• We enable the market controller to consider the effects of energy storage in batteries by enabling prosumers to specify multiple time intervals in which they could trade energy by explicitly indicating their flexibility.

• We describe the architecture and the protocol specification of our platform. Our solution combines the security and immutability of blockchain-based smart contracts with the efficiency of traditional computational platforms via a hybrid solver that is used to match energy trades.

• We present an experimental evaluation of our Transaction Management Platform (TMP) and the resulting market performance, with and without the availability of prosumer-owned battery storage. We consider total energy trade throughput as the market performance metric.

Paper Organization The remain of this paper is organized as follows: section 2 describes our transactive microgrid model and reviews system requirements; section 4 formalizes the energy trading problem used as a case study throughout this paper; section 5 examines our hybrid approach to solve the energy trading problem efficiently despite our use of a decentralized computing platform; section 6 explores the structure and functionality of a TMP we developed to provide the energy trading and market clearing functionality described in earlier sections. Section 7 analyzes the results of experiments we conducted to evaluate the performance of our system; and section 8 presents concluding remarks and lessons learned from our work.

2. System Model

We consider a microgrid with a set of feeders arranged in a radial topology. Although the methods presented in this paper are extensible to general tree topologies involving branching, we apply a radial topology to simplify checking the load flow constraints. A feeder has a fixed set of nodes, each representing a residential load or a combination of load and distributed energy resources (DERs), such as rooftop solar and batteries, as shown in Figure 2. Each node is associated with a participant in the local peer-to-peer energy trading market.

Figure 2 shows that a distribution system operator (DSO) also participates in the market. It may use this market to incentivize timed energy production within the microgrid to stabilize the grid and promote ancillary services (Dag and Mirafzal, 2016), such as those outlined in section 1. Moreover, the DSO supplies residual demand not met through the local market.

Participants in our system model settle trades in advance, which allows them to schedule their power transfers into the local distribution system. There are typically three phases in these operations: (1) discovery of compatible offers, (2) matching of buying offers to selling offers (either by each prosumer individually or by an automated matching algorithm), and (3) performing the energy transaction and financial transaction.

2.1. System Requirements

Below we describe the requirements we addressed when building a decentralized Transaction Management Platform (TMP) that supports the workflow across the microgrid described above.

2.1.1. Communication Fabric

The first requirement is the existence of an appropriate communication and messaging architecture. The TMP must collect participants' offers and make them available to buyers and sellers. Moreover, the market algorithm must communicate clearing prices and buyer-seller matchings.

To meet the operational and safety requirements described below, these messages must be delivered reliably under strict timing constraints derived from the deadline by which a trade must clear. Moreover, the TMP must be capable of handling high volumes of micro-transactions anticipated in peer-to-peer trading scenarios. Finally, the communication fabric must support confidentiality, integrity, and non-repudiation of transactional data.

2.1.2. Operational Safety and Stability

Trading activity should not compromise the stability of the physical system operation. For instance, capacity constraints along any feeder should be respected, e.g., each feeder is rated for a maximal power capacity2. Local energy trade settlements should therefore ensure the instantaneous power flows stemming from power production and consumption never violate safety constraints.

2.1.3. Market Security and Efficiency

The TMP must include provisions for ensuring the protection of prosumer interests, as well as those of the DSO. Prosumer interests include being billed correctly based on energy prices set by the market and the measurements made by smart meters. In the context of microgrids connected to the broader power grid, the system should match supply and demand as closely as possible, while respecting safety constraints. In particular, the TMP should aim to maximize the amount of energy traded.

2.1.4. Privacy

Information like the amount of energy produced, consumed, bought, or sold by any prosumer should be available only to the DSO3. The owners of the bids and asks should remain anonymous to other participants. It should not be possible to infer a participant's energy usage patterns and personal information, such as financial standing, from their trading activity. In particular, inference of energy usage patterns can be exploited by inferring the presence or absence of a person in their home.

3. State-of-the-Art and Related Work Review

This section presents an overview of the state-of-the-art and compares our approach with related work on transactive energy systems (TES).

3.1. Existing Implementations

The Brooklyn Microgrid project is a practical implementation of a TES (Mengelkamp et al., 2018). This project was initially evaluated in terms of its ability to meet requirements deemed necessary for an efficient microgrid energy market. The first requirement noted by the authors (which they call the“microgrid setup”) defines who the participants are and their respective capabilities, access control, and assumptions regarding their behavior (honesty, rationality, etc.). This setup also defines the system objectives and the form of energy to trade, as well as the physical transfer mechanism, whether it be via the bulk power grid or an internal microgrid.

The second requirement the authors describe is a “grid connection,” which is the connection from a microgrid to the bulk power grid. This component serves the same purpose as the specification of the transfer mechanism in the first requirement above. The authors' third requirement identified is the “information system,” which hosts the market and provides the communication framework for participants using a private blockchain implementation built upon Tendermint (Amoussou-Guenou et al., 2019), which is a platform for replicating applications securely and consistently on many machines. This platform provides a variant of the Practical Byzantine Fault Tolerance (PBFT) consensus mechanism and a general-purpose application interface (Tendermint).

The information system outlined above hosts the fourth required component called the “market mechanism.” This mechanism defines how transactions are made, including payment and allocation rules. These rules ensure that the trades do not violate grid power constraints.

The market mechanism defines the fifth requirement, known as the “pricing mechanism”, which determines the cost of energy to exchange. This pricing mechanism is implemented using Ethereum “smart contracts” (Szabo, 1997). In this context, a smart contract is a custom program that operates on the data stored on a distributed ledger. It can be used to establish agreements between participants by ensuring some computation occurs when conditions specified in the program are true.

The final two required components defined by the Brooklyn Microgrid project are an automated trader for the participants and the regulations in which the TES is deployed. Despite the authors' thorough description of these market components, they did not assess the costs associated with using a blockchain-based ledger as their information system, which could limit efficiency of the system. They also rely on privacy associated with using public keys, though keys in blockchain-based systems can be associated to owners through transaction-graph analysis (Bonneau, 2018).

The Brooklyn Microgrid system ensures safety and stability via the connection to the bulk power grid. Their approach, however, does not allow independent operation since this would require time synchronized action, which was not part of their design. Their system's resilience is thus limited.

The Brooklyn Microgrid project utilized a smart contract to implement the market mechanisms, as outlined above. Smart contracts, however, often suffer from vulnerabilities that are hard to correct due to the nature of distributed ledgers. For example, Newman (2017) analyzed 19,366 smart contracts and found that 8,833 contracts had one or more security issues.

Errors in smart contracts can result in devastating security incidents. For example, in the “DAO attack” $50 million in cryptocurrency was stolen (Finley, 2016) and in the multi-signature Parity Wallet library hack $280 million in cryptocurrency was lost. These vulnerabilities highlight that if such approaches are used, care is needed to ensure contract correctness due to the significant impact on safety, security, resilience, and reliability.

Vieira, the author of Vieira (2018), implements a micromarket setup based on the Brooklyn Microgrid project where they compare the costs of traditional energy systems to a distributed ledger-based microgrid market. Vieira's paper examines two auction mechanisms: (1) a continuous double auction and (2) a uniform-price double-sided auction. Vieira concludes that the continuous double auction could be implemented with Ethereum, though it is subject to expensive transaction costs. A Uniform-price double-sided auction was too complex using Ethereum, so it was performed on a centralized server.

3.2. Understanding the Gaps

Implementing a Transaction Management Platform (TMP) requires a communication architecture, as well as trading mechanisms that provide the capability to match bids and asks. Blockchain-based solutions have the potential to enable large-scale energy trading based on distributed consensus systems. However, popular blockchain solutions, such as Bitcoin (Nakamoto, 2008) and Ethereum (Buterin et al., 2013), possess design limitations that prevent their direct application to matching energy trades. These limitations stem from the complexity of additional constraints and checks required, beyond the transactional integrity check provided by proof-of-work algorithms.

For example, Aitzhan and Svetinovic (Aitzhan and Svetinovic, 2016) implemented a proof-of-concept platform for decentralized smart grid energy trading using blockchains. Their system is based on proof-of-work consensus and they do not consider grid control, stability, or scalability. Moreover, their approach still incurs privacy problems since all transactions in these systems are public (Kosba et al., 2016).

Most related work discussing privacy examines it in the context of smart meters. For example, McDaniel and McLaughlin (McDaniel and McLaughlin, 2009) discuss privacy concerns of energy usage profiling, which smart grids potentially enable. Efthymiou and Kalogridis (2010) describe a method for securely anonymizing frequent electrical metering data sent by a smart meter via a third-party escrow mechanism.

Tan et al. (2013) study privacy in a smart metering system from an information-theoretic perspective in the presence of energy harvesting and storage units. Their results show that energy harvesting provides increased privacy by diversifying the energy source, while a storage device can be used to increase both energy efficiency and privacy. Transaction data, however, provides more fine-grained information than smart meter usage patterns (Hussain et al., 2017). Majumder et al. (2014) present an iterative double auction trading mechanism that preserves participants' privacy. However, this privacy property pertains to the participants' utility function models, not their identities.

Existing energy trading markets, such as the European Energy Exchange (European Power Exchange, 2017) and project NOBEL in Spain, employ the double-auction market mechanism (Ilic et al., 2012), which can preserve participant privacy. Typical exchange implementations, however, involve centralized database architectures that are prone to single points of failure.

Faqiry and Das (2016) present an auction mechanism for maximizing social welfare of buyers and sellers if the supply is small. Their approach also provides some privacy, i.e., participants do not reveal their utility function. The objective function of the microgrid controller is to maximize the power sold. The social welfare objective function can simultaneously be maximized by constricting buyers' utility functions to be convex.

To make the trading fair, the latter part of Faqiry and Das's paper considers an approach that discards the privacy maintained during the first phase. Their work contains no mechanism to check whether the buyer can produce the power they claim they can supply, which may result in instability. The authors also briefly mentioned that a distributed algorithm could be applied to their auction mechanism, though they did not implement this approach.

In contrast, our work presented in this paper provides a distributed systems mechanism that considers the problem of a broader definition of privacy, safety, and protection from malicious actors as a combined problem.

4. Overview of the Energy Trading Problem

This section formulates the problem of matching energy future bids with asks (i.e., matching offers to buy energy intended for delivery in the future with offers to sell energy) in the local energy trading market. Our formulation aims to promote market efficiency by maximizing the amount of energy futures traded within the microgrid, while satisfying microgrid safety requirements. We first introduce an initial problem formulation that solves the energy trading problem offline. We then describe the version of this problem that considers a stream of incoming offers, which are cleared periodically.

4.1. Safety Requirements

While trades are being cleared, we must consider safety requirements. At the distribution level, the amount of power that can be sent over a transmission line is typically limited by the thermal properties of the conductor and is physically enforced by protection equipment, such as overcurrent relays. In traditional power systems, these capacity constraints are enforced by deploying some combination of load and generation curtailment schemes, which effectively impose upper bounds on the amount of power consumed by each load and the amount of power injected into the network by each source. For dispatchable generation, these upper bounds are typically calculated by solving some variant of an optimal power flow problem (Frank and Rebennack, 2016).

The settings of a TES is fundamentally different from settings in which economic dispatch is appropriate, i.e., privately-owned DERs are not dispatchable by the DSO. We therefore implement line capacity safety constraints by formulating them as constraints in the trading problem described below.

4.2. Problem Formalization

We begin by introducing a notation for elements of the microgrid, which is summarized in Table 1. We let F denote the set of feeders.


Table 1. List of symbols.

For a feeder fF, we let Cfext denote the maximum amount of power allowed to flow into or out of the feeder at any point in time. Similarly, we let Cfint denote the maximum amount of power that can be consumed or produced within the feeder at any point in time4. We assume that time is divided into intervals of fixed length Δ and we refer to the tth interval as time interval t.

The input of the energy trading problem is the set of buying and selling offers posted by the participants5. For feeder fF, we let Sf and Bf denote the set of selling and buying offers posted by participants located in that feeder, respectively6. A selling offer sSf is a tuple (Es, Is, Rs), where

Es is the amount of energy to be sold,

Is is the set of time intervals in which the energy could be provided,

Rs is the reservation price, i.e., lowest unit price for which the participant is willing to sell energy.

Similarly, a buying offer bBf is a tuple (Eb, Ib, Rb), where the values pertain to consuming/buying energy instead of producing/selling, and Rb is the highest price that the participant is willing to pay. For convenience, we also let S and B denote the set of all buying and selling offers (i.e., we let S=fFSf and B=fFBf).

We say that a pair of selling and buying offers sS and bB is matchable if

RsRb    (1)
IsIb.    (2)

In other words, a pair of offers is matchable if there exists a price that both participants would accept and a time interval in which the seller and buyer could provide and consume energy. For a given selling offer sS, we let the set of buying offers that are matchable with s be denoted by M(s). Similarly, we let the set of selling offers that are matchable with a buying offer b be denoted by M(b) and we let I(s, b) = IsIb.

A solution to the energy trading problem is a pair of vectors (p, π), where

ps,b,t is a non-negative amount of power that should be provided by the seller sS and consumed by the buyer bM(s) in time interval tI(s, b)7.

• πs,b,t is the unit price for the energy provided by seller sS to buyer bM(s) in time interval tI(s, b).

A pair of vectors (p, π) is a feasible solution to the energy trading problem if it satisfies the following constraints:

• The amount of energy sold or bought from each offer is at most the amount of energy offered:

sS: bM(s)tI(s,b)ps,b,t·ΔEs    (3)
bB: sM(b)tI(s,b)ps,b,t·ΔEb    (4)

• The amount of power flowing into or out of each feeder is below the safety limit in all time intervals:

fF,t:     (sSfbBps,b,t)-(bBfsSps,b,t)Cfext    (5)
fF,t:     (sSfbBps,b,t)-(bBfsSps,b,t)-Cfext    (6)

• The amount of energy consumed and produced within each feeder is below the safety limit in all time intervals:

fF,t: bBfsSps,b,tCfint    (7)
fF,t: sSfbBps,b,tCfint    (8)

• The unit prices are between the reservation prices of the seller and buyer:

sS,bM(s),tI(s,b): Rsπs,b,tRb    (9)

The objective of the energy trading problem is to maximize the amount of energy traded. Formally, an optimal solution to the energy trading problem is

max(p,π)Feasible(S,B) sSbM(s)tI(s,b)ps,b,t,    (10)

where Feasible(S,B) is the set of feasible solutions given selling and buying offers S and B (i.e., set of solutions satisfying Equations (3) to (9) with S and B).

4.3. Advanced Problem Formulation

Our basic problem formulation described in section 4.2 assumed that (1) all buying and selling offers B and S are available at once and (2) the market is cleared in one take. In practice, however, prosumers and the DSO may continuously submit new offers as their predictions, their physical state, and the market conditions change over time. As the set of submitted offers grows, the optimal solution to the energy trading problem may change, and the optimal value of each ps,b,t may vary.

While each change can increase the amount of energy traded, the trade values ps,b,t and πs,b,t must be finalized at some point in time. At the very latest, values for interval t must be finalized by the end of interval t−1 or else participants would have no chance of actually delivering the trade. We therefore extend the energy trading problem to consider a growing set of offers and a time constraint for finalizing trades. Our approach finalizes a minimum set of trades in each interval, which maximizes efficiency while providing safety.

We assume that all trades for time interval t (i.e., all values ps,b,t and πs,b,t) must be finalized by the end of time interval tTclear, where Tclear is a positive integer constant, which is set by the operator. Preventing “last-minute” changes is crucial for safety and fairness since it allows both the DSO and the prosumers to prepare for delivering (or consuming) the right amount of power. In practice, the value of Tclear must be chosen by taking into account both physical constraints (e.g., how long it takes to turn on a generator) and communication delay (e.g., some participants may be delayed in learning of a trade due to network disruptions).

We let p^s,b,t and π^s,b,t denote the finalized trade values. Likewise, we let B(t) and S(t) denote the set of buying and selling offers that participants have submitted by the end of time interval t. The system then takes the following steps at the end of each time interval t:

• Find an optimal solution (p*, π*) to the extended energy trading problem:

max(p,π)Feasible(S(t),B(t))sS(t)bM(s)τI(s,b)ps,b,τ    (11)

subject to

τ<t+Tclear: ps,b,τ=p^s,b,τ    (12)
πs,b,τ=π^s,b,τ    (13)

• Finalize trade values for time interval t+Tclear based on the optimal solution (p*, π*):

p^s,b,t+Tclear:=ps,b,t+Tclear*    (14)
π^s,b,t+Tclear:=πs,b,t+Tclear*    (15)

By performing the steps outlined above at the end of each time interval, trades are always cleared based on as much information as possible (i.e., considering as many offers as possible) without violating any safety or timing constraints.

5. Our Solution Approach to the Energy Trading Problem

This section presents our hybrid approach for solving the energy trading problem on a decentralized computing platform. This hybrid approach combines the auditability and trustworthiness of Ethereum blockchain-based smart contracts with the efficiency of more traditional computing platforms. We first show how to solve the problem by formulating it as a linear program and then describe the computation and verification performed by the computational nodes and the smart contract in a decentralized microgrid.

5.1. Linear-Programming Solution

We solve the basic energy trading problem efficiently by formulating it as a linear program. First, we create real-valued variables ps,b,t and πs,b,t for each sS,bM(s),tI(s,b). We then reformulate the matching problem as a linear program:

maxp,πsSbM(s)tI(s,b)ps,b,t    (16)

subject to Equations (3) to (9) and

p0 and π0.    (17)

The extended energy trading problem introduced in section 4.3 can similarly be reformulated as a linear program by considering S(t), B(t), p^, π^, and the additional constraints.

5.2. Hybrid Solver Implementation

Although solving linear programs is not computationally hard, it can be challenging in resource-constrained computing environments with a large number of variables and constraints. Moreover, computation is relatively expensive on blockchain-based distributed platforms, so solving the energy trading problem using a blockchain-based smart contract does not scale in practice8. We therefore apply a hybrid approach that combines the trustworthiness of blockchain-based smart contracts with the efficiency of more traditional computational platforms.

Our hybrid approach uses a high-performance computer to solve the computationally expensive linear program off-blockchain and then applies a smart contract to record the solution on the blockchain. Implementing this hybrid approach securely and reliably required us to address the following issues:

• Computations performed off-blockchain do not satisfy the auditability and security requirements that smart contracts do. The results of any off-blockchain computations must therefore be verified in some way by the smart contract before recording them on the blockchain.

• Due to network disruptions and other errors (including deliberate denial-of-service attacks), the off-blockchain solver may not provide the smart contract with a solution on time (i.e., before trades should be finalized). The smart contract must therefore be able to proceed without an up-to-date solution.

• To enhance reliability, the smart contract should accept solutions from multiple off-blockchain sources, though these sources may provide different solutions. The smart contract must therefore be able to choose from multiple solutions, some of which may come from compromised computers.

5.2.1. A Blockchain-based Smart Contract

We implement a smart contract that can (1) verify whether a solution (p, π) is feasible and (2) compute the value of the objective function for a feasible solution. Compared to finding an optimal solution, these operations are computationally inexpensive and can thus be performed on a blockchain-based decentralized platform. Our smart contract uses these capabilities to provide the following functionality:

• Solutions may be submitted to the contract at any time. The contract verifies the feasibility of each submitted solution and if the solution is feasible the value of the objective function is then computed. The smart contract always keeps track of the best feasible solution submitted so far, which we call the candidate solution.

• At the end of each time interval t, the smart contract finalizes the trade values for interval t + Tclear based on the candidate solution9.

This smart contract functionality achieves a high level of security and reliability. In particular, an adversary cannot force the contract to finalize trades based on an unsafe (i.e., infeasible) solution since such a solution would be rejected. Likewise, an adversary cannot force the contract to choose an inferior solution instead of a superior one. The only action available to an adversary, therefore, is proposing a superior feasible solution, which would actually improve energy trading in the microgrid.

The contract is also reliable and can tolerate temporary disruptions in the solver or the communication network. In fact, any solution (p, π) that is feasible for sets S and B is also feasible for supersets SS and BB. As the sets of offers only grow over time, the contract can use a candidate solution submitted during time interval t to finalize trades in any subsequent time interval τ > t.

Without receiving new solutions, the difference between the amount of finalized trades and the optimum only increases gradually. In particular, the earlier candidate solution can specify trades for any future time interval. The difference is therefore due only to the offers that have been posted since the solution was found and submitted.

5.2.2. An Off-Blockchain Solver

We complement the smart contract with an efficient linear programming solver (e.g., IBM ILOG CPLEX, 2009). This solver can be run off-blockchain on any capable computer or on multiple computers for reliability. The solver runs periodically to find a solution to the energy trading problem based on the latest set of offers posted.

After the solver finds a solution, it is submitted to the smart contract in a blockchain transaction. If new offers have been posted since the solver started working on the solution, the contract will still consider the solution as feasible. This capability stems from the fact that any feasible solution for sets S and B are also feasible for supersets SS and BB.

From the solver's perspective, there are many advantages of submitting multiple solutions to the smart contract for the same problem. For example, this design allows the linear programming solver to run as an “anytime algorithm.” Moreover, multiple—potentially untrusted—entities can try to solve the problem and submit solutions since the smart contract always chooses the best feasible one, which is important in microgrids where a trusted third-party may no always be present. In such settings, prosumers can volunteer and provide solutions to the energy trading problem10. We therefore enable finding solutions in an efficient and flexible manner, while reaping smart contract benefits, such as auditability and trustworthiness.

6. Structure and Functionality of Our Blockchain-based Energy Trading System

This section examines the structure and functionality of a system we developed to provide the energy trading and market clearing capabilities described in prior sections. We first summarize the run-time platform and then describe of the messages exchanged between these components in the trading workflow.

6.1. Overview of the RIAPS Platform

In any system that relies on distributed real-time and embedded computing, a key ingredient is the computing platform that provides the foundations for all algorithms, isolates the hardware details from the algorithms, and provides essential mechanisms for resource management, fault tolerance, and security. The work presented in this paper is based on the ‘Resilient Information Architecture Platform for Smart Grid' (RIAPS)11, which supports scalable, dependable, and secure dissemination of information between actors. Each actor in RIAPS is a composition of several libraries that provide the following capabilities:

• A component model that provides a concurrent model of computation for building distributed real-time applications,

• A messaging framework for facilitating interactions among actors,

• A resource-management framework for controlling the use of computational resources,

• A fault-management framework for detecting and mitigating faults in all layers of the system,

• A security framework to protect the confidentiality, integrity, and availability of system under cyber-attacks,

• A fault tolerant time synchronization service,

• A discovery framework for establishing the network of interacting actors in an application, and

• A deployment and management framework for administering and coordinating the distributed applications from a control room.

6.2. Energy Trading System Architecture

Figure 3 shows the architecture of our energy trading system.


Figure 3. Components of our blockchain-based energy trading system.

Our implementation uses the Ethereum blockchain middleware as the decentralized computation platform running smart contracts. Other components interact with the blockchain network using the geth Ethereum client.

The smart contract is implemented in Solidity (which is a high-level language for programming Ethereum) and is executed by a network of geth mining nodes. The specific platforms and tools used in our implementation are shown in parentheses and as arrow labels in Figure 3. All components are written in Python and communicate with each other using ZeroMQ, which is high-performance asynchronous messaging middleware supported by the RIAPS platform.

6.3. Providing Privacy

To protect prosumer privacy, anonymous addresses are used when interacting with the blockchain (e.g., posting offers). By periodically generating new anonymous addresses at random, other participants are prevented from linking the anonymous addresses to their actual identities (Laszka et al., 2017). This approach ensures that trading activities are private. In contrast with our prior work (Laszka et al., 2017), the addresses used in the workflow described in section 6.4 are not completely anonymous. Since the blockchain-based smart contract must check feeder-level safety constraints, each anonymous address must be linked to a feeder. An anonymous address can thus only hide the prosumer's identity, but not its feeder. This design is a manifestation of the trade-off between safety and privacy12.

Ironically, anonymous addresses pose a further threat to safety since participants can generate anonymous addresses at almost no cost, which enables them to post selling and buying offers for large amounts of energy, without any intention of delivering and without facing any repercussions. A malicious or faulty participant could easily destabilize the grid with this form of reckless trading. Consequently, the amount of energy that may be traded by anonymous addresses belonging to a participant must be limited.

To enforce this constraint, we employ the concept of energy assets, initially introduced in (Laszka et al., 2017) and used in the trading workflow described in section 6.4. An energy asset represents a permission to sell or buy a specific amount of energy in a specific set of time intervals. Each prosumer wanting to transfer assets to an anonymous address must first ask the DSO, which then checks whether it is safe to give permission to the participant. If so, the DSO records this transfer on the blockchain.

When a participant subsequently posts an offer from the anonymous address, the smart contract can check whether the address has the assets required for the offer. Only the DSO can link the anonymous address to the participant. These energy assets thus enforce participant-level constraints without violating privacy.

6.4. Energy Trading Workflow

Figure 4 depicts the energy trading workflow.


Figure 4. Sequence diagram of the trading workflow.

Solid lines in this figure represent messages, including smart-contract function calls (i.e., blockchain transactions), whereas dashed lines represent smart-contract events. To simplify the presentation, the figure shows only one prosumer and only a single message of each type. In practice, a large number of prosumers may interact with the DSO and the smart contract, and each of them may exchange multiple messages.

The trading workflow includes the following messages:

withdrawAssets(anonAddress, energy, intervals, amount), which is a message sent by a prosumer to the DSO, asking the DSO to transfer energy and/or financial assets from the prosumer's account at the DSO to an anonymous address. Before sending this message, the prosumer first generates a random anonymous address to protect its privacy. This message specifies the assets the prosumer wishes to withdraw (i.e., amount of energy and time intervals) and the anonymous address to which the DSO should transfer them. The prosumer may send this message long before actually engaging in trading, so the DSO need not be online continuously.

failedWithdrawal(anonAddress, msg), which is a message sent by the DSO to the prosumer notifying the prosumer that the requested assets cannot be withdrawn, e.g., due to energy safety requirements or insufficient funds.

addEnergy(anonAddress, energy, intervals), addFinancialBalance(anonAddress, amount), which are smart contract functions called by the DSO (i.e., transactions recorded on the blockchain) in response to the prosumer's request used to create energy and financial assets on the blockchain and transfer them to an anonymous address. Before recording this transaction, the DSO must first verify that enabling the prosumer to trade these assets does not violate any safety constraints and that the anonymous address is linked to the correct feeder.

AssetAdded(anonAddress, energy, intervals), FinancialAdded(anonAddress, amount), which are broadcast messages emitted by the smart contract (i.e., events logged on the blockchain) notifying the prosumer that the requested assets have been transferred to the anonymous address.

postOffer(energy, intervals, price), which is a smart-contract function called by a prosumer (from its anonymous address), publicly posting an energy bid or ask.

OfferPosted(offerID, energy, intervals, price), which is a message broadcast by the smart contract notifying solvers that an offer was posted.

submitSolution(powers, prices), which is a smart-contract function called by a solver submitting a new solution for the energy trading problem.

SolutionFinalized(powers, prices), which is a message broadcast by the smart contract notifying both prosumers and solvers of energy trades that have been finalized.

depositEnergy(energy, intervals), depositFinancial(amount), which are smart-contract functions called by a prosumer to deposit energy and financial assets to the prosumer's account. To protect privacy, these calls do not specify the prosumer, so the DSO must keep track of which prosumer uses which anonymous address.

EnergyDeposited(anonAddress, energy, intervals), FinancialDeposited(anonAddress, amount), which are messages broadcast by the smart contract notifying the DSO that assets have been deposited from anonymous address. These messages in turn triggers the transfer of the designated assets to the prosumer's account at the DSO.

6.5. Implementation Considerations

6.5.1. Parameters

The system of prosumers, solvers, DSO, and smart contract operates mostly asynchronously. They all operate as independent processes running on remote nodes, with their own time bases. In particular, the solver can operate as a periodic process (with a period Δs), waiting on information from the smart contract about all the offers that have been posted in the prior period. The only synchronous communication occurs between prosumers and the DSO.

Prosumers can also operate as periodic processes, submitting their offers and bids to the smart contract. In practice, prosumers are synchronized with real wall-clock time, making their bids and asks known for future intervals, depending upon the time at which they post their bids/asks and how far in the future they can predict their usage or operation. We make their prediction window L a parameter of the system.

The value of the predication window parameter is at least 2, because prosumers must make a bid/ask for at least the next interval (we count the current interval in L). A larger value of this prediction window increases the risk of uncertainty for the prosumer since they are expected to fulfill their bid or ask13. During the experiments presented in section 7, we simulated Δ as Δ^ to accelerate the process14. These parameters are described in Table 1.

6.5.2. Speed and Synchronization Considerations

A relevant problem for TMP is deciding how fast it can run and ensuring that trades for the next interval can clear before the Tclear parameter, which has a minimum bound of 1. Our trading system assumes that regular network communication mechanisms are fast. Communication with the smart contract, however, is limited by the block mining rate and multiple messages must be exchanged in each interval (see Figure 4).

Given these constraints, miners need to work fast enough to mine a few blocks in each time interval. In a closed environment, this goal can be achieved by reducing the difficulty of the cryptographic puzzle solved for proof-of-work consensus. In our system we can clear transactions much faster than one 15-min time interval (see Figure 11). To scale up performance in larger systems, the proof-of-work consensus may be replaced, e.g., by a proof-of-stake mechanism.

Another challenged addressed by our trading system was the synchronization between different agents. The RIAPS run-time platform provides high-precision time synchronization (Volgyesi et al., 2017). Even if only the network time protocol (NTP) is used as the synchronization mechanism, however, the system operates correctly for the following reasons:

• In practice, time intervals are relatively long (e.g., 15 min), compared to typical communication delays.

• Our smart contract ensures that the system always proceeds to the next time interval, though the accuracy of this is limited by the mining rate.

• Our trading system can tolerate or discard out-of-order and delayed messages due to the event chronology implemented in the blockchain platform.

Nevertheless, prosumers should try to post their offers early within a time interval so that solvers include them in the solution for the current time interval. Conversely, solvers should wait for some time before starting to work so they can collect all (or at least most) of the offers posted in the interval.

7. Experiment Testbed and Analysis of Results

This section analyzes the results of experiments performed to evaluate the performance of our energy trading system described in section 6. The source code is available online at Lab (2019).

7.1. Overview of the Microgrid Configuration

The experiments presented in this section are based on a collection of load traces recorded by Siemens from a microgrid in Germany that contained 102 homes across 11 feeders (5 producers and 97 consumers). Figure 5 describes the feeder structure, the number of participants per feeder, and the feeder safety limits of this microgrid.


Figure 5. Feeder diagram.

Brown nodes in this diagram are feeder junctions, numbered 1 to 11 from top to bottom. Black nodes are the overcurrent relays, which ensure that the total power flowing in and out of the feeder is below 20 kW. Green nodes are the junction points for the producers (5) and red nodes are junction points for the consumers (97). There are 102 prosumers in total. We use Δ = 15 min intervals, resulting in a total of 96 intervals across the whole day.

Figure 6 shows the total production and consumption across this microgrid.


Figure 6. Load profile (i.e., total Consumption) and generation Profile (i.e., total production) in kWh per 15 min intervals aggregated across the microgrid.

The horizontal axis shows the starting time for each of the 96 intervals. Since the dataset does not include prices, we assume that reservation prices are uniform in our experiments and thus focus on studying the amount of energy traded and the performance of the system.

The graph in Figure 6 also shows the energy traded per interval without battery (Test A), and with battery Tests C and D (see Table 2). The amount of energy traded can be lower than both supply and demand at the same time due to safety constraints. These constraints limit the amount of energy that can flow out of producers' feeders.


Table 2. Parameter values for experiments (see Table 1 for symbol definitions).

A key contribution in our work is the ability to specify multiple time intervals for selling offers. We therefore extended the trace collected by Siemens to allow each producer to have a battery with a total capacity of 90 kWh. Producers can use their batteries to store energy generated within a time interval and make it available in future time intervals. The resulting offers always span a contiguous set of time intervals, so they can be specified by their starting time and length.

Figure 7 shows the time intervals for one producer.


Figure 7. Energy offered in each time interval by the first prosumer of the first feeder when using a battery (shown by the blue line).

The red bars in this figure indicate the number of contiguous intervals for which the offer is valid. The total battery capacity is 90 kWh and we assume the battery charges at a rate of 10 kWh per interval. Producers are assumed to keep the battery available until the end of the test, which is the 95th interval, so the red bars taper off in consecutive intervals. Producers charge their batteries only when total consumption is less than total production, which happens just after 12:00 p.m., as shown in Figure 6.

7.2. Experiment Testbed Structure and Functionality

Our experiment testbed comprises a cluster of 31 BeagleBone Black (BBB) single-board computers, which are shown in Figure 8.


Figure 8. Hardware testbed.

These BBBs act as participants in the energy trading system and are configured as light clients because they are resource-constrained and thus not suitable for mining or acting as solvers. As a result, they can safely access the blockchain, but do not participate in the consensus process.

In the dataset provided by Siemens, there are 95 consumers and 7 producers of power, as shown in Figure 5. These participants are divided between the BBBs in the cluster. The Platform for Transactive IoT Blockchain Applications with Repeatable Testing (PlaTIBART) environment (Walker et al., 2017) provided us with the necessary DevOps support.

The block mining is provided by external hardware, locally or in a cloud server. We had a single miner instance that maintained the blockchain and a single solver instance that used CPLEX (IBM ILOG CPLEX, 2009) to solve the energy trading problem. This setup can easily be scaled up to add more miners and solvers if sufficient computational resources are available. The communication between the components was implemented using ZeroMQ, which a communication protocol supported by RIAPS.

7.3. Experiment Tests and Analysis of Results

Table 2 describes the specifics of the four categories of tests that we ran in our experiments.

The tests vary the different implementation parameters (see Table 1 for symbol definitions and section 6.5). This flexibility enabled us to study how changing these parameters affected the total amount of energy traded.

Figure 9 shows the total energy traded for different tests.


Figure 9. Total amount of energy traded in the entire microgrid (with and without batteries) for various prediction window lengths.

We varied the prediction window (L) for the participants from 2 to 13, i.e., in each interval participants submitted offers starting from the next 1 to 12 intervals (the current interval is always counted in the prediction window). The experiment simulated the whole day from the first interval starting at 0:00 (12:00 a.m.) to the 95th interval ending at 23:59 (11:59 p.m.).

As expected, increasing the prediction window without batteries had no effect on the total amount energy traded. This result occurred because any production must be dispatched within one time interval. The solver therefore cannot optimize energy usage across multiple intervals, even if future offers are available.

If batteries were available in the system, however, the amount of energy traded increased since the solver matched offers across multiple time intervals at once. Trading increased with the prediction window due to the increased analysis space available to the solver. Figure 6 shows the per interval trades for three of these cases (A, C, and D): without battery, with battery and L = 5, as well as with battery and L = 13.

Figure 10 shows the energy matched per interval in test case C for the first prosumer of the first feeder.


Figure 10. Energy generated in each interval (blue line) and energy traded to a set of consumers in each interval (vertical bars) for the first prosumer of the first feeder (test case C).

The stacked colors show the different consumers that were matched with the prosumer in each interval (the same color across multiple intervals does not necessarily mean it is the same consumer). When the energy traded exceeded the generation, the excess was drawn from the battery.

Figure 11 shows a histogram of the time between posting an offer and recording a trade on the blockchain that includes the offer (also in Test Case C). This time included the communication delay, the time to mine the blockchain, and the running time required to find a solution. The time length was always less than Δ^, which was 120 s (see Table 2). Since the solver ran periodically and received offers asynchronously, there were a few runs before a suitable match was found.


Figure 11. Real time in seconds between posting an offer and recording a trade that ncludes the offer (test case C).

8. Concluding Remarks

This paper describes the design and implementation of a transaction management platform (TMP) for transactive microgrids. Our solution enables prosumers to trade energy without threatening their privacy or compromising system safety. The Ethereum blockchain platform provides decentralized trust and consensus capabilities, which protect the transactive energy system from malicious actors. Our hybrid solver approach combines a validator based on Ethereum smart contracts with an external optimizer, which enables the platform to clear offers securely and efficiently. Likewise, the ability to trade across multiple time intervals enables participants to take full advantage of batteries, thereby smoothing the load on the bulk power grid.

The following are key lessons we learned during this work (see Table 3 for a synopsis).

• The performance results in Figure 11 demonstrate that our TMP can process and match trades much faster than what would typically be required in practice (see section 6.5). This performance stems largely from the communication architecture provided by combining Ethereum and our RIAPS middleware.

• A key design challenge was resolving the conflict between safety, privacy, and efficiency. For example, the enforcement of feeder-level safety constraints required prosumers to reveal their feeder during trading, instead of being completely anonymous. Likewise, feeder-level safety constraints confounded meeting energy demand with local supply, even if there was surplus production in the microgrid (Figure 6).

• Feeder-level operational safety and stability constraints on trading were enforced via a blockchain-based smart contract (see section 5.2), in addition to the prosumer-level constraints enforced by tracking energy assets (see section 6.3 and Laszka et al., 2017).

• Market efficiency and security were ensured by enabling the Ethereum smart contract to validate and evaluate the trading solutions that it receives (see section 5.2).

• Prosumer privacy was enabled by allowing them to hide their identity using anonymous addresses (see section 6.3 and Laszka et al., 2017). To enable enforcing feeder-level safety constraints, however, prosumers still needed to reveal the feeder to which they belonged.


Table 3. Requirements and proposed solutions.

Our future work will extend the approach presented in this paper to enable the energy trading system to recovery from failures by using a fault tolerance matching algorithm that ensures supply and demand can still be matched even if a certain number of physical elements fail or prosumers are disconnected. The datasets presented in this article are not readily available because as they are proprietary. This limits replicability, however, researchers are welcome to try the code with synthetic datasets available on our repository. Requests to access the datasets should be directed to the authors.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.

Author Contributions

All authors provided key technical contributions to the work submitted for this book.


This work was funded in part by a grant from Siemens, CT and in part by grants from NSF under award number CNS-1647015, CNS-1818901, and CNS-1840052. The views presented in this paper are those of the authors and do not reflect the opinion or endorsement of Siemens, CT, or NSF.

Conflict of Interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.


We thank Prof. Gabor Karsai from Vanderbilt University and Prof. Srdjan Lukic for their feedback and help with the RIAPS platform. This manuscript significantly extends content from a prior conference publication (Laszka et al., 2018). This work was funded in part by a grant from Siemens, CT and in part by grants from NSF under award number CNS-1647015, CNS-1818901, and CNS-1840052. The views presented in this paper are those of the authors and do not reflect the opinion or endorsement of Siemens, CT, or NSF.

Supplementary Material

The Supplementary Material for this article can be found online at:


1. ^In contrast, non-transactive smart metering systems require sharing prosumer information only with the distribution system operator (DSO), which eliminates/minimizes unauthorized privacy disclosures.

2. ^Physically, the capacity limit of a feeder can be enforced using an overcurrent protection unit that limits the total current flowing through the feeder.

3. ^This paper focuses on building a trading system, so we do not explicitly address the problem of billing. Multiple billing approaches can be implemented using blockchain technology, however, some providing a high degree of privacy, which is the focus of our future work.

4. ^In other words, limit Cfext is imposed on the net production and net consumption of all prosumers in feeder f, while limit Cfint is imposed on the total production and total consumption.

5. ^Participants may include both prosumers and the DSO. The DSO can shape load and trade energy futures by participating in the energy market in the same way as prosumers.

6. ^If the DSO wants to participate in this energy trading market, it can be assigned to a “dummy” feeder in the problem formulation.

7. ^We require the both the seller and buyer to produce a constant level of power during the time interval.

8. ^Solidity (the preferred high-level language for Ethereum) currently lacks built-in support for certain features (such as floating-point arithimetic) that would facilitate the implementation of a linear programming solver.

9. ^If no solution has been submitted to the contract thus far (which may occur right after the trading system has been launched) p = 0 may be used as a candidate solution.

10. ^Although each prosumer will try to submit a solution that favors itself, the submitted solution must still be superior with respect to the optimization objective, which roughly corresponds to social utility. Hence, prosumers are incentivized to improve social utility by submitting a superior solutions that favors the prosumer, which we analyze in future work.

11. ^Available online at:

12. ^Actually, participants can remain anonymous among a class of feeders with same number of participants and identical safety constraints.

13. ^The size of the prediction window is part of the prosumer strategy, which is not explored in this paper since we focus on the implementation of the TMP.

14. ^This value represents the amount of real time passed in the simulation before proceeding to the next interval, which allows us to accelerate the experiment since running the system slower would be easier.


Abrishambaf, O., Lezama, F., Faria, P., and Vale, Z. (2019). Towards transactive energy systems: An analysis on current trends. Energy Strategy Reviews, 26:100418. doi: 10.1016/j.esr.2019.100418

CrossRef Full Text | Google Scholar

Aitzhan, N. Z., and Svetinovic, D. (2016). Security and privacy in decentralized energy trading through multi-signatures, blockchain and anonymous messaging streams. IEEE Trans. Depend. Secure Comput. 15, 840–852. doi: 10.1109/TDSC.2016.2616861

CrossRef Full Text | Google Scholar

Amoussou-Guenou, Y., Del Pozzo, A., Potop-Butucaru, M., and Tucci-Piergiovanni, S. (2019). “Dissecting tendermint,” in Networked Systems, eds M. F. Atig and A. A. Schwarzmann (Cham: Springer International Publishing), 166–182. doi: 10.1007/978-3-030-31277-0_11

CrossRef Full Text | Google Scholar

Barbieri, F., Rajakaruna, S., and Ghosh, A. (2017). Very short-term photovoltaic power forecasting with cloud modeling: a review. Renew. Sustain. Energy Rev. 75, 242–263. doi: 10.1016/j.rser.2016.10.068

CrossRef Full Text | Google Scholar

Bonneau, J. (2018). What Bitcoin's White Paper Got Right, Wrong and What We Still Don't Know. Available online at:

Google Scholar

Buterin, V. (2013). Ethereum: A Next-Generation Smart Contract and Decentralized Application Platform. Available online at: (accessed August 8, 2016).

Google Scholar

Cachin, C., and Vukolić, M. (2017). Blockchain consensus protocols in the wild. arXiv [Preprint] arXiv:1707.01873.

Google Scholar

Dag, O., and Mirafzal, B. (2016). “On stability of islanded low-inertia microgrids,” in 2016 Clemson University Power Systems Conference (PSC) (Clemson, SC), 1–7. doi: 10.1109/PSC.2016.7462854

CrossRef Full Text | Google Scholar

Efthymiou, C., and Kalogridis, G. (2010). “Smart grid privacy via anonymization of smart metering data,” in 1st IEEE International Conference on Smart Grid Communications (SmartGridComm) (Gaithersburg, MD: IEEE), 238–243. doi: 10.1109/SMARTGRID.2010.5622050

CrossRef Full Text | Google Scholar

European Power Exchange (2017). EPEX SPOT Operational Rules.

Google Scholar

Faqiry, M. N., and Das, S. (2016). Transactive energy auction with hidden user information in microgrid. arXiv [Preprint] arXiv:1608.03649.

Google Scholar

Finley, K. (2016). A $50 Million Hack Just Showed That the DAO Was All Too Human. Available online at:

Google Scholar

Frank, S., and Rebennack, S. (2016). An introduction to optimal power flow: theory, formulation, and examples. IIE Trans. 48, 1172–1197. doi: 10.1080/0740817X.2016.1189626

CrossRef Full Text | Google Scholar

Garay, J., Kiayias, A., and Leonardos, N. (2015). “The Bitcoin backbone protocol: analysis and applications,” in Advances in Cryptology - EUROCRYPT 2015, eds E. Oswald and M. Fischlin (Berlin; Heidelberg: Springer), 281–310. doi: 10.1007/978-3-662-46803-6_10

CrossRef Full Text | Google Scholar

Hussain, A., Bui, V. H., and Kim, H. M. (2017). A resilient and privacy-preserving energy management strategy for networked microgrids. IEEE Trans. Smart Grid. 9, 2127–2139. doi: 10.1109/TSG.2016.2607422

CrossRef Full Text | Google Scholar

Hyperledger (2017). The Fabric Model. Available online at: (accessed: April 24, 2017).

Google Scholar

IBM ILOG CPLEX (2009). V12. 1: User's Manual for CPLEX. International Business Machines Corporation.

Google Scholar

Ilic, D., Silva, P. G. D., Karnouskos, S., and Griesemer, M. (2012). “An energy market for trading electricity in smart grid neighbourhoods,” in 6th IEEE International Conference on Digital Ecosystems and Technologies (DEST) (Campione d'Italia), 1–6. doi: 10.1109/DEST.2012.6227918

CrossRef Full Text | Google Scholar

Kosba, A., Miller, A., Shi, E., Wen, Z., and Papamanthou, C. (2016). “Hawk: the blockchain model of cryptography and privacy-preserving smart contracts,” in 37th IEEE Symposium on Security and Privacy (S&P) (San Jose, CA: IEEE), 839–858. doi: 10.1109/SP.2016.55

CrossRef Full Text | Google Scholar

Lab, S. (2019). Transactive-Blockchain. Available online at:

Google Scholar

Laszka, A., Dubey, A., Walker, M., and Schmidt, D. (2017). “Providing privacy, safety and security in IoT-based transactive energy systems using distributed ledgers,” in 7th International Conference on the Internet of Things (IoT) (Linz). doi: 10.1145/3131542.3131562

CrossRef Full Text | Google Scholar

Laszka, A., Eisele, S., Dubey, A., Karsai, G., and Kvaternik, K. (2018). “Transax: a blockchain-based decentralized forward-trading energy exchanged for transactive microgrids,” in 2018 IEEE 24th International Conference on Parallel and Distributed Systems (ICPADS) (Singapore), 918–927. doi: 10.1109/PADSW.2018.8645001

CrossRef Full Text | Google Scholar

Majumder, B. P., Faqiry, M. N., Das, S., and Pahwa, A. (2014). “An efficient iterative double auction for energy trading in microgrids,” in 2014 IEEE Symposium on Computational Intelligence Applications in Smart Grid (CIASG) (Orlando, FL: IEEE), 1–7. doi: 10.1109/CIASG.2014.7011556

CrossRef Full Text | Google Scholar

McDaniel, P., and McLaughlin, S. (2009). Security and privacy challenges in the smart grid. IEEE Secur. Privacy 7, 75–77. doi: 10.1109/MSP.2009.76

CrossRef Full Text | Google Scholar

Mengelkamp, E., Gorttner, J., Rock, K., Kessler, S., Orsini, L., and Weinhardt, C. (2018). “Designing microgrid energy markets: a case study: the Brooklyn Microgrid”. Appl. Energy 210, 870–880. doi: 10.1016/j.apenergy.2017.06.054

CrossRef Full Text | Google Scholar

Nakamoto, S. (2008). Bitcoin: A Peer-to-Peer Electronic Cash System. Available online at:

Google Scholar

Newman, L. (2017). $280M Worth of Ethereum Is Trapped Thanks to a Dumb Bug. Available online at:

Google Scholar

Olson, K., Bowman, M., Mitchell, J., Amundson, S., Middleton, D., and Montgomery, C. (2018). Sawtooth: An Introduction. The Linux Foundation. Available online at:

Google Scholar

Orsini, L., Wei, Y., and Lubin, J. (2017). Use of Blockchain Based Distributed Consensus Control. US Patent App. 15/292,783.

Google Scholar

Peck, M. E. (2017). Blockchains: How They Work and Why They'll Change the World. Available online at:

Google Scholar

Power Ledger Pty Ltd. (2017). Power Ledger White Paper. Available online at:

Google Scholar

Randall, T. (2015). The Way Humans Get Electricity is About to Change Forever. Available online at:

Google Scholar

Szabo, N. (1997). Formalizing and securing relationships on public networks. First Monday 2. doi: 10.5210/fm.v2i9.548

CrossRef Full Text | Google Scholar

Tan, O., Gunduz, D., and Poor, H. V. (2013). Increasing smart meter privacy through energy harvesting and storage devices. IEEE J. Select. Areas Commun. 31, 1331–1341. doi: 10.1109/JSAC.2013.130715

CrossRef Full Text | Google Scholar

Tholoniat, P., and Gramoli, V. (2019). Formal verification of blockchain byzantine fault tolerance. arXiv [Preprint] arXiv:1909.07453.

Google Scholar

Vieira, G. B. (2018). A blockchain energy trading platform for microgrids (Master's thesis). University of Southampton, Southampton, United Kingdom. Available online at:

Google Scholar

Volgyesi, P., Dubey, A., Krentz, T., Madari, I., Metelko, M., and Karsai, G. (2017). “Time synchronization services for low-cost fog computing applications,” in 28th International Symposium on Rapid System Prototyping (RSP) (Seoul: IEEE). doi: 10.1145/3130265.3130325

CrossRef Full Text | Google Scholar

Walker, M. A., Dubey, A., Laszka, A., and Schmidt, D. C. (2017). “PlaTIBART: a platform for transactive IoT blockchain applications with repeatable testing,” in 4th Workshop on Middleware and Applications for the IoT (M4IoT) (Las Vegas). doi: 10.1145/3152141.3152392

CrossRef Full Text | Google Scholar

Keywords: transactive energy systems, blockchain, privacy, security, safety, smart contract

Citation: Eisele S, Laszka A, Schmidt DC and Dubey A (2020) The Role of Blockchains in Multi-Stakeholder Transactive Energy Systems. Front. Blockchain 3:593471. doi: 10.3389/fbloc.2020.593471

Received: 10 August 2020; Accepted: 13 November 2020;
Published: 21 December 2020.

Edited by:

René Hüsler, Lucerne University of Applied Sciences and Arts, Switzerland

Reviewed by:

Henry Michael Kim, Schulich School of Business, York University, Canada
Francesco Tiezzi, University of Camerino, Italy

Copyright © 2020 Eisele, Laszka, Schmidt and Dubey. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Douglas C. Schmidt,