A Framework for Decentralized Energy Trading Based on Blockchain Technology
Abstract
:1. Introduction
- (1)
- A detailed description of a blockchain-based energy trading framework, including the trading architecture, focusing on distributed energy generation;
- (2)
- The four main roles of energy trading participants, including the buyer, consumer, speculator and regulator and their action patterns;
- (3)
- An analysis of this trading platform using the multi-agent method, which is addressed to show the efficiency of energy trading.
2. Methodology
2.1. Blockchain
- Build a candidate block according to the submitted transaction;
- Generate a random number, add it to the content of the block and calculate a hash of the block using SHA-256 before comparing it with the target (a special number of leading zeros can be used to adjust the calculation’s difficulty);
- If the hash is not correct, a new random number will be generated repeatedly until a solution is found or the target is changed (in this case, another block is added in the chain);
- If the hash is correct, the block will be broadcast to the whole network;
- Once the majority node in the network accepts the block, it will be permanently added in the chain, and the publisher will be rewarded.
2.2. Blockchain-Based Energy Market Design
- (1)
- How to deal with the agreement break, because of the inertial fluctuation property of renewable energy resources;
- (2)
- How to promote the use of storage in the network;
- (3)
- How to deal with grid security.
- (1)
- Producer
- (2)
- Consumer
- (3)
- Speculator
- (4)
- Regulator
- (5)
- Order
- Quantity: buy and sell a quantity of energy with the unit of kWh;
- Residual amount: used when an order is only partially satisfied by previous transactions;
- Order price: the price for selling or buying energy;
- Order time: the time when the order was issued;
- Expiration time: if the order is not (fully) satisfied, it is removed from the pool at this time.
- Price Clearing Mechanism
- (6)
- Message Exchange Process
- The producer and consumer nodes send price request messages and receive the highest and lowest price in the prior round. According to this message, offers in kWh expressed in USD are prepared and published in the stream, as shown on Figure 6. The preparations require the producers to lock enough energy assets and encode the details of the exchange.
- Each node receives the messages and sends them to the order pool.
- The price clearing process is motivated after a certain period of time. The result will be sent to these nodes that send orders.
- The consumer and producer start to produce or consume, according to the order.
- Finally, the nodes in the network will calculate the reward and punishment according to their actions, and the result will be added to the blockchain permanently.
3. Case Study
3.1. Design and Implementation
3.2. Result and Analysis
4. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Han, J.; Ouyang, L.; Xu, Y.; Zeng, R.; Kang, S.; Zhang, G. Current status of distributed energy system in China. Renew. Sustain. Energy Rev. 2016, 55, 288–297. [Google Scholar] [CrossRef]
- Baliozian, P.; Al-Akash, M.; Lohmüller, E.; Richter, A.; Fellmeth, T.; Münzer, A.; Wöhrle, N.; Saint-Cast, P.; Stolzenburg, H.; Spribille, A.; et al. Postmetallization “Passivated Edge Technology” for Separated Silicon Solar Cells. IEEE J. Photovolt. 2020, 10, 390–397. [Google Scholar] [CrossRef]
- Padmavathi, L.; Ruijuan, S.; Jun, L. Electrical Collection Systems for Offshore Wind Farms: A Review. CSEE J. Power Energy Syst. 2021, 7, 1078–1092. [Google Scholar]
- Pilz, M.; Al-Fagih, L. Game-Theoretic Approaches to Energy Trading: A Survey. arXiv 2017, arXiv:1702.02915. [Google Scholar]
- Flores-Espino, Francisco. Compensation for Distributed Solar: A Survey of Options to Preserve Stakeholder Value; National Renewable Energy Laboratory United States: Golden, CO, USA, 2015. [CrossRef]
- Melton, R.B. The View from the Top of the Mountain: Building a Community of Practice with the GridWise Transactive Energy Framework. IEEE Power Energy Mag. 2016, 14, 25–33. [Google Scholar]
- Kumar, P.; Gurtov, A.; Sain, M.; Martin, A.; Ha, P.H. Lightweight Authentication and Key Agreement for Smart Metering in Smart Energy Networks. IEEE Trans. Smart Grid 2018, 10, 4349–4359. [Google Scholar] [CrossRef]
- Mihaylov, M.; Jurado, S.; Avellana, N.; Van Moffaert, K.; de Abril, I.M.; Nowé, A. NRGcoin: Virtual currency for trading of renewable energy in smart grids. In Proceedings of the 11th International Conference on the European Energy Market (EEM14), Kraków, Poland, 28–30 May 2014; pp. 1–6. [Google Scholar]
- Alam, M.T.; Li, H.; Patidar, A. Notice of Violation of IEEE Publication Principles: Bitcoin for smart trading in smart grid. In Proceedings of the 21st IEEE International Workshop on Local and Metropolitan Area Networks, Beijing, China, 22–24 April 2015; pp. 1–2. [Google Scholar]
- Aitzhan, N.Z.; Svetinovic, D. Security and Privacy in Decentralized Energy Trading through Multi-signatures, Blockchain and Anonymous Messaging Streams. IEEE Trans. Dependable Secur. Comput. 2016, 15, 840–852. [Google Scholar] [CrossRef]
- Munsing, E.; Mather, J.; Moura, S. Blockchains for Decentralized Optimization of Energy Resources in Microgrid Networks. In Proceedings of the 1st IEEE Conference on Control Technology and Applications, Kohala Coast, HI, USA, 27–30 August 2017. [Google Scholar]
- Tai, X.; Sun, H.; Guo, Q. Electricity Transactions and Congestion Management Based on Blockchain in Energy Internet. Power Syst. Technol. 2016, 40, 3630–3638. [Google Scholar]
- Nakamoto, S. Bitcoin: A peer-to-peer electronic cash system. Consulted 2009, 1–9. Available online: https://bitcoin.org/en/bitcoin-paper (accessed on 10 April 2022).
- Rogaway, P.; Shrimpton, T. Cryptographic Hash-Function Basics: Definitions, Implications, and Separations for Preimage Resistance, Second-Preimage Resistance, and Collision Resistance; Springer: Berlin/Heidelberg, Germany, 2004. [Google Scholar]
- Lewis, A. A Gentle Introduction to Blockchain Technology. 2015. Available online: https://bitsonblocks.net/2015/09/09/a-gentle-introduction-to-blockchain-technology/ (accessed on 18 October 2016).
- Buterin, V. Proof of Stake: How I Learned to Love Weak Subjectivity. 2014. Available online: https://blog.ethereum.org/2014/11/25/proof-stake-learned-love-weak-subjectivity/ (accessed on 18 October 2016).
- Bitcoin Developer Guide. 2009. Available online: https://bitcoin.org/en/developer-guide (accessed on 17 November 2017).
- Qing, X.; Zhengyun, S. Application of high-low match methods to regional electricity market considering transaction costs. Power Syst. Technol. 2005, 29, 1–5. [Google Scholar]
- Robinson, C.R.; Mendham, P.; Clarke, T. MACSimJX: A Tool for Enabling Agent Modelling with Simulink Using JADE. J. Phys. Agents 2011, 4, 1–7. [Google Scholar] [CrossRef]
- Skarvelis-Kazakos, S.; Papadopoulos, P.; Unda, I.G.; Gorman, T.; Belaidi, A.; Zigan, S. Multiple energy carrier optimisation with intelligent agents. Appl. Energy 2016, 167, 323–335. [Google Scholar] [CrossRef]
- Greenspan, G. MultiChain Private Blockchain; Technical Report; MultiChain: Amsterdam, The Netherlands, 2015; pp. 1–17. [Google Scholar]
- Liu, Z.; Zhang, X.; Lieu, J. Design of the incentive mechanism in electricity auction market based on the signaling game theory. Energy 2010, 35, 1813–1819. [Google Scholar] [CrossRef]
- Weidlich, A.; Veit, D. A critical survey of agent-based wholesale electricity market models. Energy Econ. 2008, 30, 1728–1759. [Google Scholar] [CrossRef]
Items | Contents |
---|---|
Number of Transactions | 1367 |
Output Total | 22,400.38218251 BTC |
Estimated Transaction Volume | 3786.9922673 BTC |
Transaction Fees | 1.56770646 BTC |
Height | 464,944 m (Main Chain) |
Timestamp | 5 May 2017 12:46:38 p.m. |
Received Time | 5 May 2017 12:46:38 p.m. |
Relayed By | BitFury |
Difficulty | 521,974,519,553.63 |
Bits | 402,791,230 |
Size | 998.195 KB |
Version | 0 × 20,000,002 |
Hash | 000000000000000000ee0b45324a1bbf3567338de0bc170714bc2ec319bc53a8 |
Previous Block | 0000000000000000014f2ab7e4b480d861f4d53d7ea5c637aaeabeb683cdd3c4 |
Next Block(s) | 0000000000000000011943c0d05b354c04eb18e5e1041ec47e466e9084bf6e78 |
Merkle Root | Cf28b82579eb41be371a7ce92936fd95eb8369bbc86d32e85e0adc84038d3e7 |
Network Propagation |
Generator | Supply (kWh) | Cost ($) | Initial Price ($) |
---|---|---|---|
1 | 1.6 | 0.016 | 0.017 |
2 | 0.4 | 0.017 | 0.018 |
3 | 0.6 | 0.018 | 0.019 |
4 | 0.4 | 0.024 | 0.025 |
5 | 1.0 | 0.028 | 0.029 |
6 | 3.0 | 0.021 | 0.022 |
7 | 0.2 | 0.023 | 0.024 |
Total | 7.2 |
Generator | Demand Portion (%) | Cost ($) | Initial Price ($) |
---|---|---|---|
1 | 0.1 | 0.048 | 0.047 |
2 | 0.16 | 0.052 | 0.051 |
3 | 0.3 | 0.056 | 0.055 |
4 | 0.08 | 0.053 | 0.052 |
5 | 0.06 | 0.046 | 0.045 |
6 | 0.2 | 0.051 | 0.050 |
7 | 0.12 | 0.052 | 0.051 |
Total | 1 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Huang, D.; Ma, S.; Zhou, D.; Zhang, C.; Han, H.; Li, Q.; Li, T.; Wang, C. A Framework for Decentralized Energy Trading Based on Blockchain Technology. Appl. Sci. 2022, 12, 8410. https://doi.org/10.3390/app12178410
Huang D, Ma S, Zhou D, Zhang C, Han H, Li Q, Li T, Wang C. A Framework for Decentralized Energy Trading Based on Blockchain Technology. Applied Sciences. 2022; 12(17):8410. https://doi.org/10.3390/app12178410
Chicago/Turabian StyleHuang, Di, Shixi Ma, Dengji Zhou, Chenyu Zhang, Huachun Han, Qiang Li, Taotao Li, and Chen Wang. 2022. "A Framework for Decentralized Energy Trading Based on Blockchain Technology" Applied Sciences 12, no. 17: 8410. https://doi.org/10.3390/app12178410
APA StyleHuang, D., Ma, S., Zhou, D., Zhang, C., Han, H., Li, Q., Li, T., & Wang, C. (2022). A Framework for Decentralized Energy Trading Based on Blockchain Technology. Applied Sciences, 12(17), 8410. https://doi.org/10.3390/app12178410