arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.03749cs.PL
收藏

Daml:一种用于安全自动化现实世界多方业务工作流的智能合约语言

Daml: A Smart Contract Language for Securely Automating Real-World Multi-Party Business Workflows

Alexander Bernauer, Sofia Faro, Rémy Hämmerle, Martin Huschenbett, Moritz Kiefer, Andreas Lochbihler, Jussi Mäki, Francesco Mazzoli, Simon Meier, Neil Mitchell, Ratko G. Veprek

摘要:

分布式账本技术,也称为企业区块链,有望大幅降低多方业务工作流程自动化的高成本。我们认为,用于编写这种分类账逻辑的程序设计语言应该满足三个必要条件:(1)提供概念来捕获管理现实世界业务工作流的法律规则。(2)包括指定访问和授权策略的简单方法。(3)支持将简单的工作流组合成复杂的工作流,即使简单的工作流已经部署。我们提出了基于Haskell的开源智能合约语言Daml,并进行了严格的评估。Daml通过提供新颖的原语来表示,访问和修改分类账上的数据来实现这些需求,这些原语模仿了当今法律系统的原语。健壮的访问和授权策略被指定为这些原语的一部分,Daml的内置授权规则支持委托,这是工作流可组合性的关键。这些属性使Daml非常适合跨多个异构方编排业务工作流。DAML合约运行在(1)由数据库支持的集中式账本上,(2)具有拜占庭容错共识的分布式部署上,以及(3)在传统区块链之上,通过原子提交协议作为第二层。

英文摘要:

Distributed ledger technologies, also known as blockchains for enterprises, promise to significantly reduce the high cost of automating multi-party business workflows. We argue that a programming language for writing such on-ledger logic should satisfy three desiderata: (1) Provide concepts to capture the legal rules that govern real-world business workflows. (2) Include simple means for specifying policies for access and authorization. (3) Support the composition of simple workflows into complex ones, even when the simple workflows have already been deployed. We present the open-source smart contract language Daml based on Haskell with strict evaluation. Daml achieves these desiderata by offering novel primitives for representing, accessing, and modifying data on the ledger, which are mimicking the primitives of today's legal systems. Robust access and authorization policies are specified as part of these primitives, and Daml's built-in authorization rules enable delegation, which is key for workflow composability. These properties make Daml well-suited for orchestrating business workflows across multiple, otherwise heterogeneous parties. Daml contracts run (1) on centralized ledgers backed by a database, (2) on distributed deployments with Byzantine fault tolerant consensus, and (3) on top of conventional blockchains, as a second layer via an atomic commit protocol.

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

↑