Capturing Smart Contract Design with DCR Graphs
Paper in proceeding, 2023

Smart contracts manage blockchain assets and embody business processes. However, mainstream smart contract programming languages such as Solidity lack explicit notions of roles, action dependencies, and time. Instead, these concepts are implemented in program code. This makes it very hard to design and analyze smart contracts. We argue that DCR graphs are a suitable formalization tool for smart contracts because they explicitly and visually capture the mentioned features. We utilize this expressiveness to show that many common high-level design patterns representing the underlying business processes in smart-contract applications can be naturally modeled this way. Applying these patterns shows that DCR graphs facilitate the development and analysis of correct and reliable smart contracts by providing a clear and easy-to-understand specification.

Smart Contract Modelling

DCR Graphs

Design Patterns

Author

Mojtaba Eshghie

Royal Institute of Technology (KTH)

Wolfgang Ahrendt

Chalmers, Computer Science and Engineering (Chalmers), Formal methods

Cyrille Artho

Royal Institute of Technology (KTH)

Thomas Troels Hildebrandt

University of Copenhagen

Gerardo Schneider

University of Gothenburg

Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)

03029743 (ISSN) 16113349 (eISSN)

Vol. 14323 LNCS 106-125
9783031471148 (ISBN)

21st International Conference on Software Engineering and Formal Methods, SEFM 2023
Eindhoven, Netherlands,

Subject Categories

Computer and Information Science

DOI

10.1007/978-3-031-47115-5_7

More information

Latest update

12/5/2023