Skip to content
Book Open access

Smart Contract Synthesis via Multi-modal Specifications

Oct 2026 · Proceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering · pp. 1690-1701 · 0 citations · 18 references

TL;DR

This paper proposes SmartSpec, a synthesizer that generates smart-contract implementations from functional and safety specifications and validates them with integrated verification, and employs maximally permissive synthesis, ensuring contracts preserve all safety requirements while remaining as permissive as possible.

Abstract

Smart contracts manage substantial digital assets on blockchains. Given their transparency and immutability, ensuring their correctness before deployment is essential. While verification tools offer assistance, the iterative nature of the process presents hurdles, especially for less experienced developers. In this paper, we explore a paradigm shift in smart contract development: writing high-level specifications instead of low-level code. To realize this goal, we propose SmartSpec, a synthesizer that generates smart-contract implementations from functional and safety specifications and validates them with integrated verification. To avoid overly restrictive outcomes, SmartSpec employs maximally permissive synthesis, ensuring contracts preserve all safety requirements while remaining as permissive as possible. Its novel algorithm combines deductive and inductive synthesis techniques, balancing precision and generalization. On 27 contracts, synthesis runs in seconds to minutes; 23 match references without interactive refinement (85%), while the remaining four can be corrected with up to four rounds of interactive feedback through extra examples. Mean gas overhead vs. references on the table is +0.7%.

Read PDF

Similar papers

Book Open access Oct 2026

SecChain: Operationalizing Security Guidelines for Multi-agent Smart Contract Generation

Smart contracts generated by large language models (LLMs) can compile yet still violate basic security obligations, and existing generation frameworks largely treat security as post-hoc verification rather than as a constraint that persists throughout generation and repair. We present SecChain, a multi-agent smart-cont...

Dian-Xiang Sun, Li-Ming Nie, Yang Liu · 0 citations
Open access Oct 2026

FSM-Driven Flow Control and Logic Updating for Modifiable Smart Contracts

Smart contracts deployed on blockchains are traditionally immutable, yet practical applications may require controlled adaptation to address logic defects, evolving business requirements, or changes in contractual terms. This paper presents an FSM-driven framework for modifiable smart contracts that combines flow contr...

Lee Liu, Shun-Wen Hsiao, Fang Yu · 0 citations
#reinforcement learning Review Open access Sep 2026

A Systematic Survey of Smart Contract Fuzzing: Methods, Techniques, and Architectures for Ethereum and Beyond

A conceptual taxonomy establishing an explicit correspondence between classical and smart contract fuzzing is developed and an architectural taxonomy of representative fuzzers unified under a generalised waypoint architecture is presented that exposes key feedback domains and composition gaps.

Luis Alberto López Alvar, L. de la Torre, Ze-Hua Wang et al. · 0 citations
Book Open access Oct 2026

Correct-by-Construction Evolution of Digital Twins for Real-Time Autonomous Systems

Safety-critical cyber-physical systems must evolve---through adaptation and post-deployment updates---without forfeiting the guarantees on which their certification rests. Yet digital-twin (DT)--based model-based systems engineering (MBSE) lacks a formal mechanism for preserving correctness as the physical twin (PT) an...

Luca Brodo, G. Scalora, Stefan Henkler · 0 citations
Review Open access Oct 2026

Applying algebraic semantics for smart contracts formalisation and verification

Smart contracts are a key component of blockchain systems, but their immutability after deployment imposes increased requirements for correctness and security. This necessitates the use of formal methods capable of providing mathematically sound verification of contracts at the design stage. The objective of this study...

Olga Konnova · 0 citations
Book Open access Oct 2026

Trace-Driven Automated PoC Synthesis for On-Chain Attacks

Blockchain systems are increasingly targeted by on-chain attacks that exploit vulnerabilities in smart contracts, resulting in billions of dollars in losses. Understanding and reproducing these attacks is critical for defense, yet currently relies on manually crafting proofs-of-concept (PoCs), which is labor-intensive,...

Xing Su, Hao Wu, Han-Zhong Liang et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.