Cargando…

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

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...

Descripción completa

Detalles Bibliográficos
Autores principales: Nishida, Yuki, Saito, Hiromasa, Chen, Ran, Kawata, Akira, Furuse, Jun, Suenaga, Kohei, Igarashi, Atsushi
Formato: Online Artículo Texto
Lenguaje:English
Publicado: 2021
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7984548/
http://dx.doi.org/10.1007/978-3-030-72013-1_14
_version_ 1783668088563040256
author Nishida, Yuki
Saito, Hiromasa
Chen, Ran
Kawata, Akira
Furuse, Jun
Suenaga, Kohei
Igarashi, Atsushi
author_facet Nishida, Yuki
Saito, Hiromasa
Chen, Ran
Kawata, Akira
Furuse, Jun
Suenaga, Kohei
Igarashi, Atsushi
author_sort Nishida, Yuki
collection PubMed
description 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 tool paper 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.
format Online
Article
Text
id pubmed-7984548
institution National Center for Biotechnology Information
language English
publishDate 2021
record_format MEDLINE/PubMed
spelling pubmed-79845482021-03-23 Helmholtz: A Verifier for Tezos Smart Contracts Based on Refinement Types Nishida, Yuki Saito, Hiromasa Chen, Ran Kawata, Akira Furuse, Jun Suenaga, Kohei Igarashi, Atsushi Tools and Algorithms for the Construction and Analysis of Systems Article 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 tool paper 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. 2021-02-26 /pmc/articles/PMC7984548/ http://dx.doi.org/10.1007/978-3-030-72013-1_14 Text en © The Author(s) 2021 Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made. The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
spellingShingle Article
Nishida, Yuki
Saito, Hiromasa
Chen, Ran
Kawata, Akira
Furuse, Jun
Suenaga, Kohei
Igarashi, Atsushi
Helmholtz: A Verifier for Tezos Smart Contracts Based on Refinement Types
title Helmholtz: A Verifier for Tezos Smart Contracts Based on Refinement Types
title_full Helmholtz: A Verifier for Tezos Smart Contracts Based on Refinement Types
title_fullStr Helmholtz: A Verifier for Tezos Smart Contracts Based on Refinement Types
title_full_unstemmed Helmholtz: A Verifier for Tezos Smart Contracts Based on Refinement Types
title_short Helmholtz: A Verifier for Tezos Smart Contracts Based on Refinement Types
title_sort helmholtz: a verifier for tezos smart contracts based on refinement types
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7984548/
http://dx.doi.org/10.1007/978-3-030-72013-1_14
work_keys_str_mv AT nishidayuki helmholtzaverifierfortezossmartcontractsbasedonrefinementtypes
AT saitohiromasa helmholtzaverifierfortezossmartcontractsbasedonrefinementtypes
AT chenran helmholtzaverifierfortezossmartcontractsbasedonrefinementtypes
AT kawataakira helmholtzaverifierfortezossmartcontractsbasedonrefinementtypes
AT furusejun helmholtzaverifierfortezossmartcontractsbasedonrefinementtypes
AT suenagakohei helmholtzaverifierfortezossmartcontractsbasedonrefinementtypes
AT igarashiatsushi helmholtzaverifierfortezossmartcontractsbasedonrefinementtypes