Manufacturing service value network-oriented collaborative accounting capability verification method and system

By coloring the Petri network model and CPN tools to verify the value accounting process of smart contracts, the accuracy and efficiency of smart contract accounting process verification are solved, and efficient accounting process verification and effectiveness analysis are realized in the service value network.

CN119005922APending Publication Date: 2024-11-22INST OF SOFTWARE - CHINESE ACAD OF SCI
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310563225.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-18
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

It is difficult for the prior art to effectively verify the correctness and effectiveness of the accounting process of smart contracts in the service value network, especially in multi-party collaboration scenarios, and formal proof derivation is time-consuming and inaccurate.

Method used

The colored Petri network model is used to establish a simulation model for the value accounting process, and a smart contract is added on it. The accessibility, survival and boundary of the model are verified through CPN tools, and the user's income loss rate is calculated to verify the validity of the contract. .

Benefits of technology

It realizes efficient and accurate verification of value bookkeeping contracts, solves the problem of insufficient qualitative comparison in traditional methods, reduces the derivation time, and significantly reduces the user's income loss rate by introducing smart contracts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119005922A_ABST
    Figure CN119005922A_ABST
Patent Text Reader

Abstract

The invention discloses a manufacturing service value network-oriented collaborative bookkeeping capability verification method and system, and the method comprises the steps: S1, building a value bookkeeping process simulation model based on a coloring Petri network for a multi-party cooperation scene in a manufacturing service business; s2, an intelligent contract is added on the basis of the value bookkeeping process simulation model, and a value bookkeeping contract simulation model is established; s3, verifying the correctness of the value accounting contract simulation model; and S4, verifying the validity of the value accounting contract simulation model. According to the method, a value bookkeeping process simulation model is firstly established based on a colored Petri network under a manufacturing service multi-party cooperation scene, then a value bookkeeping contract simulation model is established, and finally the accessibility, survivability and bounded property of the model are verified, and the effectiveness of the model is analyzed. According to the method, the problem that the correctness of a traditional contract-based value bookkeeping process is difficult to verify is solved, the validity of the introduced intelligent contract is verified, and the problem that a traditional qualitative comparison method is not accurate enough is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart contracts, and in particular to a collaborative accounting capability verification method and system for a manufacturing service value network. Background Art

[0002] When designing smart contracts for service value networks, complex workflows are usually formed. Users in the service value network complete individual activities, and activities can be combined with each other to form a complete service. The accounting process for the service value network mainly includes: initiating financial vouchers, reviewing original vouchers, filling in accounting vouchers, generating detailed account content, and summarizing ledgers. The value accounting process based on smart contracts is more complicated. On the basis of the original accounting process, smart contracts are introduced to describe the flow of value. The process mainly includes: establishing an event book based on blockchain, generating and storing detailed accounts, reviewing detailed accounts and modifying detailed accounts, archiving event books, and value accounting based on smart contracts.

[0003] Simple logical analysis and reasoning often cannot identify problems and are not convincing, so a complete and reliable verification method is needed. Workflow modeling based on the colored Petri net model is a commonly used method. By establishing a model analysis of the processes and rules of the service value network, we can further study the laws involved. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides a collaborative accounting capability verification method and system for a manufacturing service value network.

[0005] A collaborative accounting capability verification method for a manufacturing service value network of the present invention comprises the following steps:

[0006] For the scenario of multi-party collaboration in manufacturing service business, a value accounting process simulation model is established based on colored Petri nets;

[0007] Add smart contracts to the value accounting process simulation model to establish a value accounting contract simulation model;

[0008] Verify the correctness of the value accounting contract simulation model;

[0009] Verify the validity of the value accounting contract simulation model.

[0010] Furthermore, the establishment of a value accounting process simulation model based on a colored Petri net includes: converting a basic value accounting process model into a colored Petri net model.

[0011] Furthermore, the establishment of the value accounting contract simulation model includes: adding a smart contract to the value accounting process; and using CPN tools to establish a colored Petri net model of the value accounting contract.

[0012] Furthermore, the verification of the correctness of the value accounting contract simulation model includes:

[0013] Verify the accessibility of the value accounting contract model based on colored Petri nets;

[0014] Verify the survivability of the value accounting contract model based on colored Petri nets;

[0015] Verify the boundedness of the value accounting contract model based on colored Petri nets;

[0016] Based on the verification of the reachability, survivability and boundedness of the value accounting contract model, the correctness of the value accounting contract model is verified.

[0017] Furthermore, the reachability means that all identifiers in the state space are interconnected, and the source identifier can reach all identifiers.

[0018] Furthermore, the survivability means that there are no dead transitions and active transitions in the state space, and the system deadlock will not occur during the process of transferring the identifier from the initial state to the final state; the boundedness means that the number of tokens that may appear under all identifiers in all libraries is limited.

[0019] Furthermore, the verification of the validity of the value accounting contract simulation model includes: verifying the validity of the value accounting contract simulation model after the introduction of the smart contract by calculating the user's profit loss rate.

[0020] The present invention also provides a collaborative accounting capability verification system for a manufacturing service value network, which includes:

[0021] The model building module is used to build a value accounting process simulation model based on the colored Petri net for the scenario of multi-party collaboration in the manufacturing service business, and to add the concept of smart contract to the value accounting process simulation model to build a value accounting contract simulation model;

[0022] Correctness verification module, used to verify the correctness of the value accounting contract simulation model;

[0023] The validity verification module is used to verify the validity of the value accounting contract simulation model.

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

[0025] 1. This paper uses colored Petri nets to establish a value accounting process model based on smart contracts. Compared with the traditional smart contract value process, it describes the accounting process from a more formal perspective. The correctness of the model is verified by state space analysis, solving the problem that the traditional contract-based value accounting process is difficult to verify the correctness.

[0026] 2. The present invention compares the model with the value accounting process model without the introduction of smart contracts, and verifies the effectiveness of introducing smart contracts. Compared with the traditional method, the present invention models and describes the two models by means of colored Petri nets, which more clearly shows the value accounting process model before and after the introduction of smart contracts, and quantitatively analyzes the two models, solving the problem that the traditional qualitative comparison method is not accurate enough, and also solving the problem of time-consuming derivation in formal proof. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 It is a flow chart of a collaborative accounting capability verification method for a manufacturing service value network according to the present invention;

[0028] Figure 2 The traditional service value network accounting process model framework of the present invention;

[0029] Figure 3 The value accounting process model based on colored Petri nets described in the present invention;

[0030] Figure 4 The value accounting contract simulation model based on smart contract described in the present invention;

[0031] Figure 5 It is the smart contract execution and value accounting process submodule in the value accounting process model based on colored Petri nets described in the present invention;

[0032] Figure 6 is the execution result of the reachable function in the embodiment of the present invention;

[0033] Figure 7 It is a schematic diagram of an intermediate state of simulation in an embodiment of the present invention;

[0034] Figure 8 This is a user loss rate trend diagram obtained by simulation in an embodiment of the present invention. DETAILED DESCRIPTION

[0035] The present invention is further described in detail below through specific implementations in conjunction with the accompanying drawings.

[0036] The present invention provides a capability verification method for a manufacturing service value accounting contract, which realizes modeling and verification of the value accounting contract by using colored Petri net technology, making the verification and simulation of the value accounting contract more efficient and accurate.

[0037] In order to accurately describe the content of the present invention, the present invention explains the following terms and meanings.

[0038] State: A state is a node in a Petri net that represents a state or resource in the system. A state is usually represented by a circle and can contain tokens to represent the quantity of the resource it represents. For example, a state can represent an inventory level, a buffer space, etc.

[0039] Color set: Color set is used to describe the type of token. CPN tools provides basic color sets (such as Boolean type, integer type, etc.) and complex color sets based on basic color sets (such as arrays, Cartesian products, etc.).

[0040] Value activities: In the service value network, value activities are the basic units of user execution and the basic units of service. In the manufacturing service business, value activities can be specific human activities, such as parts removal and installation, damaged parts status detection, parts transportation, parts repair, etc.

[0041] Event Book: The event book is the basic unit of the accounting process.

[0042] Value event: The content of a value event mainly includes: description information of the value event and the corresponding value activities. A value event is a relatively complete service system. Generally speaking, a value event may include multiple value activities. In the accounting process for the service value network, a value event uniquely corresponds to an event book. In the manufacturing service business, a value event can specifically be a collection of services provided by several people working together. For example, if the wear of the shield machine tool exceeds the threshold or is damaged, the equipment maintenance company staff must disassemble and replace the tool, and transport it to the manufacturing company for repair, remanufacturing or recycling.

[0043] In one embodiment, a collaborative accounting capability verification method for a manufacturing service value network of the present invention is as follows: Figure 1 As shown, the following steps are included:

[0044] Step S1: For the scenario of multi-party collaboration in manufacturing service business, a value accounting process simulation model is established based on the colored Petri net;

[0045] Step S2: Add smart contracts to the value accounting process simulation model in step S1 to establish a value accounting contract simulation model;

[0046] Step S3: Verify the correctness of the value accounting contract simulation model of step S2;

[0047] Step S4: Verify the validity of the value accounting contract simulation model of step S2.

[0048] In one embodiment, the above step S1: for the scenario of multi-party collaboration in the manufacturing service business, a value accounting contract simulation model is established based on the colored Petri net, specifically including:

[0049] Step S11: Figure 2 As shown, the basic value accounting process model before applying the smart contract method is modeled. In the embodiment of the present invention, this model mainly describes the content in transition, and the library stores the data generated by the transition.

[0050] Step S12: Figure 3 As shown, according to the basic value accounting process model obtained in step S11, the model is converted into a colored Petri net model, and attributes such as color sets, mapping functions and variables are added on the basis of the model framework. At the same time, design ideas such as branches and loops are used to simulate the data construction process. Compared with the basic net model, it is more in line with the system execution process and data flow and can be quantitatively analyzed.

[0051] In one embodiment, step S2: establishing a value accounting process Petri net model based on the smart contract, specifically includes:

[0052] Step S21: Model the value accounting process based on the smart contract, with transition represented by T and place represented by P. Figure 4 ,exist Figure 2 Based on the above, starting from the transition T (save subledger), the subledger token will be placed in the P(5) place after creation and enter the process of being stored in the blockchain. According to the operation process of the smart contract on the blockchain, after the endorsement operation, sorting operation, verification operation and submission operation, the contract execution is completed and the data is successfully saved in the blockchain. When all the subledgers are saved, the accounting process is carried out. First, the data needs to be checked. The data after T (check ledger) indicates that value accounting can be performed, that is, T (accountwith smart contract) is triggered. The value record generated by this and the user's balance (T (updatebalance)) are updated. When all the user's subledgers are accounted for, the process ends.

[0053] Step S22: Based on step S21, use CPN tools to build a colored Petri net model, where the part involving smart contracts is as follows Figure 5 As shown, this submodule is an incremental module of the value accounting process model based on colored Petri nets, which describes the workflow after adding smart contracts.

[0054] In one embodiment, step S3: verifying the correctness of the value accounting contract simulation model specifically includes:

[0055] Step S31: Use the dynamic simulation tool provided by CPN tools to verify the reachability of the model.

[0056] Reachability means that all the identifiers in the state space are interconnected, and the source identifier can reach all the identifiers, that is, starting from any identifier, the identifier can be reached. As shown in Table 1, this model has no source identifier and has a dead identifier. A dead identifier means that there is no identifier that can be reached from this identifier, which means termination. The results obtained by using the Reachable query function provided by the state space tool are as follows: Figure 6 This shows that there is a path from M_1 to M_28293 in the state space, indicating that the model is reachable.

[0057] Step S32: Use the dynamic simulation tool provided by CPN tools to verify the survivability of the model. The results in Table 1 indicate that there are no dead transitions and active transitions in the state space, indicating that there will be no system deadlock during the transition from the initial state to the final state, indicating that the model has survivability.

[0058] Step S33: Use the dynamic simulation tool provided by CPN tools to verify the boundedness of the model.

[0059] Table 2 shows the boundedness properties of the model, where Upper represents the upper bound of the number of tokens in a place, and Lower represents the lower bound of the number of tokens in a place, which is provided by the state space report of the model. It represents the upper and lower bounds of the number of tokens in each place in all reachable identifiers of a model. The content in the table represents the reachable identifiers of the model. The number of tokens that may appear in all identifiers of all places is finite, which proves the boundedness of the model.

[0060] Table 1. Source attributes and active attributes

[0061]

[0062] Table 2. Boundary attribute table

[0063]

[0064] Step S34: In summary, based on the state space analysis method, we can know the reachability, survivability and boundedness of the model. Through the formal analysis of these properties, the correctness of the value accounting process model based on smart contracts is verified.

[0065] In one embodiment, step S4: verifying the validity of the value accounting contract model of step S2 specifically includes:

[0066] Step S41: Use the simulator provided by CPN tools to display the flow of tokens and the triggering of transitions during the simulation process, so that you can understand the model operation process and possible problems in more detail, and further analyze and verify the effectiveness of the model. As the process executes, value events begin to be generated, which include 5 value activities. At this time, the value activities will be converted into detailed accounts and stored after being executed, that is, they will enter P (subledgers). When all subledger tokens reach P (subledgers), value accounting will begin. At this time, the status is as follows: Figure 7 shown.

[0067] Step S42: Calculate the user's profit loss rate to verify the effectiveness of the value accounting contract simulation model after the introduction of the smart contract.

[0068] At the beginning of the process, a value event token is stored in P(start), empty lists are stored in P(activities), P(valueactivities), and P(subledgers) to implement list storage, and P(end) stores the final profit value.

[0069] As the process is executed, value events begin to be generated, including 5 value activities. After the value activities are executed, they will be converted into detailed accounts and stored, that is, they will enter P (subledgers). When all subledger tokens reach P (subledgers), value accounting will begin. At this time, the status is as follows: Figure 7 The values ​​in the initial state M0 and the final state M are shown in Table 3. Table 4 is a description of the relevant symbols for validity analysis.

[0070] Table 3. Place status table

[0071] Place Name Color Sets Initial state token value Final state token value start EVENT 1`″event″ empty P0 1NT empty 1`0 Activities ACTIVITIES [] empty value activities STRING [] [] subledgers N [] empty counter 1NT 1`0 2 end INCOME 1`(″DemoUser″,0) 1`(″DemoUser″,2019)

[0072] Table 4. Explanation of relevant symbols for validity analysis

[0073] variable illustrate N Number of detailed accounts <![CDATA[P l ]]> The theoretical loss rate of detailed accounts is related to the preset probability function <![CDATA[P s ]]> The loss rate of detailed accounts calculated during the simulation process, i.e., the failure rate L Profit loss rate I Basic income value accounts for the weight of user income

[0074] Since subledger may fail, the failure rate P set in this simulation can be calculated by P(counter). l =5%, the final state is M(counter)=2, N=15.

[0075]

[0076] According to the above, the simulation failure rate P can be calculated s =7.5%, which is in line with the expected failure rate.

[0077]

[0078] Where M(end) represents the setting failure rate P s Previous user benefits, M′(end) represents the set failure rate P s The subsequent user benefits and user benefit loss rate L are calculated using formula (2). Under this benefit loss rate, the user's final benefit value is 2019. Since the lost detailed account data cannot be calculated by the incentive mechanism, the mean value of the incentive benefit can be taken as μ, which can be deduced:

[0079]

[0080] Where event ledger represents event ledger. By applying the simulation data formula (2) and formula (3), we can calculate L = 12.48%. It can be seen that even if the failure rate is low, the loss of user benefits will be greater than the data loss rate.

[0081] After a large number of simulation experiments and data statistics, the trend of user loss rate was obtained, such as Figure 8 As shown in the figure, as the loss rate increases, the user income loss rate shows a nonlinear growth. The growth rate depends on the structure of user income, that is, the ratio of basic income value to total income I. The basic income value is the fixed income of the user's completed activities, and the incentive income value is the commission income of the user's completed tasks. At the same time, according to Figure 8 It can be seen that as I increases, the user revenue loss rate increases more rapidly with the increase of the failure rate. The experimental results under different I conditions show that the more users rely on commission revenue, the higher the data reliability requirements of the accounting process.

[0082] For the value accounting process of the service value network, the possibility of data loss and tampering will have a direct impact on the interests of users. After the introduction of smart contracts, the value generation process is executed in the form of smart contracts. Compared with the original process, in the process of generating detailed accounts, data is not only stored in the local system, but also saved on the blockchain by calling smart contracts. For a commercial blockchain network, the possibility of data loss is extremely small because of the high redundancy.

[0083] Step S43: In summary, from the perspective of the entire accounting process, after the introduction of smart contracts, the user profit loss rate due to data loss or unreliable process will be greatly reduced, thus verifying that the introduction of smart contracts in the accounting process of the service value network is effective.

[0084] Figure 2-5 The Chinese meanings of the English words in are shown in Table 5.

[0085] Table 5 Chinese-English comparison table

[0086]

[0087] All operations in the value accounting process are represented by transitions, and two transitions need to be connected by places P. P0, P1, P3, P5, P6, P7, and P8 places are used to transfer data between two transitions, and the data type is defined according to the needs of the transition.

[0088] The characteristics and advantages of the method described in the present invention are: (1) for the value accounting contract simulation model, by verifying the accessibility, survivability and boundedness of the model, the correctness of the value accounting contract model is verified; (2) by calculating the user's profit loss rate, the effectiveness of the value accounting contract simulation model after the introduction of the smart contract is verified. The method for verifying the correctness and effectiveness of the simulation model of the value accounting contract involved in the present invention can be widely used in manufacturing service business. For example, in the manufacturing service business, the present invention can be used in the scenario where the wear of the shield machine tool exceeds the threshold or is damaged, and the equipment maintenance company staff needs to disassemble and replace the tool, and transport it to the manufacturing company for repair, remanufacturing or recycling. The tool disassembly and installation, logistics transportation, and tool maintenance parties obtain corresponding benefits through collaboration, thereby solving the specific technical problem of ensuring the correctness of the enterprise's multi-party profit data and low loss rate.

[0089] Another embodiment of the present invention provides a collaborative accounting capability verification system for a manufacturing service value network, which includes:

[0090] The model building module is used to build a value accounting process simulation model based on the colored Petri net for the scenario of multi-party collaboration in the manufacturing service business, and to add the concept of smart contract to the value accounting process simulation model to build a value accounting contract simulation model;

[0091] Correctness verification module, used to verify the correctness of the value accounting contract simulation model;

[0092] The validity verification module is used to verify the validity of the value accounting contract simulation model.

[0093] The specific implementation process of each module refers to the above description of the method of the present invention.

[0094] Based on the same inventive concept, another embodiment of the present invention provides a computer device (computer, server, smart phone, etc.), which includes a memory and a processor, the memory stores a computer program, the computer program is configured to be executed by the processor, and the computer program includes instructions for executing each step in the method of the present invention.

[0095] Based on the same inventive concept, another embodiment of the present invention provides a computer-readable storage medium (such as ROM / RAM, disk, CD), which stores a computer program. When the computer program is executed by a computer, it implements the various steps of the method of the present invention.

[0096] The parts not described in detail in the present invention belong to the well-known technology in the art.

[0097] The above descriptions are only some specific implementation methods of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by any person familiar with the art within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.

Claims

1. A collaborative accounting capability verification method for a manufacturing service value network, characterized in that: The following steps are involved: For the scenario of multi-party collaboration in manufacturing service business, a value accounting process simulation model is established based on colored Petri nets; Add smart contracts to the value accounting process simulation model to establish a value accounting contract simulation model; Verify the correctness of the value accounting contract simulation model; Verify the validity of the value accounting contract simulation model.

2. The method according to claim 1, characterized in that The method of establishing a value accounting process simulation model based on a colored Petri net includes: converting a basic value accounting process model into a colored Petri net model.

3. The method according to claim 1, characterized in that The establishment of the value accounting contract simulation model includes: adding a smart contract to the value accounting process; and using CPN tools to establish a colored Petri net model of the value accounting contract.

4. The method according to claim 1, characterized in that: The verification of the correctness of the value accounting contract simulation model includes: Verify the accessibility of the value accounting contract model based on colored Petri nets; Verify the survivability of the value accounting contract model based on colored Petri nets; Verify the boundedness of the value accounting contract model based on colored Petri nets; Based on the verification of the reachability, survivability and boundedness of the value accounting contract model, the correctness of the value accounting contract model is verified.

5. The method according to claim 4, characterized in that The reachability means that all identifiers in the state space are interconnected, and the source identifier can reach all identifiers.

6. The method according to claim 4, characterized in that The survivability means that there are no dead transitions and active transitions in the state space, and the system deadlock will not occur during the transition of the identifier from the initial state to the final state; the boundedness means that the number of tokens that may appear under all identifiers in all libraries is limited.

7. The method according to claim 1, characterized in that The verification of the validity of the value accounting contract simulation model includes: verifying the validity of the value accounting contract simulation model after the introduction of the smart contract by calculating the user's profit loss rate.

8. A collaborative accounting capability verification system for manufacturing service value network, characterized in that: include: The model building module is used to build a value accounting process simulation model based on the colored Petri net for the scenario of multi-party collaboration in the manufacturing service business, and to add the concept of smart contract to the value accounting process simulation model to build a value accounting contract simulation model; Correctness verification module, used to verify the correctness of the value accounting contract simulation model; The validity verification module is used to verify the validity of the value accounting contract simulation model.

9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, the computer program is configured to be executed by the processor, and the computer program comprises instructions for executing the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Multi-agent cooperative control method and system based on executable ability contract and causal responsibility account book, and program product

    CN122414242A

  • A multi-agent cooperative control method, system, and program product based on executable capability contracts and causal liability ledgers.

    CN122414242B