Skip to main content
QUICK REVIEW

[Paper Review] Towards Safer Smart Contracts: A Survey of Languages and Verification Methods

Dominik Harz, William J. Knottenbelt|arXiv (Cornell University)|Sep 26, 2018
Blockchain Technology Applications and SecurityComputer Science27 references75 citations
TL;DR

A comprehensive survey of smart contract languages (high-level, IR, and low-level) and verification methods, focusing on security properties, formal semantics, metering, and verification toolchains. It analyzes design trade-offs and outlines future directions for safer smart contracts.

ABSTRACT

With a market capitalisation of over USD 205 billion in just under ten years, public distributed ledgers have experienced significant adoption. Apart from novel consensus mechanisms, their success is also accountable to smart contracts. These programs allow distrusting parties to enter agreements that are executed autonomously. However, implementation issues in smart contracts caused severe losses to the users of such contracts. Significant efforts are taken to improve their security by introducing new programming languages and advance verification methods. We provide a survey of those efforts in two parts. First, we introduce several smart contract languages focussing on security features. To that end, we present an overview concerning paradigm, type, instruction set, semantics, and metering. Second, we examine verification tools and methods for smart contract and distributed ledgers. Accordingly, we introduce their verification approach, level of automation, coverage, and supported languages. Last, we present future research directions including formal semantics, verified compilers, and automated verification.

Motivation & Objective

  • Survey current smart contract languages with emphasis on security features and architecture (paradigm, type, instruction set, semantics, metering).
  • Survey verification tools and methods for smart contracts across low-level, IR, and high-level representations, including automation, coverage, and language support.
  • Analyze security properties specific to smart contracts (call integrity, atomicity, independence, runtime correctness) and discuss future research directions such as formal semantics and verified compilers.

Proposed method

  • Classify languages into high-level, intermediary representations (IR), and low-level levels; discuss their paradigms, instruction sets, semantics, and metering.
  • Review security properties and how language design addresses reentrancy, atomicity, and external calls.
  • Survey verification approaches: model-based (automatic) vs. proof-based (semi-automatic) with discussions of automation, coverage, and supported languages.
  • Summarize verification tools (Securify, Mythril, Oyente, ZEUS, ECF, Maian, K frameworks, Lem, Coq, F*) and map them to low-level, IR, or high-level inputs.
  • Discuss formal semantics efforts and their impact on verified compilers and secure language design.

Experimental results

Research questions

  • RQ1What are the key language design choices that impact smart contract safety across high-level, IR, and low-level representations?
  • RQ2What verification approaches are used to ensure smart contract security, and how do automation, coverage, and language support vary across tools?
  • RQ3What future directions in formal semantics and verified compilers are most promising for safer smart contracts?

Key findings

  • High-level languages (e.g., Solidity, Vyper) increasingly restrict instruction sets and encourage explicit state transitions to improve safety.
  • Intermediary representations (IRs) like Scilla, Simplicity, and others emphasize formal semantics and verification readiness; low-level languages prioritize deterministic execution and metering strategies (gas, script size).
  • A variety of verification tools operate on different inputs (low-level bytecode, IR, or high-level code) with varying degrees of automation and coverage; model-based tools enable full automation, while proof-based tools are partially automated.
  • Formal semantics efforts (K framework, Coq, Isabelle/HOL, F*) support rigorous verification; there is a push toward verified compilers and separation of VM vs ledger semantics.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.