Skip to main content
QUICK REVIEW

[Paper Review] Scilla: a Smart Contract Intermediate-Level LAnguage

Ilya Sergey, Amrit Kumar|arXiv (Cornell University)|Jan 2, 2018
Security and Verification in ComputingComputer Science18 references58 citations
TL;DR

Scilla is an intermediate-level language for verified smart contracts that separates computation from blockchain interaction and enables formal verification via an automata-based model and Coq embedding.

ABSTRACT

This paper outlines key design principles of Scilla---an intermediate-level language for verified smart contracts. Scilla provides a clean separation between the communication aspect of smart contracts on a blockchain, allowing for the rich interaction patterns, and a programming component, which enjoys principled semantics and is amenable to formal verification. Scilla is not meant to be a high-level programming language, and we are going to use it as a translation target for high-level languages, such as Solidity, for performing program analysis and verification, before further compilation to an executable bytecode. We describe the automata-based model of Scilla, present its programming component and show how contract definitions in terms of automata streamline the process of mechanised verification of their safety and temporal properties.

Motivation & Objective

  • Motivate the need for reliable smart contracts amid security incidents and complex blockchain interactions.
  • Propose Scilla as an intermediate language that enables rigorous formal reasoning about contract behavior.
  • Provide an automata-based computational model that cleanly separates in-contract computation from blockchain-wide interactions.
  • Show how Scilla supports mechanised verification of safety and liveness properties via Coq embeddings.

Proposed method

  • Present Scilla as an intermediate language aimed at being a translation target for high-level languages (e.g., Solidity) to facilitate program analysis and verification before compilation to bytecode.
  • Describe the automata-based model where contracts are structured as communicating automata with atomic transitions.
  • Explain the separation between pure computations and effectful state changes, and between invocation and continuation through CPS-style continuations.
  • Introduce explicit continuations to model return-flow and support controlled external calls, enabling safer interaction patterns like non-reentrancy.
  • Outline a Coq-based formalism that encodes contract states, messages, and transitions and defines execution traces for safety and liveness reasoning.

Experimental results

Research questions

  • RQ1How can smart contracts be designed to allow rigorous formal verification of their safety and liveness properties?
  • RQ2Can a language design that separates computation from communication and uses automata-based contracts improve reasoning about contract composition and correctness?
  • RQ3How can continuations be integrated to model return-flow and external calls while preserving verifiability?
  • RQ4What is the pathway to translating Solidity-like programs into Scilla to enable verification before bytecode generation?

Key findings

  • Scilla provides a principled separation of computation from blockchain communication via a communicating-automata model.
  • Contracts are built from atomic transitions; messages trigger transitions, ensuring state changes are contained and analyzable.
  • A purity/effects separation and explicit use of continuations support tractable verification and CPS-style control flow for return paths.
  • The work integrates Scilla with Coq to mechanise semantics and proofs of safety and liveness for contract executions.
  • A Crowdfunding example illustrates the workflow and the automata-based verification approach (conceptual model, not numerical results).

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.