Modularizing Cross-Cutting Concerns with Aspect-Oriented Extensions for Solidity
Authors:
- 1 April 2019
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 176-181
Abstract
Over the past few years, blockchain technology has attracted much attention. The smart contract is a computer program that implements and executes transactions and business logic on the blockchain. Unlike traditional general-purpose programming languages, the modularization techniques of programming languages for the smart contracts are still immature. Specifically, a suitable modularization mechanism for cross-cutting concerns is still not available. From a software engineering perspective, the modularization of cross-cutting concerns is a fundamental issue that can dramatically affect the contracts' maintainability and readability. As a result, reducing the redundant cross-cutting logic is still a challenging task. This paper proposes a practically viable approach that supports Aspect-Oriented Programming (AOP) for smart contract development on Ethereum-based blockchains. We suggest a set of extension to Solidity, a programming language that runs on the Ethereum-based blockchains, that facilitates AOP semantics and behaviors. As a proof of concept, we also realize the weaving module for the extension. The feasibility of the proposed approach is demonstrated by a case study.Keywords
This publication has 7 references indexed in Scilit:
- Design Patterns for Smart Contracts in the Ethereum Ecosystem2018
- Preliminary steps towards modeling blockchain oriented software2018
- An Empirical Analysis of Smart Contracts: Platforms, Applications, and Design Patterns2017
- Toward A Service Platform for Developing Smart Contracts on Blockchain in BDD and TDD Styles2017
- MedRec: Using Blockchain for Medical Data Access and Permission Management2016
- Untrusted Business Process Monitoring and Execution Using Blockchain2016
- Blockchains and Smart Contracts for the Internet of ThingsIEEE Access, 2016