Reactive Synthesis of Smart Contract Control Flows

05/12/2022
by   Bernd Finkbeiner, et al.
0

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 state machines implementing the temporal control flow of smart contracts. To accommodate typical smart contract specifications, we build on temporal stream logic (TSL) and extend it with a tailored form of parameterization. We show how to comprehensively specify the control flow of various types of common smart contracts, including ERC20 token systems, elections, and asset transfer protocols. We develop a synthesis algorithm based on the past-time fragment of TSL with parameters and show how to efficiently translate the resulting infinite-state machine to Solidity code. Our tool SCSynt implements the approach together with a feedback loop that warns the developer of potential specification errors. Our experiments show that SCSynt derives correct-by-construction Solidity code from formal smart contract specifications within seconds.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/15/2022

Smart Contract Synthesis Modulo Hyperproperties

Smart contracts are small but highly security-critical programs that imp...
research
06/07/2019

Smart Contract Design Meets State Machine Synthesis: Case Studies

Modern blockchain systems support creation of smart contracts -- statefu...
research
12/09/2019

Building Executable Secure Design Models for Smart Contracts with Formal Methods

Smart contracts are appealing because they are self-executing business a...
research
08/06/2020

A Survey of Smart Contract Formal Specification and Verification

A smart contract is a computer program which allows users to define and ...
research
10/02/2019

Synthesis of Orchestrations and Choreographies: Bridging the Gap between Supervisory Control and Coordination of Services

We present a number of contributions to bridging the gap between supervi...
research
06/26/2019

Cryptocurrency Smart Contracts for Distributed Consensus of Public Randomness

Most modern electronic devices can produce a random number. However, it ...
research
10/28/2020

Construction Payment Automation Using Blockchain-Enabled Smart Contracts and Reality Capture Technologies

This paper presents a smart contract-based solution for autonomous admin...

Please sign up or login with your details

Forgot password? Click here to reset