A Smart Contract Generation Method Based on Blockchain Patterns and Model-driven Multi-party Service Agreements

Xinzhe Shen, Wenyu Li,Hanchuan Xu, Jiale Luo,Xiao Wang,Zhongjie Wang

crossref(2024)

引用 0|浏览2
暂无评分
摘要
Abstract A multi-party service agreement refers to a textual agreement formulated under the participation of multiple parties, aiming to regulate the rights and responsibilities among them to facilitate their joint participation in a certain service or project. Traditional methods of executing agreements relying on centralized institutions may have potential trust issues. With the development of blockchain and smart contract technology, deploying textual agreements onto the blockchain for decentralized execution provides a new direction for addressing trust issues. However, the high complexity of textual agreements and cross-domain communication barriers result in difficulties and long cycles in smart contract development. To address the challenges faced in the development of smart contracts based on multi-party service agreements, this paper proposes a rapid and secure method for building smart contracts. Firstly, large language model(LLM) is employed to assist in extracting clause information from multi-party service agreements, and modeling the elements that can be expressed on the blockchain. Secondly, following the model-driven architecture (MDA), a smart contract reuse library is maintained to generate smart contract code. The results show that this method can automatically analyze the agreement text for blockchain representation, assist in manual modeling, generate the computation independent model(CIM), automatically convert it into the platform independent model(PIM), and further generate smart contract code. Through detailed case studies and verification of the code generation process, this paper demonstrates the feasibility and effectiveness of the proposed method. The generated code, after passing security checks, can be successfully deployed and used, providing reliable technical support for the execution of textual agreements.
更多
查看译文
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要