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

preprint OA: closed CC-BY-4.0
📄 Open PDF View at publisher

Abstract

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.

My notes (saved in your browser only)

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2024) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00
unpaywall
last seen: 2026-05-22T02:00:06.705733+00:00
License: CC-BY-4.0