Reconfigurable Smart Contracts for Renewable Energy Exchange with Re-Use of Verification Rules
Author:
Open Access
- 25 May 2022
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 12 (11) , 5339
Abstract
Smart contracts constitute the foundation for blockchain distributed applications. These constructs enable transactions in trustless environments using consensus algorithms and software-controlled verification rules. In the current state of the art, there is a shortage of works on the adaptability of smart contracts, and the re-use of their source code is limited mainly to cloning. The paper discusses the pattern of smart contract design and implementation with the overt declaration of verification rules. The author introduces two advantages of the pattern: Firstly, run-time reconfigurability of the list of smart contract verification rules to adjust for various transaction types. Secondly, the re-use of verification rules between different configurations of the smart contract, and among diverse smart contracts. The paper uses blockchain platform-independent stereotypes from a dedicated Unified Modeling Language (UML) profile for designing smart contracts and verification rules. The implementation of the pattern is developed in object-oriented Java language. The pattern exploits polymorphism and controls inheritance by using sealed classes with permission for specialization only for selected final ones. Thus, the pattern ensures two recently highly desired properties in smart contract design and development: re-use and security. Moreover, the declared verification rules list facilitates test automation and reduces test preparation effort due to the re-use of test classes among smart contract configurations. The pattern usage is illustrated in the example of renewable energy exchange within the prosumers community and amid various communities.Keywords
This publication has 38 references indexed in Scilit:
- Measuring the reusability of software components using static analysis metrics and reuse rate informationJournal of Systems and Software, 2019
- Trends in software reuse research: A tertiary studyComputer Standards & Interfaces, 2019
- Smart Contract Development: Challenges and OpportunitiesIEEE Transactions on Software Engineering, 2019
- Data Management in Supply Chain Using Blockchain: Challenges and a Case Study2019
- Energy Crowdsourcing and Peer-to-Peer Energy Trading in Blockchain-Enabled Smart GridsIEEE Transactions on Systems, Man, and Cybernetics: Systems, 2019
- A systematic literature review of blockchain-based applications: Current status, classification and open issuesTelematics and Informatics, 2019
- Architecture for Blockchain Applications2019
- Debugging and maintaining pragmatically reused test suitesInformation and Software Technology, 2018
- BlocHIE: A BLOCkchain-Based Platform for Healthcare Information Exchange2018
- A Sustainable Home Energy Prosumer-Chain Methodology with Energy Tags over the BlockchainSustainability, 2018