Title |
MDA-based approach for blockchain smart contract development / |
Authors |
Jurgelaitis, Mantas ; Čeponienė, Lina ; Butkus, Karolis ; Butkienė, Rita ; Drungilas, Vaidotas |
DOI |
10.3390/app13010487 |
Full Text |
|
Is Part of |
Applied sciences.. Basel : MDPI. 2023, vol. 13, iss. 1, art. no. 487, p. 1-28.. ISSN 2076-3417 |
Keywords [eng] |
smart contract ; MDA ; UML ; code generation ; model transformation |
Abstract [eng] |
Blockchain smart contracts can support the decentralisation of business processes, but due to smart contracts’ specifics, their development is a complicated process. Introducing model-driven development principles in smart contract development can facilitate requirement specification, design, and implementation activities. This paper presents a model-driven development method MDAsmartCD (Model-Driven Architecture-based Smart Contract Development) to alleviate smart contract development by supporting the complete MDA life cycle, covering the definition of Computation-Independent Model, Platform-Independent Model, and two instances of Platform-Specific Models. In MDAsmartCD, model transformations (model-to-model and model-to-text) are used to produce smart contract code in the Hyperledger Fabric platform Go and the Ethereum platform Solidity programming languages. The method application was demonstrated by implementing the smart contract for the hackathon solution and executing the generated Solidity and Go smart contracts in the workflow of issuing certificates for hackathon participants. During the execution of the workflow, both deployed smart contracts behaved identically and recorded analogous results in respective blockchain data storages. This demonstrated that the MDAsmartCD method enables the generation of compilable and executable smart contract code, ready for deployment on a blockchain platform. |
Published |
Basel : MDPI |
Type |
Journal article |
Language |
English |
Publication date |
2023 |
CC license |
|