Money Grows on (Proof-)Trees: The Formal FA1.2 Ledger Standard - Archive ouverte HAL Access content directly
Conference Papers Year :

Money Grows on (Proof-)Trees: The Formal FA1.2 Ledger Standard

(1, 2) , (2) , (3)
1
2
3

Abstract

Once you have invented digital money, you may need a ledger to track who owns what-along with an interface to that ledger so that users of your money can transact. On the Tezos blockchain this implies: a smart contract (distributed program), storing in its state a ledger to map owner addresses to token quantities; along with standardised entrypoints to query and transact on accounts. A bank does a similar job-it maps account numbers to account quantities and permits users to transact-but in return the bank demands trust, it incurs expense to maintain a centralised server and staff, it uses a proprietary interface. .. and it may speculate using your money and/or display rent-seeking behaviour. A blockchain ledger is by design decentralised, inexpensive, open, and it won't just decide to bet your tokens on risky derivatives (unless you want it to). The FA1.2 standard is an open standard for ledger-keeping smart contracts on the Tezos blockchain. Several FA1.2 implementations already exist. Or do they? Is the standard sensible and complete? Are the implementations correct? And what are they implementations of ? The FA1.2 standard is written in English, a specification language favoured by wet human brains but notorious for its incompleteness and ambiguity when rendered into dry and unforgiving code. In this paper we report on a formalisation of the FA1.2 standard as a Coq specification, and on a formal verification of three FA1.2-compliant smart contracts with respect to that specification. Errors were found and ambiguities were resolved; but also, there now exists a mathematically precise and battle-tested specification of the FA1.2 ledger standard. We will describe FA1.2 itself, outline the structure of the Coq theories-which in itself captures some non-trivial and novel design decisions of the development-and review the detailed verification of the implementations.
Fichier principal
Vignette du fichier
OASIcs-FMBC-2021-2.pdf (613.36 Ko) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

hal-03498062 , version 1 (20-12-2021)

Identifiers

Cite

Murdoch J Gabbay, Arvid Jakobsson, Kristina Sojakova. Money Grows on (Proof-)Trees: The Formal FA1.2 Ledger Standard. 3rd International Workshop on Formal Methods for Blockchains, Jul 2021, Los Angeles, United States. ⟨10.4230/OASIcs.FMBC.2021.2⟩. ⟨hal-03498062⟩

Collections

INRIA INRIA2
20 View
26 Download

Altmetric

Share

Gmail Facebook Twitter LinkedIn More