{"title":"用面向方面的扩展模块化横切关注点","authors":"Chien-Che Hung, Kung Chen, Chun-Feng Liao","doi":"10.1109/DAPPCON.2019.00033","DOIUrl":null,"url":null,"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.","PeriodicalId":434018,"journal":{"name":"2019 IEEE International Conference on Decentralized Applications and Infrastructures (DAPPCON)","volume":"23 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-04-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"4","resultStr":"{\"title\":\"Modularizing Cross-Cutting Concerns with Aspect-Oriented Extensions for Solidity\",\"authors\":\"Chien-Che Hung, Kung Chen, Chun-Feng Liao\",\"doi\":\"10.1109/DAPPCON.2019.00033\",\"DOIUrl\":null,\"url\":null,\"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.\",\"PeriodicalId\":434018,\"journal\":{\"name\":\"2019 IEEE International Conference on Decentralized Applications and Infrastructures (DAPPCON)\",\"volume\":\"23 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2019-04-04\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"4\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2019 IEEE International Conference on Decentralized Applications and Infrastructures (DAPPCON)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/DAPPCON.2019.00033\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2019 IEEE International Conference on Decentralized Applications and Infrastructures (DAPPCON)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/DAPPCON.2019.00033","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Modularizing Cross-Cutting Concerns with Aspect-Oriented Extensions for Solidity
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.