Design Patterns for Smart Contracts in the Ethereum Ecosystem
Authors:
- 1 July 2018
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1513-1520
Abstract
The idea to digitally facilitate contract law and business practices through computer programs has led to the notion of smart contracts. Today's most prominent smart contract ecosystem is Ethereum, a blockchain based distributed computing platform. Due to the inherent nature of blockchain based contract execution, missing low level programming abstractions, and the constant evolution of platform features and security considerations, writing correct and secure smart contracts for Ethereum is a difficult task. Based on a Multivocal Literature Research and an analysis of the gathered data based on qualitative research methods, we mined a number of design patterns providing design guidelines. We describe those patterns in detail and provide exemplary code for better illustration. Our research shows that the patterns are widely used to address application requirements and common problems. We expect generalizability of some or all of the patterns for other smart contract ecosystems, but this is outside of the scope of this study, which studied only smart contract patterns in Ethereum.Keywords
This publication has 6 references indexed in Scilit:
- Smart contracts: security patterns in the ethereum ecosystem and solidity2018
- A Taxonomy of Blockchain-Based Systems for Architecture Design2017
- Town Crier2016
- The need for multivocal literature reviews in software engineering2016
- Grounded theory in software engineering research2016
- Guidelines for snowballing in systematic literature studies and a replication in software engineering2014