arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.04581cs.SEcs.CYcs.FL
收藏

使用 DCR 图刻画智能合约设计

Capturing Smart Contract Design with DCR Graphs

Mojtaba Eshghie, Wolfgang Ahrendt, Cyrille Artho, Thomas Troels Hildebrandt, Gerardo Schneider

AI总结:

针对主流智能合约语言缺乏显式角色、动作依赖和时间概念导致设计与分析困难的问题,提出利用 DCR 图作为形式化工具,显式且可视化地建模业务流程设计模式,从而促进正确可靠智能合约的开发与分析。

摘要:

智能合约管理区块链资产并体现业务流程。然而,Solidity 等主流智能合约编程语言缺乏角色、动作依赖和时间的显式概念。相反,这些概念被实现在程序代码中。这使得设计和分析智能合约变得非常困难。我们认为 DCR 图是智能合约的合适形式化工具,因为它们能显式且可视化地捕获上述特征。我们利用这种表达能力来表明,表示智能合约应用中底层业务流程的许多常见高层设计模式可以通过这种方式自然建模。应用这些模式表明,DCR 图通过提供清晰易懂的规范,促进了正确且可靠的智能合约的开发与分析。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑