Collaborative process execution system based on blockchain and its data access control method
By combining Ethereum smart contracts and IPFS on the blockchain, and adopting the access control model of tasks and attributes, the problem of lack of trust and data sharing security in the inter-organizational collaboration process is solved, and dynamic and flexible data access control is achieved. Enhanced security and traceability of data sharing.
Patent Information
- Application Number
- CN202111590932.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-23
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-12-23
AI Technical Summary
In the execution of inter-organizational collaboration processes, the lack of trust and secure data sharing mechanisms makes it difficult to achieve decentralized collaborative business process execution and data access control. Especially when it comes to the exchange of resources involving sensitive information, it is difficult to reach a consensus among organizations.
Designed a collaborative process execution system based on blockchain, combined with Ethereum smart contracts and InterPlanetary File System (IPFS), using a task- and attribute-based access control model to achieve dynamic, flexible, fine-grained and traceable data access Control, verify resource access permissions through smart contracts, and store files off the chain and store hash values on the chain to reduce blockchain storage pressure.
It achieves dynamic, flexible and fine-grained data access control to support collaborative business processes on the blockchain, improves the security and traceability of data sharing, reduces blockchain storage pressure, and enhances trust between organizations.
Smart Images

Figure CN114239035B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of blockchain technology applications, and in particular relates to a blockchain-based collaborative process execution system and a data access control method thereof. Background Art
[0002] In the context of economic globalization, organizations need to cooperate better to meet market demand. At present, the strategy commonly adopted by organizations is to join the collaborative process execution process, that is, to establish a collaborative and resource-sharing partnership between organizations to achieve common goals. However, the lack of trust between organizations is the biggest obstacle to achieving process collaboration between different organizations. In fact, the execution process of most collaborative processes relies heavily on third parties to deal with conflicts arising from the interaction between organizations. In addition, the execution of collaborative processes involves extensive information and resource exchanges, and the corresponding data files may contain sensitive information of organizational users. If there is no secure data sharing and access control mechanism, organizations may be unwilling to share their data. In an actual collaborative environment, multiple organizations participating in the process agree to select a central manager to coordinate the execution of collaborative processes and provide shared storage of process data and secure access control mechanisms for different organizations. However, the lack of trust makes it difficult for different organizations to reach a consensus on the selection of the central manager. In this application scenario, how to provide decentralized collaborative business process execution and data access control solutions for different organizations has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] In view of the shortcomings of the prior art, the present invention proposes a collaborative process execution system based on blockchain, which can store the collaborative process model in the Ethereum smart contract and support the execution process of the collaborative process on Ethereum. In addition, the system provides data sharing storage for the collaborative process execution process by introducing the Inter Planetary File System (IPFS), which can effectively alleviate the pressure of blockchain to store a large number of data files, and designs an access control method based on the above system. The method combines the task-based and attribute-based access control model with the smart contract technology, and can realize dynamic, flexible, fine-grained and traceable data access control support on the blockchain.
[0004] In order to achieve the above-mentioned invention object, the technical solution specifically adopted by the present invention is as follows:
[0005] In a first aspect, the present invention provides a blockchain-based collaborative process execution system, which includes four parts: a front-end system, a back-end system, an interplanetary file system, and an Ethereum blockchain;
[0006] The front-end system includes a modeler and an execution interface; the modeler is used to support collaborative process modeling, and the execution interface is used to manage the upload and download of data files during the execution of the collaborative process;
[0007] The back-end system includes off-chain components, Web3 interfaces, and the InterPlanetary File System proxy layer. The off-chain components are used to process data passed in by the front-end system. The Web3 interface is a collection library that provides functional interfaces including retrieving user accounts, sending transactions, and interacting with smart contracts. The InterPlanetary File System proxy layer is used to intercept user requests for the InterPlanetary File System in the back-end system and forward the request to the smart contract through the Web3 interface for visitor permission verification. At the same time, it decides whether to send a request to upload or download files to the InterPlanetary File System based on the verification results monitored.
[0008] The Interplanetary File System is used to store shared data files generated during the execution of cross-organizational processes;
[0009] The Ethereum blockchain includes a data storage module, an access control module and a process execution engine; the data storage module includes a file management contract and an attribute management contract, the file management contract is used to store the hash value of the file in the Interstellar File System, and the attribute management contract is used to manage user and organization related information; the access control module includes an access control contract, which is used to verify whether the visitor has the operation authority for the accessed resource when the user accesses the corresponding resource; the process execution engine includes a process contract related to the execution of the collaborative process, which is used to support the execution process of the process instance on the chain.
[0010] As a preferred embodiment of the above-mentioned first aspect, the attribute management contract is an intelligent contract that stores a process organization library, a user library and an attribute library; in the attribute management contract, the contract creator will import the process organization contained in the collaborative business process and set its organization administrator, and the organization administrator can manage the attribute set contained in the organization and the shared resource file related information in the corresponding organization.
[0011] As a preferred embodiment of the above-mentioned first aspect, the file management contract is a smart contract for managing shared data file information, which is composed of its contract creator and data file library. It can manage shared data files generated during the execution of collaborative business processes on the blockchain, and store the hash value of the data file on the chain. When the resource accessor has access rights to the data file, the data file can be obtained through the InterPlanetary File System proxy layer and the hash value of the data file.
[0012] As a preferred embodiment of the above-mentioned first aspect, the process contract is a smart contract for storing a process model and a process instance library, wherein the process model includes the control process logic of the model execution, and the process instance library includes the execution status and execution process of multiple process instances.
[0013] As a preferred embodiment of the above-mentioned first aspect, the access control contract is a smart contract composed of an access request library and an access policy library, which contains contract functions for matching resource access requests and resource access control policies. It can evaluate the access rights of resource accessors based on the resource access requests uploaded by the InterPlanetary File System proxy layer, match relevant resource access control policies and obtain the final resource access request results.
[0014] In a second aspect, the present invention provides a data access control method for the collaborative process execution system according to any one of the solutions in the first aspect, the method specifically comprising the following steps:
[0015] S1. Deploy the smart contracts involved in the Ethereum blockchain to the Ethereum private chain through the execution interface; the smart contracts include attribute management contracts, access control contracts, file management contracts and process contracts;
[0016] S2, importing data including the process model constructed by the modeler, the attributes of the organizations and users participating in the collaborative process execution, the process files involved in the collaborative process execution and their access control policies into the smart contract deployed in S1;
[0017] S3. Creating a collaborative process instance according to the process model stored in the smart contract; when the execution of the collaborative process instance does not involve the operation of the shared data file, the process executors participating in the collaborative process execution can execute the collaborative process by calling the contract function of the process contract on the process execution engine;
[0018] S4. When the execution of a collaborative process instance involves the operation of a shared data file, the process executor will send a resource access request to the InterPlanetary File System Proxy Layer. The InterPlanetary File System Proxy Layer will call the function interface of the access control contract in the access control module and forward the request to the access control contract. The access control contract will retrieve the corresponding access control policy in the contract and evaluate the resource accessor's access rights to the file based on the data file involved in the resource access request, the attributes of the resource accessor, the status of the collaborative process instance, and the operation on the shared data file. After the evaluation is completed, an event will be generated to record the access result of the resource access request.
[0019] S5. The InterPlanetary File System proxy layer monitors the events generated in the access control smart contract, obtains the access results of the corresponding resource access requests, and allows or denies the process executor's access to the InterPlanetary File System based on the access results.
[0020] As a preferred embodiment of the above-mentioned second aspect, in the Ethereum blockchain, each smart contract contains the contract address global variables of the remaining smart contracts. After the contract deployment is completed, the contract addresses of the remaining smart contracts need to be imported for each smart contract; and the file management contract also stores an account address saved in the off-chain Interstellar File System proxy layer. Only this account address can call the contract function of the file management contract. All data files uploaded to the off-chain Interstellar File System will be encrypted using the account address to ensure that it is impossible to bypass the Interstellar File System proxy layer and directly interact with the Interstellar File System.
[0021] As a preferred embodiment of the above-mentioned second aspect, in S4, the method for evaluating the resource access user's access to the file is as follows: after completing the retrieval of the access control policy, the access control contract traverses each access control policy retrieved, parses the policy rules contained therein, and sends requests to the attribute management contract and the process contract respectively according to the user attribute policy rules and the task attribute policy rules in the policy rules, queries the relevant user attribute values and task attribute values, and matches the user attribute values and the task attribute values with the user attribute policy rules and the task attribute policy rules respectively. When the user attribute value satisfies the conditional expression of the user attribute policy rule and the task attribute value satisfies the conditional expression of the task attribute policy rule, it is deemed that the current access control policy matches successfully; if at least one access control policy can be matched, it means that the resource access user has access rights to the resource file, otherwise it is deemed that the resource access user does not have access rights to the resource file.
[0022] Compared with the prior art, the present invention has the following beneficial effects:
[0023] The present invention proposes a collaborative process execution system based on blockchain, which internally includes a business process execution engine that supports the execution of collaborative business processes, and can support the execution process of collaborative business processes on the blockchain. In order to support the data sharing requirements in the execution process of collaborative business processes, the system introduces the InterPlanetary File System to support the interaction and sharing of large data files. The basic idea is to reduce the pressure of blockchain to store large files by storing files off-chain and storing file hash values on-chain. In addition, the present invention also includes a data access control method, which can provide dynamic, flexible, fine-grained and traceable data access control support for collaborative business processes based on blockchain by storing resource access control rules and evaluation processes in blockchain smart contracts. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 This is the overall architecture diagram of the blockchain-based collaborative process execution framework.
[0025] Figure 2 Diagram of the on-chain contract structure for the blockchain-based collaborative process execution framework.
[0026] Figure 3 Execute concept diagram for business process execution engine.
[0027] Figure 4 Process diagram for access control policy implementation.
[0028] Figure 5 Using step diagrams for blockchain-based collaborative process execution framework. DETAILED DESCRIPTION
[0029] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below. The technical features in each embodiment of the present invention can be combined accordingly without conflicting with each other.
[0030] like Figure 1 As shown, the blockchain-based collaborative process execution system proposed in the present invention is divided into four parts: a front-end system, a back-end system, an interplanetary file system, and an Ethereum blockchain.
[0031] The front-end system includes relevant components that provide a graphical interface to users, including a modeler for supporting business process modeling and an execution interface that provides a visual process. The execution interface is used to manage the upload and download of data files during the execution of the collaborative process.
[0032] The back-end system includes off-chain components, Web3 interfaces and an InterPlanetary File System proxy layer (hereinafter referred to as the IPFS proxy layer), wherein the off-chain components include a translator for parsing orchestration graph files, a deployer for deploying data information in the orchestration graph model, and an event listener for monitoring process execution and version update processes; the Web3 interface is a collection library that connects to the local Ethereum node via HTTP and can provide interfaces for functions such as retrieving user accounts, sending transactions, and interacting with smart contracts. The interactions with smart contracts in the collaborative process execution system of the present invention are all called through the Web3 interface; the IPFS proxy layer is used to intercept user requests for the InterPlanetary File System in the back-end system. When a user attempts to upload or download a file stored in the InterPlanetary File System, the IPFS proxy layer will send a request to the access control smart contract through the Web3 interface. Only when the result returned by the access control smart contract is True will the user be allowed to perform the corresponding operation.
[0033] IPFS is used to store shared data files generated during the execution of cross-organizational business processes. The system itself is a decentralized content-addressed file system. After a file is uploaded to IPFS, a hash value will be generated. Any user who obtains the hash value can query the corresponding file in IPFS. IPFS is widely used in blockchain data storage due to its decentralized nature, that is, it relieves the pressure of Ethereum data storage by storing file content off-chain and file hash values on-chain.
[0034] The Ethereum blockchain includes a data storage module, an access control module, and a business process execution engine. The data storage module includes a file management smart contract for storing the hash value of the file in IPFS, and an attribute management contract for managing user and organization related information; the access control module includes an access control contract for verifying whether the visitor has the operation authority for the accessed resource when the user accesses the corresponding resource; the business process execution engine includes a process contract related to the execution of collaborative business processes, which is used to support the execution of process instances on the chain.
[0035] The contract structure on the Ethereum blockchain is as follows: Figure 2 As shown, it mainly involves attribute management contract, file management contract, process contract and access control contract.
[0036] The attribute management contract is a smart contract that stores the process organization library, user library, and attribute library. In the attribute management contract, the contract creator will import the process organization contained in the collaborative business process and set its organization administrator. The organization administrator can manage the attribute collection contained in the organization and the related information of the shared resource file in the corresponding organization.
[0037] The file management contract is a smart contract used to manage shared data file information. The contract consists of its contract creator and data file library. It can manage shared data files generated during the execution of collaborative business processes on the blockchain. The contract stores the hash value of the corresponding data file on the chain. When the resource accessor has access to the shared data file, he can obtain the file through the IPFS proxy layer and the data file hash value.
[0038] The process contract is a smart contract used to store process models and process instance libraries. The process model contains the control process logic of the model execution, and the process instance library contains the execution status and execution process of multiple process instances. The process contract can be regarded as a business process execution engine. The execution concept diagram of the engine is as follows: Figure 3As shown in the figure, first you need to deploy a general smart contract. After the contract is deployed, the process model is parsed into a model data file that conforms to the general data structure format through the translator, and the model is imported into the general smart contract by sending a transaction through the deployer. Then the process creator calls the contract function to create a process instance. The entire process is concentrated in a single smart contract, and there is no need to deploy additional instance smart contracts. The contract deployment cost of the blockchain is much greater than the contract function call cost. Integrating multiple process instances in a single smart contract instead of generating a smart contract for each process instance can effectively reduce the instantiation cost overhead.
[0039] The access control contract is a smart contract composed of an access request library and an access policy library. The contract contains contract functions for matching resource access requests and resource access control policies. It can evaluate resource access requests uploaded by the IPFS proxy layer, match relevant resource access control policies and obtain the final resource access request results.
[0040] Based on the proposed blockchain-based collaborative process execution system, this paper further designs a new data access control method based on the system. The method is based on the task and attribute access control model and smart contract technology. The execution process is as follows: Figure 4 As shown, the execution starts with the resource requester sending a resource request to the policy execution point, and the policy execution point initiates a request for verification of permissions to the policy decision point. The policy decision point evaluates whether the resource accessor has permissions based on the policy rules (attribute condition expression) obtained from the policy management point and the user attributes and task attributes obtained from the policy information point, and then returns the decision result to the policy execution point. When the decision result is denied, the policy execution point denies the resource requester's resource request, and when the decision result is allowed, the policy execution point allows the resource requester to access the resource. For the framework proposed in the present invention, the IPFS proxy layer can be regarded as a policy execution point, the access control smart contract can be regarded as a policy management point and a policy decision point, the attribute management smart contract and the process contract can be regarded as a policy information point, and the actual content of the resource file accessed by the user is stored in the IPFS under the chain, and its corresponding index address and file verification code and other related information are stored in the file management smart contract. By adopting this scheme, the framework of the present invention can support dynamic, flexible and fine-grained data access control. In addition, compared with the traditional solution that introduces a centralized authorization point to handle permission verification and access rights, this solution is more secure and the decision results of resource access requests are stored in the block in the form of tamper-proof blockchain transactions. Any organization can trace the execution results of resource access requests.
[0041] like Figure 5 As shown, the data access control method of the collaborative process execution system based on blockchain specifically includes the following steps:
[0042] Step 1: The framework publisher builds an Ethereum private chain, and deploys various smart contracts (including property management contracts, access control contracts, file management contracts, and process contracts) involved in the Ethereum blockchain of the aforementioned collaborative process execution system of the present invention to the Ethereum private chain in sequence through the execution interface. In order to facilitate mutual contract function calls between contracts, each smart contract contains the contract address global variables of the remaining smart contracts. After completing the contract deployment, it is necessary to import the contract addresses of the remaining smart contracts for each smart contract. It is worth noting that the file management contract additionally stores an account address stored in the off-chain IPFS proxy layer. Only this account address can call the contract function of the file management contract. All data files uploaded to the off-chain IPFS will be encrypted using the account address, which can ensure that process participants cannot bypass the IPFS proxy layer component to interact directly with IPFS.
[0043] Step 2: After completing the contract deployment, the framework manager needs to import the process model (obtained through the modeler), the organization and user attributes participating in the collaborative process execution, the process files involved in the collaborative process execution and their access control policies and other related data into the deployed smart contract. The specific import process can be referred to as follows:
[0044] The framework manager can use the translator in the off-chain component to parse the collaborative business process model file. After the parsing is completed, the collaborative business process model data file in JSON format will be obtained. Then, the collaborative business process model data file will be imported into the process contract by using the off-chain deployer. After the model data is imported, the control flow relationship of the collaborative business process can be viewed by calling the process contract function. The project manager then registers the organizations and their managers involved in the collaborative business process into the attribute management contract. After the organization and its managers are registered into the attribute management contract, the attributes and corresponding users managed within the organization can be registered into the attribute management contract by calling the attribute management contract function and assigning specific values of the attributes to these users. In addition, the organization manager also needs to register the attributes of the resource files provided to other organizations into the attribute management contract, and publish the resource access control policy corresponding to the resource file into the access control contract.
[0045] Step 3: After completing the deployment of the smart contract and the import of the data related to the collaborative business process, the process manager can create a process instance by calling the contract function of the process contract on the process execution engine. The execution logic of the process instance is determined by the collaborative business process model stored in the process contract. In addition, the collaborative process execution system proposed by the present invention can adopt a design method of integrating multiple process instances in a single smart contract, which can effectively reduce the consumption of executing collaborative business processes on Ethereum and improve system throughput. When the execution process of the collaborative business process does not involve access operations such as uploading and downloading shared resource files, the process executor only needs to call the corresponding contract function in the process contract to complete the execution of the process instance. Otherwise, if the execution of the collaborative process instance involves access operations to shared resource files, the execution of the collaborative business process needs to proceed to step 4.
[0046] Step 4: When the execution process of the collaborative process instance involves data sharing and access control of resource files, the process executor will send a resource access request to the IPFS proxy layer. The IPFS proxy layer accepts the access request sent by the visitor, encapsulates the Ethereum account address of the process executor, the name of the access resource, the process instance to which the access resource belongs, and the operation performed by the visitor on the resource as a resource access request, and calls the contract function interface of the access control contract in the access control module to register it in the access control contract. The access control contract retrieves the corresponding access control policy in the access policy library of the contract based on the data files involved in the corresponding resource access request, the attributes of the resource visitor, the status of the collaborative process instance, and the operation on the shared data file. After completing the retrieval of the access control policy, the access control contract traverses all the retrieved access control policies, parses the policy rules contained therein, sends requests to the attribute management contract and the process contract respectively according to the user attribute policy rules and task attribute policy rules in the policy rules, queries the relevant user and task attributes, matches the attribute values with the user attribute policy rules and the task attribute policy rules, and successfully matches the access control policy when the user attribute value can meet the conditional expression of the user attribute policy rule and the task attribute value can meet the conditional expression of the task attribute policy rule, otherwise it matches the next access control policy; if the access control policy can be matched, it means that the resource accessor has access rights to the resource file, and if all access control policies cannot be matched, it means that the resource accessor does not have access rights to the resource file. The access control contract records the request result of the access control request according to the matching result, and generates a corresponding event to notify the off-chain IPFS proxy layer component. The request result contains the decision result of whether the resource access request should be denied access to the resource file.
[0047] Step 5: The IPFS proxy layer monitors the events generated in the access control contract and obtains the result of the resource access request. If the return result is a rejection, the IPFS proxy layer component sends a notification to reject the resource accessor's request. If the return result is a permission, different results are generated according to different resource operations. If the resource accessor needs to read the corresponding resource access file and the return result is permission, the IPFS proxy layer will download the corresponding file in IPFS according to the hash value of the resource file, decrypt the file according to the Ethereum account private key maintained by the proxy layer and send the file to the resource accessor. The resource accessor compares the summary generated by the obtained file with the summary stored on the chain to confirm that the file has not been tampered with. If the resource accessor needs to write (update) the corresponding resource file and the return result is permission, the resource accessor will often send the modified resource file and the file summary to the IPFS proxy layer. The IPFS proxy layer encrypts the resource file according to the Ethereum account public key and uploads it to IPFS. IPFS returns the resource file hash value. The IPFS proxy layer records the hash value, the process instance to which the file belongs, and the file summary in the file management contract. After completing the corresponding operation, the IPFS proxy layer returns a successful upload notification.
[0048] The above-described embodiment is only a preferred solution of the present invention, but it is not intended to limit the present invention. A person skilled in the relevant technical field may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, any technical solution obtained by equivalent replacement or equivalent transformation falls within the protection scope of the present invention.
Claims
1. A data access control method based on a collaborative process execution system, characterized in that: The collaborative process execution system is a blockchain-based collaborative process execution system, which includes four parts: a front-end system, a back-end system, an interplanetary file system, and an Ethereum blockchain; The front-end system includes the modeler and execution interface; The modeler is used to support collaborative process modeling, and the execution interface is used to manage the upload and download of data files during the execution of the collaborative process; The back-end system includes off-chain components, Web3 interfaces, and the InterPlanetary File System proxy layer. The off-chain components are used to process data passed in by the front-end system. The Web3 interface is a collection library that provides functional interfaces including retrieving user accounts, sending transactions, and interacting with smart contracts. The InterPlanetary File System proxy layer is used to intercept user requests for the InterPlanetary File System in the back-end system and forward the request to the smart contract through the Web3 interface for visitor permission verification. At the same time, it decides whether to send a request to upload or download files to the InterPlanetary File System based on the verification results monitored. The Interplanetary File System is used to store shared data files generated during the execution of cross-organizational processes; The Ethereum blockchain includes a data storage module, an access control module, and a process execution engine; The data storage module includes a file management contract and an attribute management contract. The file management contract is used to store the hash value of the file in the Interstellar File System, and the attribute management contract is used to manage user and organization related information. The access control module includes an access control contract, which is used to verify whether the visitor has the operation authority for the accessed resource when the user accesses the corresponding resource. The process execution engine contains process contracts related to collaborative process execution, which is used to support the execution process of process instances on the chain; The attribute management contract is a smart contract that stores a process organization library, a user library, and an attribute library; In the attribute management contract, the contract creator will import the process organization included in the collaborative business process and set its organization administrator. The organization administrator can manage the attribute collection included in the organization and the related information of the shared resource file in the corresponding organization; The file management contract is a smart contract used to manage shared data file information. It consists of its contract creator and data file library. It can manage shared data files generated during the execution of collaborative business processes on the blockchain and store the hash value of the data file on the chain. When the resource accessor has access rights to the data file, the data file can be obtained through the InterPlanetary File System proxy layer and the hash value of the data file. The process contract is a smart contract used to store a process model and a process instance library, wherein the process model includes the control process logic of the model execution, and the process instance library includes the execution status and execution process of multiple process instances; The access control contract is a smart contract composed of an access request library and an access policy library, which contains contract functions for matching resource access requests and resource access control policies. It can evaluate the access rights of resource accessors based on resource access requests uploaded by the InterPlanetary File System proxy layer, match relevant resource access control policies and obtain the final resource access request result; The data access control method specifically includes the following steps: S1. Deploy the smart contracts involved in the Ethereum blockchain to the Ethereum private chain through the execution interface; the smart contracts include attribute management contracts, access control contracts, file management contracts and process contracts; S2, importing data including the process model constructed by the modeler, the attributes of the organizations and users participating in the collaborative process execution, the process files involved in the collaborative process execution and their access control policies into the smart contract deployed in S1; S3. Creating a collaborative process instance according to the process model stored in the smart contract; when the execution of the collaborative process instance does not involve the operation of the shared data file, the process executors participating in the collaborative process execution can execute the collaborative process by calling the contract function of the process contract on the process execution engine; S4. When the execution of a collaborative process instance involves the operation of a shared data file, the process executor will send a resource access request to the InterPlanetary File System Proxy Layer. The InterPlanetary File System Proxy Layer will call the function interface of the access control contract in the access control module and forward the request to the access control contract. The access control contract will retrieve the corresponding access control policy in the contract and evaluate the resource accessor's access rights to the file based on the data file involved in the resource access request, the attributes of the resource accessor, the status of the collaborative process instance, and the operation on the shared data file. After the evaluation is completed, an event will be generated to record the access result of the resource access request. S5. The InterPlanetary File System proxy layer monitors the events generated in the access control smart contract, obtains the access results of the corresponding resource access requests, and allows or denies the process executor's access to the InterPlanetary File System based on the access results; In the Ethereum blockchain, each smart contract contains the contract address global variables of other smart contracts. After the contract deployment is completed, the contract addresses of other smart contracts need to be imported for each smart contract; and the file management contract also stores an account address saved in the off-chain Interstellar File System proxy layer. Only this account address can call the contract function of the file management contract. All data files uploaded to the off-chain Interstellar File System will be encrypted using this account address to ensure that it is impossible to bypass the Interstellar File System proxy layer and interact directly with the Interstellar File System. In S4, the method for evaluating the resource accessor's access rights to the file is as follows: after completing the retrieval of the access control policy, the access control contract traverses each access control policy retrieved, parses the policy rules contained therein, and sends requests to the attribute management contract and the process contract respectively according to the user attribute policy rules and the task attribute policy rules in the policy rules, queries the relevant user attribute values and task attribute values, and matches the user attribute values and the task attribute values with the user attribute policy rules and the task attribute policy rules respectively. When the user attribute value satisfies the conditional expression of the user attribute policy rule and the task attribute value satisfies the conditional expression of the task attribute policy rule, it is deemed that the current access control policy matches successfully; if at least one access control policy can be matched, it means that the resource accessor has access rights to the resource file, otherwise it is deemed that the resource accessor does not have access rights to the resource file.
