Specification is Law: Safe Creation and Upgrade of Ethereum Smart Contracts

05/16/2022
by   Pedro Antonino, et al.
0

Smart contracts are the building blocks of the "code is law" paradigm: the smart contract's code indisputably describes how its assets are to be managed - once it is created, its code is typically immutable. Faulty smart contracts present the most significant evidence against the practicality of this paradigm; they are well-documented and resulted in assets worth vast sums of money being compromised. To address this issue, the Ethereum community proposed (i) tools and processes to audit/analyse smart contracts, and (ii) design patterns implementing a mechanism to make contract code mutable. Individually, (i) and (ii) only partially address the challenges raised by the "code is law" paradigm. In this paper, we combine elements from (i) and (ii) to create a systematic framework that moves away from "code is law" and gives rise to a new "specification is law" paradigm. It allows contracts to be created and upgraded but only if they meet a corresponding formal specification. The framework is centered around a trusted deployer: an off-chain service that formally verifies and enforces this notion of conformance. We have prototyped this framework, and investigated its applicability to contracts implementing two widely used Ethereum standards: the ERC20 Token Standard and ERC1155 Multi Token Standard, with promising results.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/20/2021

Modular Verification of Collaborating Smart Contracts

Smart contracts are programs that execute inside blockchains such as Eth...
research
05/06/2022

From Trade-only to Zero-Value NFTs: The Asset Proxy NFT Paradigm in Web3

Many implementations of smart contracts available in NFT marketplaces to...
research
06/04/2018

Securify: Practical Security Analysis of Smart Contracts

Permissionless blockchains allow the execution of arbitrary programs (ca...
research
04/21/2017

Governing Governance: A Formal Framework for Analysing Institutional Design and Enactment Governance

This dissertation is motivated by the need, in today's globalist world, ...
research
01/08/2018

Blockchain Technology as a Regulatory Technology: From Code is Law to Law is Code

"Code is law" refers to the idea that, with the advent of digital techno...
research
11/28/2018

Detecting Token Systems on Ethereum

We propose and compare two approaches to identify smart contracts as tok...
research
03/01/2023

Formal and Executable Semantics of the Ethereum Virtual Machine in Dafny

The Ethereum protocol implements a replicated state machine. The network...

Please sign up or login with your details

Forgot password? Click here to reset