1. Tezla, an Intermediate Representation for Static Analysis of Michelson Smart Contracts.

    2020

    Santos Reis, João and Crocker, Paul and de Sousa, Simão Melo.
    2nd Workshop on Formal Methods for Blockchains (FMBC 2020) 84. Pages 4:1–4:12.
    DOI: 10.4230/OASIcs.FMBC.2020.4
    ISBN: 978-3-95977-169-6
    [abstract]
    This paper introduces Tezla, an intermediate representation of Michelson smart contracts that eases the design of static smart contract analysers. This intermediate representation uses a store and preserves the semantics, ow and resource usage of the original smart contract. This enables properties like gas consumption to be statically verified. We provide an automated decompiler of Michelson smart contracts to Tezla. In order to support our claim about the adequacy of Tezla, we develop a static analyser that takes advantage of the Tezla representation of Michelson smart contracts to prove simple but non-trivial properties.
    @inproceedings{santosreis_et_al:OASIcs:2020:13417,
      author = {Santos Reis, Jo{\~a}o and Crocker, Paul and de Sousa, Sim{\~a}o Melo},
      title = {{Tezla, an Intermediate Representation for Static Analysis of Michelson Smart Contracts}},
      booktitle = {2nd Workshop on Formal Methods for Blockchains (FMBC 2020)},
      pages = {4:1--4:12},
      series = {OpenAccess Series in Informatics (OASIcs)},
      isbn = {978-3-95977-169-6},
      issn = {2190-6807},
      year = {2020},
      volume = {84},
      editor = {Bernardo, Bruno and Marmsoler, Diego},
      publisher = {Schloss Dagstuhl--Leibniz-Zentrum f{\"u}r Informatik},
      address = {Dagstuhl, Germany},
      url = {https://drops.dagstuhl.de/opus/volltexte/2020/13417},
      urn = {urn:nbn:de:0030-drops-134176},
      doi = {10.4230/OASIcs.FMBC.2020.4},
      annote = {Keywords: Intermediate representation, Static analysis, Tezos blockchain, Michelson}
    }
    

  2. A tool for proving Michelson Smart Contracts in WHY3*.

    2020

    Arrojado da Horta, Luís Pedro and Santos Reis, João and de Sousa, Simão Melo and Pereira, Mário.
    2020 IEEE International Conference on Blockchain (Blockchain) Pages 409-414.
    DOI: 10.1109/Blockchain50366.2020.00059
    [abstract]
    This paper introduces a deductive verification tool for smart contracts written in Michelson, which is the low-level language of the Tezos blockchain. Our tool accepts a formally specified Michelson contract and automatically translates it to an equivalent program written in WhyML, the programming and specification language of the Why3 framework. Smart contract instructions are mapped into a corresponding WhyML shallow-embedding of the their axiomatic semantics, which we also developed in the context of this work. One major advantage of this approach is that it allows an out-of-the-box integration with the Why3 framework, namely its VCGen and the backend support for several automated theorem provers. We also discuss the use of our tool to automatically prove the correctness of diverse annotated smart contracts.
    @inproceedings{9284726,
      author = {Arrojado da Horta, Luís Pedro and Santos Reis, João and de Sousa, Simão Melo and Pereira, Mário},
      booktitle = {2020 IEEE International Conference on Blockchain (Blockchain)},
      title = {A tool for proving Michelson Smart Contracts in WHY3*},
      year = {2020},
      pages = {409-414},
      doi = {10.1109/Blockchain50366.2020.00059},
      month = nov
    }
    


Funded by:

Tezos Foundation