Transformation from MVC Applications to Smart Contracts

Qiqi Gu, Wei Ke, Yilong Yang

研究成果: Conference contribution同行評審

1 引文 斯高帕斯(Scopus)

摘要

A smart contract is a program running on a blockchain platform. Smart devices send data to smart contracts or change their own status based on smart contracts. Businesses want to use smart devices and smart contracts to streamline workflow because smart contracts reduce the need in trusted intermediators and cut down enforcement costs. However, developing smart contract applications is challenging due to different memory models, different interaction models, and a dearth of supporting tools and libraries. When developers are asked to reimplement conventional applications to smart contracts, it is thus ideal to automatically transform them, avoiding manual labor, as well as ensuring reliability and security. This paper contributes a set of rules to transform conventional applications in the Model-View-Controller (MVC) pattern into smart contracts running on Hyperledger Fabric, a blockchain platform preferred by businesses. Major transformations are performed in the model, while in the controller, model calls are replaced by smart contract calls. The source application and the target smart contract are all written in Java. Our rules add read-your-writes consistency that Hyperledger Fabric does not natively support. Runtime pre- and post-condition checking in the original application is supported in the transformed smart contract. We evaluated our rules on CoCoME and other MVC applications, and all code ran correctly and passed unit tests.

原文English
主出版物標題Proceedings - 2022 IEEE 20th International Conference on Embedded and Ubiquitous Computing, EUC 2022
發行者Institute of Electrical and Electronics Engineers Inc.
頁面104-111
頁數8
ISBN(電子)9798350396355
DOIs
出版狀態Published - 2022
事件20th IEEE International Conference on Embedded and Ubiquitous Computing, EUC 2022 - Virtual, Online, China
持續時間: 9 12月 202211 12月 2022

出版系列

名字Proceedings - 2022 IEEE 20th International Conference on Embedded and Ubiquitous Computing, EUC 2022

Conference

Conference20th IEEE International Conference on Embedded and Ubiquitous Computing, EUC 2022
國家/地區China
城市Virtual, Online
期間9/12/2211/12/22

指紋

深入研究「Transformation from MVC Applications to Smart Contracts」主題。共同形成了獨特的指紋。

引用此