Protocol-based Smart Contract Generation

08/05/2021
by   Afonso Falcão, et al.
0

The popularity of smart contracts is on the rise, yet breaches in reliability and security linger. Among the many facets of smart contract reliability, we concentrate on faults rooted in out-of-order interactions with contract endpoints. We propose SmartScribble, a protocol language to describe valid patterns of interaction between users and endpoints. SmartScribble not only ensures correct interactive behaviour but also simplifies smart contract coding. From a protocol description, our compiler generates a smart contract that can then be completed by the programmer with the relevant business logic. The generated contracts rely on finite state machines to control endpoint invocations. As a proof of concept, we target Plutus, the contract programming language for the Cardano blockchain. Preliminary evaluation points to a 75 decrease in the size of the code that developers must write, coupled with an increase of reliability by enforcing the specified patterns of interaction.

READ FULL TEXT

page 5

page 10

research
01/07/2020

Albert, an intermediate smart-contract language for the Tezos blockchain

Tezos is a smart-contract blockchain. Tezos smart contracts are written ...
research
12/03/2018

Debugging Smart Contract's Business Logic Using Symbolic Model-Checking

Smart contracts are a special type of programs running inside a blockcha...
research
09/14/2019

Transactional Smart Contracts in Blockchain Systems

This paper presents TXSC, a framework that provides smart contract devel...
research
11/26/2019

Mandala: A Smart Contract Programming Language

Smart contracts on a blockchain behave precisely as specified by their c...
research
11/28/2019

Securing Smart Contract On The Fly

We present Solythesis, a source to source Solidity compiler which takes ...
research
03/07/2023

Daml: A Smart Contract Language for Securely Automating Real-World Multi-Party Business Workflows

Distributed ledger technologies, also known as blockchains for enterpris...
research
02/05/2021

Smart Proofs via Smart Contracts: Succinct and Informative Mathematical Derivations via Decentralized Markets

Modern mathematics is built on the idea that proofs should be translatab...

Please sign up or login with your details

Forgot password? Click here to reset