Auto-generation of Smart Contracts from a Domain-Specific XML-Based Language

Vimal Dwivedi, Alex Norta

Research output: Chapter in Book/Report/Conference proceedingChapterpeer-review

12 Citations (Scopus)

Abstract

Smart contracts are a means of facilitating, verifying and enforcing digital agreements. Blockchain technology, which includes an inherent consensus mechanism and programming languages, enables the concept of smart contracts. However, smart contracts written in an existing language, such as Solidity, Vyper, and others, are difficult for domain stakeholders and programmers to understand in order to develop code efficiently and without error, owing to a conceptual gap between the contractual provisions and the respective code. Our study addresses the problem by creating smart legal contract markup language (SLCML), an XML-based smart-contract language with pattern and transformation rules that automatically convert XML code to the Solidity language. In particular, we develop an XML schema (SLCML schema) that is used to instantiate any type of business contract understandable to IT and non-IT practitioners and is processed by computers. To reduce the effort and risk associated with smart contract development, we advocate a pattern for converting SLCML contracts to Solidity smart contracts, a smart contractual oriented computer language. We exemplify and assess our SLCML and transformation approach by defining a dairy supply chain contract based on real-world data.
Original languageEnglish
Title of host publicationIntelligent Data Engineering and Analytics
Pages549-564
Number of pages16
ISBN (Electronic)978-981-16-6624-7
DOIs
Publication statusPublished online - 28 Feb 2022

Publication series

NameSmart Innovation, Systems and Technologies
PublisherSpringer
Volume266
ISSN (Print)2190-3018
ISSN (Electronic)2190-3026

Fingerprint

Dive into the research topics of 'Auto-generation of Smart Contracts from a Domain-Specific XML-Based Language'. Together they form a unique fingerprint.

Cite this