Reactive Synthesis of Smart Contract Control Flows
Bernd Finkbeiner, Jana Hofmann, Florian Kohn, Noemi Passing

TL;DR
This paper introduces a reactive synthesis method for automatically generating smart contract control flows using an extended temporal logic, enabling rapid Solidity code generation for error-prone contracts.
Contribution
It extends temporal stream logic with parameters, providing a novel two-step synthesis approach for smart contract state machines from specifications.
Findings
Automatically synthesizes Solidity code within seconds
Handles infinite-state systems through finite representations
Enables hierarchical architecture for smart contract implementation
Abstract
Smart contracts are small but highly error-prone programs that implement agreements between multiple parties. We present a reactive synthesis approach for the automatic construction of smart contract state machines. Towards this end, we extend temporal stream logic (TSL) with universally quantified parameters over infinite domains. Parameterized TSL is a convenient logic to specify the temporal control flow, i.e., the correct order of transactions, as well as the data flow of the contract's fields. We develop a two-step approach that 1) synthesizes a finite representation of the - in general - infinite-state system and 2) splits the system into a compact hierarchical architecture that enables the implementation of the state machine in Solidity. We implement the approach in our prototype tool SCSynt, which - within seconds - automatically constructs Solidity code that realizes the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBusiness Process Modeling and Analysis · Blockchain Technology Applications and Security · Multi-Agent Systems and Negotiation
