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

用于组织间流程协作的智能合约生成

Smart Contract Generation for Inter-Organizational Process Collaboration

Tianhong Xiong, Shangqing Feng, Maolin Pan, Yang Yu

摘要:

目前,跨组织过程协作(IOPC)已被广泛用于支持业务过程执行的分布式系统的设计和开发。基于区块链的IOPC可以在参与者之间建立可信的数据共享,越来越受到关注。这种研究的核心是将图形模型(例如,BPMN)转换成可以在区块链环境中执行的称为智能合约的程序代码。在这种情况下,适当的智能合约在正确实施基于区块链的IOPC中起着至关重要的作用。实际上,图形模型的质量影响着智能合约的生成。有问题的模型(例如,死锁)将导致不正确的合同(导致意外行为)。为了避免这种不期望的实现,本文探索通过使用已验证的形式化模型作为输入而不是图形模型来生成智能合约。具体来说,我们介绍了一个支持智能合约自动生成的原型框架,提供了从建模、验证、翻译到实现的端到端解决方案。该框架的核心之一是从消息交互的角度为BPMN协作模型提供一个基于CSP#的形式化描述。这种形式化为图形模型提供了精确的执行语义和模型验证,并为智能合约生成提供了经过验证的形式化模型。另一个新颖之处在于,它引入了一种基于语法树的翻译算法,将形式模型直接映射到智能合约中。所需的形式、核查和翻译技术对用户是透明的,不会造成额外负担。最后通过一组实验验证了该框架的有效性。

英文摘要:

Currently, inter-organizational process collaboration (IOPC) has been widely used in the design and development of distributed systems that support business process execution. Blockchain-based IOPC can establish trusted data sharing among participants, attracting more and more attention. The core of such study is to translate the graphical model (e.g., BPMN) into program code called smart contract that can be executed in the blockchain environment. In this context, a proper smart contract plays a vital role in the correct implementation of block-chain-based IOPC. In fact, the quality of graphical model affects the smart con-tract generation. Problematic models (e.g., deadlock) will result in incorrect contracts (causing unexpected behaviours). To avoid this undesired implementation, this paper explores to generate smart contracts by using the verified formal model as input instead of graphical model. Specifically, we introduce a prototype framework that supports the automatic generation of smart contracts, providing an end-to-end solution from modeling, verification, translation to implementation. One of the cores of this framework is to provide a CSP#-based formalization for the BPMN collaboration model from the perspective of message interaction. This formalization provides precise execution semantics and model verification for graphical models, and a verified formal model for smart contract generation. Another novelty is that it introduces a syntax tree-based translation algorithm to directly map the formal model into a smart contract. The required formalism, verification and translation techniques are transparent to users without imposing additional burdens. Finally, a set of experiments shows the effectiveness of the framework.

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

↑