Formalizing smart contract design patterns with DCR graphs
Artikel i vetenskaplig tidskrift, 2026

Smart contracts manage blockchain assets and embody business processes. Yet, mainstream languages lack explicit support forprocess concepts such as roles, action dependencies, and time constraints, leading to increased implementation complexity andanalysis challenges. To address this, we use Dynamic Condition Response (DCR) graphs, a formal business process modelinglanguage, to formalize the semantics of smart contract business logic. Modeling smart contracts in DCR graphs involvestranslating their underlying behavioral logic into a declarative visual model using DCR's explicit constructs for events, roles,data, time, and inter-event relationships. Furthermore, we systematically model 15 common high-level smart contractdesignpatterns, representing recurring solutions to business logic-level problems. These formalizations reduce ambiguity comparedto informal descriptions and serve as language-independent specifications. We demonstrate the modeling process throughthree complete smart contract case studies that combine six design patterns. Our modeling methodology, formalizations, andcorrespondence between smart contract semantics and DCR graphs enable future automated analysis and verification.

Design patterns formalization

Smart contract modeling

DCR graphs

Författare

Mojtaba Eshghie

Kungliga Tekniska Högskolan (KTH)

Wolfgang Ahrendt

Göteborgs universitet

Chalmers, Data- och informationsteknik, Formella metoder

Cyrille Artho

Kungliga Tekniska Högskolan (KTH)

Thomas Troels Hildebrandt

Köpenhamns universitet

Gerardo Schneider

Göteborgs universitet

Chalmers, Data- och informationsteknik, Data Science och AI

Software and Systems Modeling

1619-1366 (ISSN) 1619-1374 (eISSN)

Vol. In Press

Ämneskategorier (SSIF 2025)

Datavetenskap (datalogi)

Systemvetenskap, informationssystem och informatik

DOI

10.1007/s10270-026-01366-w

Mer information

Senast uppdaterat

2026-05-29