Multi-party complex protocol uplink mode analysis and modeling method based on model driving

Through the model-driven multi-party complex protocol on-chain mode analysis and modeling method, the trust issues and protocol text complexity in the execution of traditional multi-party service agreements are solved, and efficient on-chain mode analysis and modeling of multi-party service agreements are realized. It enhances the readability and maintainability of smart contracts and supports the application of the Ethereum Virtual Machine blockchain platform.

CN118764541AActive Publication Date: 2024-10-11HARBIN INST OF TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410796780.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-11
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

The traditional multi-party service agreement execution method relies on centralized institutions, which has trust issues and privacy protection obstacles. The widespread use of smart contracts faces the challenges of lengthy and complex agreement texts and cross-domain cooperation, making it difficult to efficiently extract and develop the content of on-chain terms.

Method used

Adopt a model-driven multi-party complex protocol on-chain mode analysis and modeling method. By collecting and summarizing the agreement text, using a large language model to extract on-chain elements, we build a multi-party service agreement model that conforms to the model-driven architecture, and realize automatic inter-model integration. Conversion to support smart contract development.

Benefits of technology

It realizes efficient on-chain model analysis and modeling of multi-party service agreements, reduces communication barriers, enhances the readability and maintainability of smart contracts, and supports the application of the Ethereum Virtual Machine blockchain platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764541A_ABST
    Figure CN118764541A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-party complex protocol uplink mode analysis and modeling method based on model driving. The method comprises the following steps: step S1, collecting, summarizing and concluding uplink modes of block chain cases in a protocol; s2, extracting an uplink mode; s3, constructing a multi-party service protocol uplink model conforming to the model-driven architecture; and step S4, implementation of a visual tool. According to the method, when a system runs, block chain deployment requirements of a complex protocol text can be analyzed, uplink elements are extracted, then a protocol is modeled according to the uplink elements, the models meet the standard of a model-driven architecture, and finally automatic conversion without semantic loss between the models is realized. Therefore, developers of the smart contract can better understand business requirements and communication obstacles are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer service technology, and relates to a model-driven multi-party agreement on-chain mode analysis and modeling method, and specifically to a blockchain on-chain clause analysis and extraction, model construction and model conversion method for a multi-party service agreement. Background Art

[0002] With the rapid development of economic globalization and information technology, various service businesses have shown increasingly rich characteristics, involving more and more multi-party participation and multi-level cooperation, and the division of rights and obligations has become increasingly complex. As a binding and normative cooperation agreement, the multi-party service agreement bears the important responsibility of regulating the rights and obligations of all parties and ensuring the smooth progress of cooperation. For example, the service level agreement (SLA) guarantees that the service quality between the service provider and the customer reaches a certain level. The traditional centralized multi-party service agreement execution method is to supervise and execute the contract through an intermediary agency or a third-party trust agency. In this way, when all parties participate in the execution of the contract, the intermediary agency is responsible for ensuring that the execution of the contract complies with the agreement and resolving problems and disputes arising in the cooperation process. However, they cannot solve the most critical trust problem, because the files recording basic information may be maliciously tampered with, this centralized system structure is too dependent on the central agency, and there are obstacles to the privacy protection of the agreement.

[0003] With the advent of blockchain and smart contract technology, new solutions have emerged for the trust problem in multi-party service agreements. Blockchain enables these agreements to be executed in a distributed manner without the need to delegate trust to a centralized institution or mutual trust between the parties. Blockchain is a data structure that connects multiple blocks containing events that cannot be tampered with privately in chronological order. The blockchain network selects nodes that have the right to record and write block content through a consensus mechanism to ensure that only one node can write information to the longest legal chain of the blockchain at the same time. Smart contracts are an automated contract based on blockchain technology. It is a piece of code written in a programmatic way that is used to define and execute contract terms. Smart contracts enable reliable and automated transactions and cooperation without intermediaries. However, the widespread use of smart contracts faces new problems: the text of multi-party service agreements is long and complex, involving a lot of cross-field cooperation, and there are certain challenges in developing terms and contents suitable for chaining into smart contracts.

[0004] Based on the above research background, it can be found that an efficient method is needed to obtain the necessary content to be uploaded to the chain from the text of the multi-party service agreement, and express the content on the chain in a model-driven way so that developers can better understand business needs and reduce communication barriers. Summary of the invention

[0005] In order to solve the above problems existing in the prior art, the present invention provides a model-driven multi-party complex protocol on-chain mode analysis and modeling method for the problem of extracting and modeling the on-chain requirements of multi-party service agreements. This method can analyze the blockchain deployment requirements of complex protocol texts and extract on-chain elements when the system is running, and then model the protocol based on the on-chain elements. The model meets the standards of the model-driven architecture, and finally realizes automatic conversion between models without semantic loss, so that smart contract developers can better understand business needs and reduce communication barriers.

[0006] The objective of the present invention is achieved through the following technical solutions:

[0007] A model-driven multi-party complex protocol on-chain mode analysis and modeling method includes the following steps:

[0008] Step S1: Collect, summarize and generalize the blockchain cases in the protocol:

[0009] Step S11, obtaining a text dataset of multi-party service agreements, including text contracts from multiple fields;

[0010] Step S12: Summarize the text contract, find out the component structure that can be expressed by smart contract, and summarize it as the on-chain mode;

[0011] Step S13: Summarize the chain-up mode, which stipulates which clauses and contents in the multi-party service agreement can be converted into smart contracts and whose costs are controllable, and divide the chain-up mode into an activity mode and a constraint mode, where: the activity mode refers to a mode with complete behavior, which can be expressed as a process; the constraint mode refers to a mode of behavior execution conditions, usually to check whether a certain condition is met;

[0012] Step S2, chain mode extraction:

[0013] For the on-chain mode obtained in step S1, a large language model is used to extract the on-chain mode and related elements of the multi-party service agreement text. The specific steps are as follows:

[0014] Step S21, extracting rights and obligations from the agreement text based on characteristic words to obtain all clauses containing rights and obligations;

[0015] Step S22: Using a large language model, all clauses are divided into sentences and classified to obtain clauses that meet the chaining mode;

[0016] Step S23: Use a large language model to perform syntactic dependency analysis on the clauses that can be chained, including subject-verb-object component analysis and subject-subordinate clause analysis, to obtain the main components of the clauses that can be chained;

[0017] Step S3: Construct a multi-party service agreement on-chain model that complies with the model-driven architecture:

[0018] Step S31, defining the metamodels of the computing independent model (CIM), the platform independent model (PIM) and the platform dependent model (PSM) of the multi-party service protocol, and expressing the metamodel using a UML class diagram;

[0019] Step S32: construct CIM according to the content of the uplink element obtained in step S2, and express CIM using a Unified Modeling Language (UML) object diagram and a Business Process Modeling Notation (BPMN) flowchart;

[0020] Step S33: define the model conversion rules from CIM to PIM, and complete the automatic model conversion from CIM to PIM without losing the semantics of the chain;

[0021] Step S34: define the model conversion rules from PIM to PSM. PSM is expressed using smart contract code to achieve automatic conversion from PIM to PSM.

[0022] Step S4: Implementation of visualization tool:

[0023] Step S41, visualizing the chain mode extraction of the text protocol in step S2, and displaying the extracted results using the front-end page;

[0024] Step S42: Visualize the process of constructing the CIM in step S3, integrate the plantUML tool to construct the CIM model, and automatically visualize the converted PIM and PSM.

[0025] A model-driven multi-party complex protocol on-chain mode analysis and modeling system for implementing the above method includes an on-chain mode summary module, an on-chain analysis module, a model building module and a model automatic conversion module, wherein:

[0026] The chain mode summary module is responsible for summarizing the chain content in the commonly used protocol texts to form a unified chain mode;

[0027] The on-chain analysis module is responsible for extracting the on-chain elements in the on-chain clauses from the agreement text summarized by the on-chain model summary module, so as to assist in the construction of the on-chain model of the multi-party service agreement;

[0028] The model building module is responsible for building a multi-party service agreement on-chain model based on the output of the on-chain analysis module and based on the model-driven architecture;

[0029] The model automatic conversion module is responsible for the model conversion process between CIM and PIM, and between PIM and PSM without loss of uplink semantics.

[0030] Compared with the prior art, the present invention has the following advantages:

[0031] 1. This invention analyzes the complexity of multi-party service agreements based on their characteristics, and summarizes a set of efficient on-chain models based on real cases on the blockchain. By using a large language model to parse the agreement text, this invention can identify and extract the terms and conditions that are suitable for expression in the form of smart contracts on the blockchain.

[0032] 2. This invention constructs a model-driven architecture metamodel and modeling method for the on-chain content of multi-party service agreements. The metamodel combines the structural model and the process model, providing a more detailed and precise framework for the expression of smart contracts and multi-party service agreements, and enhancing the readability and maintainability of smart contracts.

[0033] 3. The present invention provides a method for converting between models based on a model-driven architecture, namely, automatic conversion from a computing-independent model to a platform-independent model and conversion from a platform-independent model to a platform-related model. The conversion process does not lose any semantics of the on-chain elements, and the converted model can be applied to a blockchain platform that supports the Ethereum virtual machine. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A flowchart of the model-driven multi-party complex protocol on-chain mode analysis and modeling method;

[0035] Figure 2 A meta-model for computationally independent models;

[0036] Figure 3 A metamodel for platform-independent models;

[0037] Figure 4 It is the meta-model for platform-related models;

[0038] Figure 5 It is a system component diagram;

[0039] Figure 6 The result of extracting authorization terms on-chain mode;

[0040] Figure 7 For the authorization clause CIM structure model example;

[0041] Figure 8 It is an example of CIM process model for authorization terms;

[0042] Fig. 9 It is an example of the PIM structure model for authorization clauses;

[0043] Fig.10 It is an example of the PIM process model for authorization terms;

[0044] Fig.11 For the authorization clause PSM case. DETAILED DESCRIPTION

[0045] The technical solution of the present invention is further described below in conjunction with the accompanying drawings, but is not limited thereto. Any modification or equivalent replacement of the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention should be included in the protection scope of the present invention.

[0046] The present invention provides a model-driven multi-party complex agreement chain mode analysis and modeling method, which defines the chain mode in the multi-party service agreement, that is, which terms and contents can be expressed in the form of smart contracts on the blockchain, and extracts the terms of the text agreement with the help of a large language model, and obtains the chainable elements through syntactic dependency analysis. Finally, the metamodel of the model-driven architecture of the multi-party service agreement is defined, and the CIM is constructed according to the extracted chainable elements, and the conversion between models is supported to achieve the purpose of extracting and expressing the chainable content in the multi-party service agreement, thereby meeting the chaining needs of the multi-party service agreement and the subsequent smart contract development. Figure 1 As shown, the specific steps include:

[0047] Step S1: Collect, summarize and generalize the on-chain model of blockchain cases in the protocol.

[0048] This step mainly focuses on the terms in the text agreement and the application scenarios of blockchain, and summarizes the common blockchain application modes in the text agreement, which are called on-chain modes, which stipulate which terms and contents in the multi-party service agreement can be converted into smart contracts and their costs are controllable. In order to obtain a convincing on-chain mode, 200 text contracts from various fields were analyzed through a large model, and the following types of on-chain modes were obtained: payment, message, ownership, time, contract attribute, traceability, access permission constraints, time constraints, contract status constraints, payment constraints, and notification constraints.

[0049] Step S2: extracting the chain mode.

[0050] This step requires the extraction of chain features from the input agreement text according to the specific chain mode in S1, that is, accurately identifying the key clauses that meet the chain mode from the agreement text. Then, use a large language model to perform in-depth syntactic dependency analysis on these clauses to obtain the dependency relationship between sentence components in the clauses. Subsequently, based on the dependency relationship between the components in the sentence, key sentence components such as subject, object, and predicate are further extracted. Finally, the grammatical structure and semantic information of these clauses are clearly displayed for subsequent modeling. The chain mode extraction results are shown in Figure 1. Figure 6As shown, the results demonstrate the main sentence structures of authorization clauses, which can be used for the subsequent construction of CIM.

[0051] Step S3: Build a multi-party service agreement on-chain model that complies with the model-driven architecture.

[0052] This step is mainly based on the grammatical structure and semantic information of the chainable clauses obtained in step S2. According to the model-driven standard, the meta-model of the multi-party service agreement computation-independent model (CIM), platform-independent model (PIM) and platform-related model (PSM) is constructed and the conversion method between models is defined.

[0053] The computation-independent model (CIM) consists of a process model and a structure model. Its metamodel is Figure 2 As shown. The process model describes the interaction process between participants and is expressed using a BPMN flowchart, including user tasks, contract tasks, workflows, and gateways. The structural model is composed of information extracted from the service agreement, including the identity and role of the participants, the terms of the agreement, data, constraints, etc. The structural model is expressed using a UML object diagram. The present invention makes a more detailed definition of data elements in the computationally independent model. Data is a key component in the on-chain model and can quantify the rights and obligations between multiple parties. The structural model and process model of the authorization clause CIM are shown in Figure 7 and Figure 8 shown.

[0054] The Platform Independent Model (PIM) is defined as the design model of the smart contract on the chain it corresponds to, and it is independent of the implementation details of the blockchain platform. Any blockchain platform can be compatible with this model. Its metamodel is as follows Figure 3 The platform-independent model is designed from the technical perspective of the smart contract itself. The metamodel contains the key elements required by the smart contract code, converting business-related information into technology-related information, such as Fig. 9 and Fig.10 The conversion process from the computation-independent model to the platform-independent model is based on rule mapping. The structural model generates the basic smart contract structure, and the process model generates the correct calling sequence or execution process of the smart contract, as well as the various functions that need to be included. The structural model and process model of the authorization terms PIM are shown in Figure 1. Fig. 9 and Fig.10 shown.

[0055] The platform-specific model (PSM) is expressed using the solidity smart contract code of the Ethereum platform, such as Fig.11 As shown in the figure, this decision stems from the wide recognition and application of the Solidity language in the Ethereum ecosystem, as well as its powerful smart contract development capabilities. Figure 4The metamodel of the platform-dependent model is shown in Figure 1. The transformation process from the platform-independent model to the platform-dependent model is completed based on the reusability matching of the uplink mode. According to different PIM elements and the semantic information of the PIM elements, they are matched to the uplink mode to obtain the PSM.

[0056] Step S4: Implementation of visualization tools.

[0057] This step is mainly to implement the system tools of step S2 and step S3, including the visualization and model building of the on-chain analysis process and the visualization of the automatic conversion process.

[0058] (1) Visualization of the chain analysis process: After inputting a text document, the system processes the document and returns to the user the processed chainable clause information, including the clause split structure information and chainable elements, and highlights the chainable clauses in the original text.

[0059] (2) Visualization of model construction and conversion: The integrated plantUML tool is used to build the CIM model, which will be presented to the user in real time. After completing the construction of the computationally independent model, the user can choose to automatically convert it, and the converted platform-independent model will be returned to the user in the form of an image.

[0060] It should be noted that the modules (or units) in the present invention are logical in nature. In specific implementation, multiple modules (or units) can be combined into one module (or unit), and one module (or unit) can also be divided into multiple modules (or units). The system module diagram is shown in FIG. Figure 5 As shown, it includes an uplink mode summary module, an uplink analysis module, a model building module and a model automatic conversion module, wherein:

[0061] The chain mode summary module is responsible for summarizing the chain content in the commonly used protocol texts to form a unified chain mode;

[0062] The on-chain analysis module is responsible for extracting the on-chain elements in the on-chain clauses from the agreement text summarized by the on-chain model summary module, so as to assist in the construction of the on-chain model of the multi-party service agreement;

[0063] The model building module is responsible for building a multi-party service agreement on-chain model based on the output of the on-chain analysis module and based on the model-driven architecture;

[0064] The model automatic conversion module is responsible for the model conversion process between CIM and PIM, and between PIM and PSM without loss of uplink semantics.

Claims

1. A model-driven multi-party complex protocol on-chain mode analysis and modeling method, Features The method comprises the following steps: Step S1: Collect, summarize and generalize the blockchain cases in the protocol: Step S11, obtaining a text dataset of multi-party service agreements, including text contracts from multiple fields; Step S12: Summarize the text contract, find out the component structure that can be expressed by smart contract, and summarize it as the on-chain mode; Step S13: Summarize the chaining modes, and divide the chaining modes into active modes and constraint modes, wherein: the active mode refers to a mode with complete behavior, and the constraint mode refers to a mode with behavior execution conditions; Step S2, chain mode extraction: For the chaining pattern obtained in step S1, a large language model is used to extract the chaining pattern and related elements of the multi-party service agreement text; Step S3: Construct a multi-party service agreement on-chain model that complies with the model-driven architecture: Step S31, defining the metamodel of the computing independent model CIM, the platform independent model PIM and the platform related model PSM of the multi-party service agreement, and expressing the metamodel using the unified modeling language UML class diagram; Step S32: construct CIM according to the content of the uplink element obtained in step S2, and express CIM using UML object diagram and business process modeling symbol BPMN flowchart; Step S33: define the model conversion rules from CIM to PIM, and complete the automatic model conversion from CIM to PIM without losing the semantics of the chain; Step S34: define the model conversion rules from PIM to PSM. PSM is expressed using smart contract code to achieve automatic conversion from PIM to PSM. Step S4: Implementation of visualization tool: Step S41, visualizing the chain mode extraction of the text protocol in step S2, and displaying the extracted results using the front-end page; Step S42: Visualize the process of constructing the CIM in step S3, integrate the plantUML tool to construct the CIM model, and automatically visualize the converted PIM and PSM.

2. According to claim 1, the model-driven multi-party complex protocol on-chain mode analysis and modeling method, Features In step S1, the on-chain mode includes the following types: payment type, message type, ownership type, time type, contract attribute type, traceability type, access permission constraint, time constraint, contract status constraint, payment constraint and notification constraint.

3. According to claim 1, the model-driven multi-party complex protocol on-chain mode analysis and modeling method, Features The specific steps of step S2 are as follows: Step S21, extracting rights and obligations from the agreement text based on characteristic words to obtain all clauses containing rights and obligations; Step S22: Using a large language model, all clauses are divided into sentences and classified to obtain clauses that meet the chaining mode; Step S23: Use a large language model to perform syntactic dependency analysis on the clauses that can be chained, including subject-verb-object component analysis and main-subject clause analysis, to obtain the main components of the clauses that can be chained.

4. The model-driven multi-party complex protocol on-chain mode analysis and modeling method according to claim 1, Features In step S3, the computation-independent model is composed of a process model and a structure model. The process model describes the interaction process between participants and is expressed using a BPMN flowchart, including user tasks, contract tasks, workflows, and gateways. The structural model consists of information extracted from the service agreement, including the identity and role of the parties, the terms of the agreement, data, and constraints. The platform-independent model is designed from the technical perspective of the smart contract itself. The metamodel contains the key elements required by the smart contract code, converting business-related information into technical-related information. The platform-related models are expressed using the solidity smart contract code of the Ethereum platform.

5. According to claim 4, the model-driven multi-party complex protocol chain mode analysis and modeling method, Features In step S33, the conversion process from CIM to PIM is a conversion based on rule mapping, the structural model generates the basic smart contract structure, and the process model generates the correct calling sequence or execution process of the smart contract.

6. The model-driven multi-party complex protocol on-chain mode analysis and modeling method according to claim 4, Features In step S34, the conversion process from PIM to PSM is completed based on the reusability matching of the uplink mode. According to different PIM elements and semantic information of the PIM elements, they are matched to the uplink mode to obtain PSM.

7. The model-driven multi-party complex protocol on-chain mode analysis and modeling method according to claim 1, Features The specific steps of step S41 are as follows: after inputting the text document, the system processes the document and returns the processed chainable clause information to the user, including the clause split structure information and chainable elements, and provides highlighting in the original text for the chainable clauses.

8. The model-driven multi-party complex protocol on-chain mode analysis and modeling method according to claim 1, Features The specific steps of step S42 are as follows: the plantUML tool is integrated to build the CIM model, and the CIM model will be presented to the user in real time. After the construction of the computationally independent model is completed, the user can choose to automatically convert it, and the converted platform-independent model will be returned to the user in the form of an image.

9. A model-driven multi-party complex protocol on-chain mode analysis and modeling system that implements the method described in any one of claims 1 to 8, Features The system includes an uplink mode summary module, an uplink analysis module, a model building module and a model automatic conversion module, wherein: The chain mode summary module is responsible for summarizing the chain content in the commonly used protocol texts to form a unified chain mode; The on-chain analysis module is responsible for extracting the on-chain elements in the on-chain clauses from the agreement text summarized by the on-chain model summary module, so as to assist in the construction of the on-chain model of the multi-party service agreement; The model building module is responsible for building a multi-party service agreement on-chain model based on the output of the on-chain analysis module and based on the model-driven architecture; The model automatic conversion module is responsible for the model conversion process between CIM and PIM, and between PIM and PSM without loss of uplink semantics.

Citation Information

Patent Citations

  • Event-driven smart contract platform design

    CN112200670A

  • Multi-party complex business agreement intelligent contract generation system and generation method thereof

    CN115878112A

  • Block chain integration system and method for supporting quick chaining of business application

    CN116489211A