Saved in:
Bibliographic Details
Main Authors: Selabi, Elvis Konjoh, Murgia, Maurizio, Ravara, António, Tuosto, Emilio
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2604.20507
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908986888945664
author Selabi, Elvis Konjoh
Murgia, Maurizio
Ravara, António
Tuosto, Emilio
author_facet Selabi, Elvis Konjoh
Murgia, Maurizio
Ravara, António
Tuosto, Emilio
contents We propose a formal approach for specifying and implementing decentralised coordination in distributed systems, with a focus on smart contracts. Our model captures dynamic roles, data-driven transitions, and external coordination interfaces, enabling high-level reasoning about decentralised workflows. We implement a toolchain that supports formal model validation, code generation for Solidity (our framework is extendable to other smart contract languages), and automated test synthesis. Although our implementation targets blockchain platforms, the methodology is platform-agnostic and may generalise to other service-oriented and distributed architectures. We demonstrate the expressiveness and practicality of the approach by modelling and realising some coordination patterns in smart contracts.
format Preprint
id arxiv_https___arxiv_org_abs_2604_20507
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Automatic Code and Test Generation of Smart Contracts from Coordination Models
Selabi, Elvis Konjoh
Murgia, Maurizio
Ravara, António
Tuosto, Emilio
Programming Languages
We propose a formal approach for specifying and implementing decentralised coordination in distributed systems, with a focus on smart contracts. Our model captures dynamic roles, data-driven transitions, and external coordination interfaces, enabling high-level reasoning about decentralised workflows. We implement a toolchain that supports formal model validation, code generation for Solidity (our framework is extendable to other smart contract languages), and automated test synthesis. Although our implementation targets blockchain platforms, the methodology is platform-agnostic and may generalise to other service-oriented and distributed architectures. We demonstrate the expressiveness and practicality of the approach by modelling and realising some coordination patterns in smart contracts.
title Automatic Code and Test Generation of Smart Contracts from Coordination Models
topic Programming Languages
url https://arxiv.org/abs/2604.20507