Smart contracts: security patterns in the ethereum ecosystem and solidity

Maximilian Wöhrer, Uwe Zdun

2018 · 356 citations · 2 references

Concepts

TL;DR

Smart contracts on blockchain attract attention for enabling untrusted parties to encode agreements in code, eliminating trusted intermediaries, yet writing secure, high‑performance contracts on Ethereum remains difficult and research into this area has only recently begun. Based on an analysis of collected data with Grounded Theory techniques, we elaborated several common security patterns and described them in detail using Solidity, the dominant programming language for Ethereum. The presented patterns provide solutions to typical security issues and can be applied by Solidity developers to mitigate common attack scenarios.

Abstract

Smart contracts that build up on blockchain technologies are receiving great attention in new business applications and the scientific community, because they allow untrusted parties to manifest contract terms in program code and thus eliminate the need for a trusted third party. The creation process of writing well performing and secure contracts in Ethereum, which is today's most prominent smart contract platform, is a difficult task. Research on this topic has only recently started in industry and science. Based on an analysis of collected data with Grounded Theory techniques, we have elaborated several common security patterns, which we describe in detail on the basis of Solidity, the dominating programming language for Ethereum. The presented patterns describe solutions to typical security issues and can be applied by Solidity developers to mitigate typical attack scenarios.

References

2