vix.ing · top · new · best · stats · spec

HELMHOLTZ: A Verifier for Tezos Smart Contracts Based on Refinement Types

2021/08/30 by Yuki Nishida, Hiromasa Saito, Nishida, Yuki +11
Computer Science · #Blockchain Technology Applications and Security #Computation and Language (cs.CL) #Cryptography and Data Security #FOS: Computer and information sciences #Logic in Computer Science (cs.LO) #Logic, Reasoning, and Knowledge #Programming Languages (cs.PL) #Software Engineering (cs.SE)

paper · pdf · doi:10.48550/arxiv.2108.12971

openalex publication_date 2021/08/30 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

Abstract

A smart contract is a program executed on a blockchain, based on which many cryptocurrencies are implemented, and is being used for automating transactions. Due to the large amount of money that smart contracts deal with, there is a surging demand for a method that can statically and formally verify them. This article describes our type-based static verification tool HELMHOLTZ for Michelson, which is a statically typed stack-based language for writing smart contracts that are executed on the blockchain platform Tezos. HELMHOLTZ is designed on top of our extension of Michelson's type system with refinement types. HELMHOLTZ takes a Michelson program annotated with a user-defined specification written in the form of a refinement type as input; it then typechecks the program against the specification based on the refinement type system, discharging the generated verification conditions with the SMT solver Z3. We briefly introduce our refinement type system for the core calculus Mini-Michelson of Michelson, which incorporates the characteristic features such as compound datatypes (e.g., lists and pairs), higher-order functions, and invocation of another contract. \HELMHOLTZ successfully verifies several practical Michelson programs, including one that transfers money to an account and that checks a digital signature.

Related