SmaCoNat: Smart Contracts in Natural Language

Emanuel Regnath, Sebastian Steinhorst

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

35 Scopus citations

Abstract

Smart contracts enable autonomous decentralized organizations (DADs) in large, trustless and open trading networks by specifying conditions for automated transactions of cryptographically secured data. This data could represent cryptocurrencies but also sensor data or commands to Cyber-Physical Systems (CPS) connected to the Internet. To provide reliability, the contract code is enforced by consensus and the transactions it triggers are nonrevertible, even if they were not intended by the programmer, which could lead to dangerous system behavior. In this paper, we conduct a survey over existing smart contract platforms and languages to determine requirements for the design of a safer contract language. Subsequently we propose concepts that enhance the understanding of code by limiting confusing language constructs, such as nesting, arbitrary naming of operations, and unreadable hash identifiers. This enables human reasoning about the contract semantics on a much higher abstraction layer, because a common understanding can be derived from the language specification itself. We implement these concepts in a new domain specific language called SmaCoNat to illustrate the feasibility and show that our concepts are barely covered by existing languages but significantly enhance readability and safety without violating deterministic parsability.

Original languageEnglish
Title of host publicationFDL 2018 - Proceedings of the 2018 Forum on Specification and Design Languages
PublisherIEEE Computer Society
ISBN (Electronic)9781538664186
DOIs
StatePublished - 5 Nov 2018
Event2018 Forum on Specification and Design Languages, FDL 2018 - Munich, Germany
Duration: 10 Sep 201812 Sep 2018

Publication series

NameForum on Specification and Design Languages
Volume2018-September
ISSN (Print)1636-9874

Conference

Conference2018 Forum on Specification and Design Languages, FDL 2018
Country/TerritoryGermany
CityMunich
Period10/09/1812/09/18

Keywords

  • Blockchain
  • CPS
  • DSL
  • IoT
  • Smart Contract

Fingerprint

Dive into the research topics of 'SmaCoNat: Smart Contracts in Natural Language'. Together they form a unique fingerprint.

Cite this