Home
Scholarly Works
Model-Driven Smart Contract Generation Leveraging...
Chapter

Model-Driven Smart Contract Generation Leveraging ChatGPT

Abstract

The trending large language model-based ChatGPT service, originally meant to be used as conversational agent, has been adopted in many areas - from programming to entertainment. On the other side, development of smart contracts for various blockchain platforms represents a time and effort demanding task due to their special characteristics. In this paper, we explore how ChatGPT can be leveraged for the purpose of automated smart contract generation with aims to reduce the time and effort required for their development. For our case studies, we consider Solidity and DAML smart contract languages. As an outcome, we propose a model-driven framework treating the problem as a dialogue in a specific context between a user on one hand, facilitated via a smart contract model, and a ChatGPT service, on the other hand. According to our results, the approach seems promising, especially due to its flexibility compared to traditional methods.

Authors

Petrović N; Al-Azzoni I

Book title

Advances in Systems Engineering

Series

Lecture Notes in Networks and Systems

Volume

761

Pagination

pp. 387-396

Publisher

Springer Nature

Publication Date

January 1, 2023

DOI

10.1007/978-3-031-40579-2_37
View published work (Non-McMaster Users)

Contact the Experts team