Supply chain-oriented secure cross-chain data interconnection and service collaboration method and device, and storage medium
By adopting a secure cross-chain data interconnection and business collaboration method for supply chain in supply chain scenarios, using data on-chain contracts on blockchain and private databases to store encryption keys, dynamic access control cannot be provided in the existing technology. The problem of data privacy protection and secure sharing is realized, and the robustness and economic value of the supply chain network are improved.
Patent Information
- Application Number
- CN202410935109.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-11-05
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing attribute encryption based on ciphertext policy cannot provide dynamic access control in supply chain scenarios, resulting in the inability to adapt to changes in corporate cooperation relationships and the inability to ensure the privacy protection and secure interconnection of sensitive data of enterprises.
Adopt a secure cross-chain data interconnection and business collaboration method for supply chains, encrypt all-factor data by selecting encryption algorithms, use data on the blockchain to store metadata, and store private ownership of data providers and requesters. The database stores encryption keys and algorithms to realize dynamic data access control and cross-chain data sharing.
It realizes privacy protection and secure sharing of data in supply chain scenarios, provides fine-grained data item encryption, ensures data security and reliability, adapts to the dynamic changes in cooperative relationships between enterprises, and improves the supply chain network Robustness and economic value.
Smart Images

Figure CN118900169A_ABST
Abstract
Description
Technical Field
[0001] The implementation of this application relates to the field of data processing technology, and specifically, to a method, device and storage medium for secure cross-chain data interconnection and business collaboration for supply chains. Background Art
[0002] Breaking the "data, business and value chain islands" problem of the traditional supply chain and service chain is a major demand for the coordinated development of the industrial chain in the manufacturing field in the "cloud manufacturing" era. Taking the two typical manufacturing fields of aerospace and nonferrous metallurgy as examples, the aerospace industry has many levels of suppliers, a long product life cycle and high service requirements, and the nonferrous metallurgical industry has many product types, many processing and distribution links and a wide range of users. The coordination of the industrial chain is becoming more and more difficult, which can easily cause the disconnection of supply chains at all levels, the disconnection of supply chains and service chains, and the logistics chain, resulting in difficulties in cross-chain integration, cross-chain collaborative management and control, and cross-chain intelligent services.
[0003] A secure data interconnection solution will promote information integration in the supply chain network, unify business collaboration between chains, solve the problem of "data, business and value chain islands", and truly ensure that data can be 'available, circulated, used well and ensured to be safe', optimize supply chain resource allocation, and enhance the overall profit of the supply chain.
[0004] Cross-chain data interconnection mainly involves data privacy protection, access control and secure sharing. Currently, Ciphertext Policy Attribute Based Encryption (CP-ABE) is an advanced encryption scheme designed to provide fine-grained access control to data. It allows data owners to define access policies and can only decrypt and access encrypted data when users meet specific attribute requirements. Compared with traditional identity-based encryption (IBE), CP-ABE is more flexible because it allows data owners to define complex access rules instead of being limited to the user's identity. It hides the access structure in the ciphertext, and the attribute set is hidden in the private key of the data accessor. Only those attributes that meet the access structure can decrypt the ciphertext.
[0005] However, the above-mentioned attribute encryption based on ciphertext strategy is only applicable to static data access scenarios. In the supply chain scenario, the cooperative relationship between enterprises is dynamically changing, and only the dynamic access control mechanism is compatible with the data interconnection of the supply chain. Therefore, the data sharing solution based on attribute encryption based on ciphertext strategy combined with blockchain in existing research is not suitable for supply chain scenarios, and cannot provide privacy protection and secure interconnection of sensitive data of enterprises in supply chain scenarios. Summary of the invention
[0006] In view of the above problems, the embodiments of the present application provide a secure cross-chain data interconnection and business collaboration method, device and storage medium for the supply chain, aiming to set up a secure and dynamic multi-chain data interconnection mechanism, and provide a multi-chain business collaboration solution based on privacy-preserving storage and reliable sharing.
[0007] In a first aspect, an embodiment of the present application provides a secure cross-chain data interconnection and business collaboration method for a supply chain, the method being applied to data interconnection and cross-chain business collaboration between data providers and data requesters in a blockchain-based supply chain network, the method comprising:
[0008] The data provider selects an encryption algorithm and sets an encryption key, encrypts and uploads all the data to the IPFS file system or other cloud storage device, and returns the index address and overall hash value;
[0009] Extract the metadata of the full-factor data, determine the sensitive data items and encryption algorithms, encrypt the sensitive data of the metadata and store them on the blockchain through the data on-chain contract, and store the encryption key and the encryption algorithm type in the private database of the data provider.
[0010] In a single-chain business scenario, the data sharing operation between the data requester and the data provider on the same blockchain includes:
[0011] Optionally, the data requester initiates a data access request to the data provider. If there is no available authorization code in the private database of the data requester, the data requester enters his / her public key and identity certificate as well as the data item he / she wants to access into the data authorization contract, and generates an authorization transaction record on the chain;
[0012] The data provider uses the information of the authorization transaction record to assemble an authorization code off-chain that includes the data requester's identity information, access rights, accessible data items, encryption keys, and authorization code validity information. The specific composition rules of the authorization code are set by the data provider. The original authorization code is stored in the private database of the data provider. The original authorization code is encrypted using the public key of the data requester and the encrypted authorization code is returned to the data requester.
[0013] After the data requester obtains the encrypted authorization code, the encrypted authorization code is decrypted using the data requester's private key and stored in the data requester's private database.
[0014] The data requester encrypts the original authorization code using the public key of the data provider, inputs the access encryption authorization code into the data access contract, and generates a data access transaction record on the chain;
[0015] The data provider obtains the data access transaction record, uses the data provider's private key to parse the access encryption authorization code off-chain, queries the status of the original authorization code in the data provider's private database, authenticates and signs the authorization code after checking, and inputs the signed authorization code into the data access contract;
[0016] The data access contract determines the validity of the original authorization code through the signed authorization code, extracts the access rights, accessible data items, encryption key key information in the original authorization code, reads the metadata on the chain, and parses the ciphertext of the accessible data items according to the encryption key;
[0017] The data requester performs his own business operations within the contract based on the access rights and the parsed data.
[0018] In a multi-chain business scenario, data sharing operations between data requesters and data providers on different blockchains include:
[0019] Optionally, the data requester initiates a cross-chain data access request, and finds that there is no available authorization code in the private database. The data requester's identity certificate and public key are input into the cross-chain data authorization contract, and a cross-chain authorization transaction record is generated and uploaded to the chain;
[0020] After the data requester and the public anchor nodes of the two blockchains where the data provider is located obtain the cross-chain authorization transaction record, the cross-chain data authorization contract is called on the blockchain where the data provider is located, and the cross-chain authorization transaction record information and the identity certificate of the public anchor node are input to generate a composite cross-chain authorization transaction record on the chain;
[0021] The data provider assembles an original authorization code containing the identity information, access rights, accessible data items, encryption keys, and authorization code validity information of the data requester off-chain through the information of the composite cross-chain authorization transaction record. The original authorization code is stored in the local private database of the data provider. The authorization code is encrypted using the public key of the data requester and the encrypted authorization code is input into the composite cross-chain authorization transaction record.
[0022] The public anchor node returns the encrypted authorization code and the public key of the data provider to the data requester. After the data requester obtains the encrypted authorization code, it uses the private key of the data requester to parse it off-chain, stores the original authorization code in the private database of the data requester, encrypts the authorization code with the public key of the data provider, and then inputs the access encrypted authorization code into the cross-chain data access contract to generate a cross-chain data access transaction record on-chain;
[0023] After the public anchor node obtains the cross-chain data access transaction record, it calls the cross-chain data access contract on the blockchain where the data provider is located, generates a composite cross-chain access transaction record and uploads it to the chain. After the data provider obtains the cross-chain access transaction, it decrypts the access encryption authorization code with a private key off-chain, checks and compares it with the original authorization code in the private database, and signs it with the private key of the data provider, and inputs the signed authorization code into the cross-chain data access contract;
[0024] After the cross-chain data access contract determines the legitimacy of the signature authorization code, it reads the metadata on the chain, encrypts the metadata using the public key of the data requester, and updates the signature authorization code, encrypted metadata and the public key of the data provider to the composite cross-chain access transaction record;
[0025] After the public anchor node obtains the updated composite cross-chain data access transaction record, it extracts the encrypted metadata, the public key of the data provider, the signature authorization code, calls the cross-chain data access contract on the blockchain where the data requester is located, and updates the above information to the cross-chain access transaction record;
[0026] After the data requester obtains the updated cross-chain access transaction record, the chain uses the public key of the data provider to parse the signature authorization code, extract access rights, accessible data items, and encrypt key information;
[0027] Use the encryption key to parse the encrypted data item in the metadata, and perform business operations based on the access rights and the decrypted data;
[0028] Based on the above single-chain and cross-chain data sharing methods, a multi-chain business collaboration model is established. New business coordination nodes are added to the supply chain network, and cross-chain collaborative business contracts are deployed on the nodes to coordinate cross-chain businesses.
[0029] Taking the scheduling of purchase orders as an example, multiple purchasers in the supply chain network initiate multiple purchase orders in the supply chain, which are synchronized to the business coordination node through cross-chain data sharing. The business coordination node deploys the cross-chain business collaboration contract. This embodiment is a purchase order balanced scheduling contract;
[0030] The business coordination node calls the purchase order balancing and scheduling contract, reads the purchase order information, calls the cross-chain data interconnection contract to initiate metadata access to the supply chain and the service chain for the on-chain partner enterprises, and calls the cross-chain data authorization contract and the cross-chain data access contract in the cross-chain data interconnection contract to obtain the metadata;
[0031] After the business coordination node obtains the metadata information of the cooperative enterprise, it integrates the business information into the purchase order balance scheduling contract, calls the purchase order balance scheduling algorithm, allocates suppliers, marketers, and logistics participants to each order, and updates the order transaction information on the chain;
[0032] The business coordination node updates the order transaction information to the supply chain and the service chain through cross-chain data sharing. The entire supply chain network reaches a consensus on this allocation, and multi-chain business is completed collaboratively.
[0033] In a second aspect, this embodiment provides a cross-chain data interconnection and business collaboration device based on blockchain, the device comprising:
[0034] The data storage module is used for the data provider to encrypt and store all-factor data in the cloud, encrypt and store metadata on the chain, select an encryption algorithm and enter an encryption key to encrypt the all-factor data and upload it to the cloud, use the encrypted all-factor data hash value and the cloud storage index and key data items extracted from the all-factor data as metadata, the data provider determines sensitive data items and encryption algorithms, encrypts sensitive data items, and uploads the encrypted metadata to the chain;
[0035] A single-chain data sharing module, which is used for data authorization and data access operations of the data provider and data requester on the same blockchain, including a data authorization contract and a data access contract;
[0036] A cross-chain data sharing module, which is used for cross-chain data authorization and cross-chain data access operations of the data provider and data requester respectively in two blockchains, including a cross-chain data authorization contract and a cross-chain data access contract;
[0037] The multi-chain business collaboration module is used for business collaboration among multiple chains in the supply chain network. It mainly calls the multi-chain business contract on the business coordination node. The cross-chain data interconnection contract in the contract uses the cross-chain data sharing module and the single-chain data sharing module to promote the interconnection and interoperability of business-related data as the basis for multi-chain business decision-making, and completes the synchronization of multi-chain collaborative business update data through cross-chain data sharing.
[0038] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for multi-chain business collaboration in a supply chain based on blockchain sharing described in the first aspect of the embodiment is implemented.
[0039] The specific beneficial effects are:
[0040] In the supply chain scenario, when data providers and data requesters share data on the same chain and on different chains, the data access control on the blockchain using CP-ABE is static and cannot provide fine-grained data item encryption, resulting in the privacy and security of enterprise data cannot be guaranteed. The method of the embodiment of the present application can select multiple encryption algorithms to encrypt sensitive data items, increasing the difficulty of deciphering ciphertext. The data requester initiates a data authorization request to the data provider by executing a (cross-chain) data authorization contract. In the cross-chain case, a public anchor node is introduced as a trusted transit. The data requester uses the authorization code to execute the (cross-chain) data access contract. After verifying the validity, the original data is parsed in the business contract and used according to the access rights. The shared data and authorization codes transmitted during the whole process are in an encrypted or signed state, and the initial state can only be restored within the contract to ensure the security of the shared data and authorization codes.
[0041] The secure cross-chain data interconnection of the present application is based on secure storage and secure cross-chain sharing, and performs data interconnection operations on business collaboration nodes. Specifically, a multi-chain business collaboration contract is deployed on the business collaboration node, and multi-party data is acquired by embedding a cross-chain data interconnection contract within the contract. The cross-chain data interconnection contract acquires cross-chain business data through a cross-chain data sharing contract, thereby promoting the interconnection and interoperability of related business data.
[0042] Taking the purchase order scheduling contract as an example, this application completes the interconnection of procurement business-related data and multi-chain business collaboration, improves the robustness of the supply chain network, and solves the problems of cross-chain integration and multi-chain business collaboration. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0044] Figure 1 A flowchart showing the steps of the supply chain-oriented secure cross-chain data interconnection and business collaboration method provided by an embodiment of the present application is shown;
[0045] Figure 2 A schematic diagram of a data fine-grained diversified encryption storage method provided by an embodiment of the present application is shown;
[0046] Figure 3 A schematic diagram of a single-chain data sharing process based on blockchain data sharing in an embodiment of the present application is shown;
[0047] Figure 4 A schematic diagram of a cross-chain data sharing process based on blockchain data sharing in an embodiment of the present application is shown;
[0048] Figure 5A diagram of a supply chain multi-chain business collaboration model based on the above-mentioned secure data storage and sharing solution in an embodiment of the present application is shown;
[0049] Figure 6 A schematic diagram of an order scheduling problem in a purchase order allocation process in a supply chain multi-chain business collaboration method case in an embodiment of the present application is shown;
[0050] Figure 7 Shows Figure 6 The case reference schematic data table of the problem diagram;
[0051] Figure 8 The symbolic definition of supply chain purchase order scheduling process modeling in the embodiment of the present application is shown;
[0052] Fig. 9 The mathematical modeling formula for supply chain purchase order scheduling in the embodiment of the present application is shown;
[0053] Fig.10 A schematic diagram of the process flow of the key scheduling algorithm in the purchase order scheduling contract in the embodiment of the present application is shown;
[0054] Fig.11 A schematic diagram showing a comparison of supply chain network resource balance change trends between a multi-chain business collaboration method and a manual decision-making method in purchase order scheduling in an embodiment of the present application is shown;
[0055] Fig.12 A comparison chart of purchase order scheduling cost loss between the multi-chain business collaboration method and the manual decision-making method in the embodiment of the present application is shown;
[0056] Fig.13 A logical block diagram of a secure cross-chain data interconnection and business collaboration device for supply chain provided in an embodiment of the present application is shown; DETAILED DESCRIPTION
[0057] The following will be combined with the drawings in this embodiment to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work belong to the protection scope of this application.
[0058] As the globalization trend of supply chains becomes more and more obvious, the digital transformation of supply chains has received widespread attention. Among them, supply chain platforms based on blockchain have become the mainstream transformation direction. The transparency and immutability of blockchain provide a trusted space for the supply chain. Although supply chain platforms based on blockchain provide transparent and immutable data on the chain, in actual use, enterprises on the chain prefer sensitive data items to be semi-transparent, that is, sensitive data on the chain is not directly exposed. Without a safe and reliable data interconnection mechanism, enterprises in the supply chain will not be willing to upload their own sensitive data to the blockchain, and it is precisely the joint use of these sensitive data that can tap into greater economic value.
[0059] At present, the supply chain platform based on blockchain seems to upload data uniformly to the blockchain, but in fact, what is uploaded is public and worthless data, and the "data island" phenomenon still exists. A safe and reliable data interconnection solution will improve the robustness of the supply chain network and bring greater economic value. In this case, people began to think about using data privacy protection technology to ensure the security of sensitive data on the chain. Commonly, a single encryption method is used, which will lead to large-scale privacy data leakage once the encryption algorithm is cracked. Secondly, data access control technology is used to control the circulation of data on the blockchain-based supply chain. The common one is access control based on attribute encryption. This method presents static data access control as a whole, that is, which part can be accessed at the beginning of data encryption. In the supply chain scenario, the cooperation between enterprises changes frequently, and dynamic data access control is required to flexibly add and delete accessible objects.
[0060] In the supply chain scenario, the purpose of data interconnection is to promote information integration between chains and provide a basis for multi-chain business collaboration. What is lacking now is a solution for multi-chain business collaboration in the supply chain under secure data interconnection, which will push the global supply chain to a higher level and bring more economic value.
[0061] In view of this, the present application provides a secure cross-chain data interconnection and business collaboration method, device and storage medium for the supply chain, which mainly includes three parts: fine-grained and diverse encrypted storage of data, dynamic authorized data sharing based on blockchain, and a multi-chain business collaboration framework. The dynamic authorized data sharing based on blockchain includes a single-chain data sharing module and a cross-chain data sharing module, which will provide a secure data sharing channel for cross-chain data interconnection for multi-chain business collaboration of the supply chain. The combination of the three parts will ultimately realize secure cross-chain data interconnection and multi-chain business collaboration of the supply chain.
[0062] Reference Figure 1 , Figure 1 A flowchart of a method for secure cross-chain data interconnection and business collaboration for a supply chain provided in an embodiment of the present application, the method comprising:
[0063] In step S101, the data provider selects a symmetric encryption algorithm and determines metadata sensitive data items, generates corresponding encryption keys respectively, encrypts all-factor data and stores it in the cloud storage space, and encrypts metadata including the encrypted all-factor data index address and hash value and stores it on the chain.
[0064] Reference Figure 2 , Figure 2 A schematic diagram of a data fine-grained diversified encryption storage method provided in an embodiment of the present application. This method ensures the secure storage of supply chain data through fine-grained encryption control and diversified encryption algorithms. This embodiment uses IPFS as cloud storage. The specific steps are as follows:
[0065] Select a symmetric encryption algorithm, such as AES, DES, and 3DES, randomly generate an encryption key (KEK), encrypt all element data (DATA) and upload it to IPFS;
[0066] All-factor data ciphertext = Encrypt(AES,DATA,KEK)
[0067] IPFS successfully stores the ciphertext of all-factor data and returns the storage index address. The data provider selects certain data items of the full-factor data as part of the on-chain metadata and determines which data items are sensitive data items. It also selects a symmetric encryption algorithm and generates a random encryption key (KEK) for sensitive data items. The encrypted metadata containing the encrypted storage index address and the hash value of the full-factor data is stored on the blockchain through the data on-chain contract.
[0068] The encryption algorithm type selected during the full-factor data encryption and metadata encryption process and the generated encryption key are stored in the data provider's private database (which can be a distributed database).
[0069] In the embodiments of the present application, the data provided by the data provider during the transmission process is in an encrypted state of the original data, thus avoiding the transmission of the original data over the network. Secondly, the diverse selection of encryption algorithms increases the difficulty of deciphering encrypted data. Even if the attacker obtains the encrypted data, he or she does not know what algorithm is used to encrypt it. Finally, the sensitive data items of the metadata are encrypted separately, which not only ensures the on-chain security of the sensitive data of the supply chain enterprises, but also provides an opportunity for the on-chain sharing of the sensitive data, transforming the full transparency of the on-chain data into a semi-transparent state, which is the data privacy security foundation for multi-chain business collaboration.
[0070] In step S102, the data requester and the data provider are on the same chain, and initiate a data authorization application through the data authorization contract to obtain an authorization code, and obtain and parse the metadata through on-chain and off-chain double verification of the data access contract.
[0071] Reference Figure 3 , Figure 3A single-chain data sharing process diagram based on blockchain data sharing is provided for an embodiment of the present application. The data requester initiates an access request for data on a certain chain. If the private database has a legal authorization code for the data, it directly starts calling the data access contract. Otherwise, the public key, identity certificate and data items for access application are entered into the data authorization contract to generate a data authorization transaction record on the chain.
[0072] The data provider obtains the data authorization transaction record, verifies the identity information off-chain and assembles an authorization code containing the data requester's identity information, access rights, accessible data items, encryption keys, and authorization code expiration information. The original authorization code is stored in the data requester's private database, and the authorization code is encrypted using the data requester's public key. The encrypted authorization code is updated in the data authorization transaction record.
[0073] After the data requester obtains the encrypted authorization code through the data authorization transaction record, the authorization code is decrypted by the private key off-chain and stored in the private database of the data requester.
[0074] The data requester reads the authorization code corresponding to the data in the private database, encrypts the authorization code using the public key of the data provider, and then enters the access encrypted authorization code into the data access contract to generate a data access transaction record on the chain.
[0075] The data provider obtains the data access transaction record, uses the private key to parse the access encrypted authorization code off-chain, queries the status of the authorization code in the data provider's private database, authenticates and signs the authorization code after passing the check, and enters the signed authorization code into the data access contract.
[0076] The data access contract verifies the validity of the signed authorization code and then parses the authorization code information. It uses the original authorization code information to check the legitimacy again and extract access rights, accessible data items, encryption keys for sensitive data items, and key information about encryption methods. It reads the on-chain metadata and parses the ciphertext of accessible data items based on the encryption key.
[0077] The data requester performs his own business operations within the business contract based on the access rights and parsed data, thus completing a complete single-chain data sharing operation.
[0078] In the embodiment of the present application, the authorization code in the network transmission is in an intermediate state during the data authorization stage and the data access stage for the data provider and the data requester, which avoids the leakage of the authorization code. Secondly, the validity verification of the authorization code depends on the judgment of the data provider, and the access rights in the authorization code can limit the data requester's right to use the data, which will ensure that the ownership of the sensitive data items of the data is always in the hands of the data provider. Finally, the validity of the authorization code can be revoked by the data provider at any time, and the authorization code contains time information, which can avoid the data requester from frequently initiating data authorization requests within a period of time, reduce network load, and improve supply chain business efficiency.
[0079] In step S103, the data requester and the data provider are on different blockchains, and the public anchor node is used as the information transfer station of the two chains. The cross-chain data authorization contract is called to initiate a cross-chain data authorization application to obtain an authorization code, and the metadata is obtained and parsed through the cross-chain data access contract on-chain and off-chain double verification.
[0080] Reference Figure 4 , Figure 4 A schematic diagram of a cross-chain data sharing process based on blockchain data sharing is provided for an embodiment of the present application. The data requester initiates a cross-chain data access request. If a legitimate authorization code for the data is found in the private database, the cross-chain data access contract is directly called. If no authorization code is available, the identity certificate and public key are entered into the cross-chain data authorization contract to generate a cross-chain authorization transaction record on the chain.
[0081] After the public anchor node of the two blockchains where the data requester and the data provider are located (the node exists in both blockchains at the same time, and the node has deployed a cross-chain data authorization contract and a cross-chain data access contract on both chains) obtains the cross-chain authorization transaction record information, it calls the cross-chain data authorization contract on the blockchain where the data provider is located, inputs the cross-chain authorization transaction record information and the identity information of the public anchor node, and generates a composite authorization transaction record on the chain.
[0082] The data provider obtains the information of the composite authorization transaction record on the chain, and assembles an authorization code containing the identity information of the data requester, access rights, accessible data items, encryption keys, and authorization code validity information off the chain. The original authorization code is stored in a private database, and the authorization code is encrypted using the public key of the data requester. The encrypted authorization code is updated to the composite cross-chain authorization transaction record through the cross-chain authorization transaction contract.
[0083] After the public anchor node obtains the encrypted authorization code in the composite cross-chain authorization transaction record and the public key of the data provider, it updates the information to the cross-chain authorization transaction record through the cross-chain authorization contract on the blockchain where the data requester is located. After the data requester obtains the encrypted authorization code through the cross-chain authorization transaction record, it uses its own private key to parse it off-chain, and the original authorization code is stored in the private database of the data requester.
[0084] The data requester reads the original authorization code of the corresponding data in the private database, encrypts the authorization code using the public key of the data provider, inputs the access encryption authorization code and identity certificate into the cross-chain data access contract, and generates a cross-chain data access transaction record on the chain.
[0085] After the public anchor node obtains the cross-chain data access transaction record, it calls the cross-chain data access contract on the blockchain where the data provider is located, inputs the identity certificate of the public anchor node, the identity certificate of the data requester and the encrypted authorization code into the contract, and generates a composite cross-chain access transaction record on the chain.
[0086] After obtaining the composite cross-chain access transaction record, the data provider uses the private key to decrypt the access encryption authorization code off-chain, compares it with the authorization code in the private database, signs it with its own private key, and enters the signed authorization code into the cross-chain data access contract.
[0087] After determining the legitimacy of the signature authorization code, the cross-chain data access contract reads the metadata information on the chain, encrypts the metadata using the public key of the data requester, and updates the signature authorization code, encrypted metadata, and the public key of the data provider to the composite cross-chain access transaction record.
[0088] After the public anchor node obtains the updated composite cross-chain data access transaction record, it extracts the encrypted metadata, the public key of the data provider, the signature authorization code, and calls the cross-chain data access contract on the blockchain where the data requester is located. The contract updates the above information to the cross-chain access transaction record.
[0089] After the data requester obtains the updated cross-chain access transaction record, it uses its own private key to decrypt the encrypted metadata off-chain, inputs the metadata into the cross-chain access transaction contract, and uses the public key of the data provider on-chain to parse the signature authorization code, extract access rights, accessible data items, and encryption key key information.
[0090] The data requester uses the encryption key in the cross-chain data access contract to parse the corresponding encrypted data item in the metadata, and performs its own business operations based on the access rights and the decrypted data. At this point, a complete cross-chain data access operation is completed.
[0091] In the embodiment of the present application, the authorization code and metadata transmitted by the network are in an encrypted intermediate state during the cross-chain data authorization stage and the cross-chain data access stage for the data requester and the data provider, and there is no possibility of plain text leakage. Secondly, the validity of the authorization code is judged by the data provider, and the authorization code can be revoked at any time. The control of the metadata on the chain is firmly in the hands of the data provider. The authorization code contains time information, which can prevent the data requester from frequently initiating data authorization requests within a period of time, reduce the network load, and improve the efficiency of cross-chain business collaboration in the supply chain. The authorization code contains the encryption type and encryption key of each encrypted data item, but the specific combination and usage are not visible to the outside, which ensures the security of the encryption key. The use of data is carried out within the contract, and the access rights contained in the authorization information limit the use of data. The smart contract strictly controls the use of data to ensure that the original data is not leaked and used on demand, which truly provides secure fine-grained dynamic data sharing.
[0092] In the embodiment of the present application, there are multiple public anchor nodes between multiple chains to avoid single point failure problems. The private databases of data providers and data requesters can be distributed databases to ensure the high availability of private databases and improve the high availability and efficiency of data authorization and data access.
[0093] Step S104, build a supply chain network based on the multi-chain business collaboration model, and deploy multi-chain business collaboration contracts, cross-chain data interconnection contracts, cross-chain data authorization contracts, and cross-chain data access contracts on public anchor nodes.
[0094] Reference Figure 5 , Figure 5 This is a supply chain multi-chain business collaboration model diagram based on the above-mentioned secure data storage and sharing solution in an embodiment of the present application. By adding business collaboration nodes to the supply chain network with manufacturing supply chain and service chain as the core, the business collaboration nodes are added to all blockchains involved in related businesses to provide a data transfer station for cross-chain data interconnection.
[0095] A multi-chain business collaboration contract is deployed on the business collaboration node. The cross-chain business data is first interconnected in the contract. The relevant data of the multi-chain business of the supply chain is obtained through the cross-chain data sharing module and the single-chain data sharing module. The multi-chain business is uniformly scheduled through the decision-making algorithm in the contract.
[0096] In an embodiment of the present application, the multi-chain business collaboration model relies on step S101 to provide privacy protection for on-chain data, and uses step S102 and step S103 as methods for inter-chain and intra-chain data transmission to jointly support the execution of cross-chain data interconnection contracts, and provide a secure aggregation space for multi-chain business data interconnection of multi-chain business collaboration contracts.
[0097] Step S105, calling the multi-chain business collaboration contract at the public anchor node, firstly integrating the multi-chain business data through the cross-chain data interconnection contract within the contract, wherein the cross-chain data interconnection contract obtains the multi-chain business data by the data sharing method of steps S102 and S103, and finally completing the multi-chain business through the business scheduling algorithm within the multi-chain business collaboration contract, and synchronously updating the multi-chain business collaboration data using S102 and S103.
[0098] To explain step S105 in detail, taking the purchase order scheduling of the supply chain as an example, under the traditional purchase order allocation method, the initiator of the purchase order will always choose the resource node that is closest to itself and has the lowest cost. This may cause the supply chain to fall into an extremely bad state, greatly increase the scheduling cost and logistics cost of subsequent orders, thereby reducing the profit of the entire supply chain network, which is not in line with the vision of green and low-carbon.
[0099] Reference Figure 6 and Figure 7 , Figure 6 This is a schematic diagram of an order scheduling problem in the process of allocating purchase orders in a supply chain multi-chain business collaboration method case in an embodiment of the present application. Figure 7 Shows Figure 6 The case of the problem diagram is referenced in the schematic data table, Figure 6 In the simulation, three supply nodes A, B, C, two distribution nodes S1, S2, and two purchasing nodes P1, P2 (excluding logistics nodes) are simulated. The purchasing nodes initiate two purchase orders in sequence. The purchase quantity of the order and the resource status of the node are as follows: Figure 7 As shown in the table, the purchase quantity is defined as Q, the remaining capacity is defined as R, and the total capacity is defined as AR.
[0100] According to the shortest path in the current state, purchase orders are allocated. Order P1 chooses the current shortest path (A-S1-P1), and order P2 can only choose the path (C-S2-P2). Assuming that the order cost loss is equal to Q*length(FSP), the loss caused by this resource imbalance is further amplified. The loss of P1 is 75, the loss of P2 is 525, and the total cost is 600. Considering resource balance, another allocation method can be found, P1(B-S1-P1), P2(A-S1-P2). Under this decision, the total cost is reduced to 475. It can be found that at the beginning of order allocation, node resources have already shown an unbalanced state. The reason for this situation is the lack of multi-chain business collaboration methods and the lack of secure interconnection (sharing, integration and utilization) of supply chain data, which leads to the failure to consider the overall situation of the supply chain network in business decisions, resulting in an unhealthy resource allocation state for the supply chain as a whole.
[0101] In order to verify the application prospects and effectiveness of the secure cross-chain data interconnection and business collaboration method for the supply chain provided in the embodiment of the present application, by modeling the purchase order allocation process, deploying a multi-chain business collaboration contract for purchase orders on the business collaboration node, simulating the allocation of purchase orders, and calculating the changing trend of the supply chain network resource balance value and the overall cost loss during the order allocation process. The total loss L of a batch of purchase orders in the supply chain scheduling process is modeled. The purpose of the model constructed in this embodiment is to minimize the total loss L of the order scheduling process as much as possible. At the same time, it is subject to the global resource balance limit. The loss of a single order includes the scheduling cost and the logistics cost (therefore, the proposed model is also called a multi-order scheduling model with resource balance limits).
[0102] Reference Figure 8 and Fig. 9 , Figure 8 A multi-chain business collaborative purchase order scheduling process modeling symbol definition provided in an embodiment of the present application, Fig. 9 This is the mathematical modeling formula for supply chain procurement order scheduling in the embodiment of the present application. The objective function proposed above takes into account three main costs, namely scheduling cost, logistics cost and resource balance change cost. It mainly involves two key paths, supply node-marketing node-procurement node and marketing node-procurement node. The total cost includes the final weighted cost of each order after the minimum cost of the two paths is confirmed. The actual total cost needs to be subtracted from the EV cost. The initial total amount of resource nodes is κ, and the remaining total amount in the process is τ. The resource balance EV of a single node is obtained by the following formula (1):
[0103]
[0104] The resource balance REV of the entire supply chain network is obtained through the following formula (2):
[0105]
[0106] Reference Fig.10 , Fig.10 A flow chart of a key scheduling algorithm in a purchase order scheduling contract provided in an embodiment of the present application is as follows:
[0107] First, the cross-chain data interconnection contract is called within the multi-chain business collaboration contract to read the unallocated purchase orders and the metadata of enterprises on the supply chain and service chain involved in the purchase order scheduling. The metadata of this embodiment mainly focuses on the resource status and location information of the enterprise.
[0108] Afterwards, the supplier queue, marketing queue and logistics queue related to the purchase order scheduling are constructed based on the metadata obtained from the cross-chain data interconnection, and are arranged in descending order according to the single-node resource balance defined by formula (1), with the aim of giving priority to enterprises with sufficient resources.
[0109] After that, the purchase order queue is read, and whether to sort the purchase orders in descending order is selected according to the current overall supply chain resource value and the predefined strategy variation value, so as to give priority to allocating larger orders when the overall supply chain resources are insufficient.
[0110] Then the path with the lowest cost is calculated and recorded in the result set, the business queue is updated and sorted in descending order according to resource conditions.
[0111] Finally, when all purchase orders in the order queue are allocated, the result set will be updated to the blockchain and synchronized to the participating supply chains and service chains through single-chain data sharing and cross-chain data sharing.
[0112] To prove the effectiveness of using multi-chain business collaboration to allocate purchase orders, the embodiment of this application randomly generates two supply chain networks, uses Euclidean distance as the physical distance between nodes, generates node metadata and order data for each, performs metadata on-chain operations through fine-grained data diverse encryption storage methods, and deploys purchase order scheduling contracts (multi-chain business collaboration contract implementation examples) on business collaboration nodes. By calling the purchase order scheduling contract, the participants of the decision order are determined, and the changes in the overall balance of the supply chain network and the cost of each order during the order allocation process are recorded.
[0113] Reference Fig.11 , Fig.11 A schematic diagram comparing the supply chain network resource balance change trend of the multi-chain business collaboration method and the manual decision-making method in the purchase order scheduling provided in the embodiment of the present application. The curve represents the change trend of supply chain network resource balance through the multi-chain business collaboration method to schedule and allocate purchase orders. The curve represents the trend of supply chain network resource balance when scheduling and allocating purchase orders through manual decision-making methods. It can be seen that the integration of multi-chain business information through multi-chain business collaboration methods can more reasonably allocate resources in the supply chain, and the multi-chain business collaboration method can better maintain the health and stability of supply chain network resources than manual decision-making methods.
[0114] Reference Fig.12 , Fig.12 A comparison chart of the purchase order scheduling cost loss between the multi-chain business collaboration method and the manual decision-making method provided in the embodiment of the present application. The area part represents the purchase order scheduling cost loss under the multi-chain business collaboration method. The area represents the purchase order scheduling cost loss under the manual decision-making method. It can be seen that in both supply chain networks, the multi-chain business collaboration method shows lower cost losses. The multi-chain business collaboration method of the embodiment of the present application can improve the overall profit of the supply chain. The secure cross-chain data interconnection and business collaboration method for the supply chain has great application prospects and economic value in the supply chain scenario.
[0115] Reference Fig.13 , Fig.13 A logical block diagram of a secure cross-chain data interconnection and business collaboration device for a supply chain provided in an embodiment of the present application, the secure cross-chain data interconnection and business collaboration device 300 for a supply chain may include:
[0116] Data storage module 301, used for the data provider to encrypt and store all-factor data in the cloud, encrypt and store metadata on the chain, select an encryption algorithm and input an encryption key to encrypt all-factor data and upload it to the cloud, use the encrypted all-factor data hash value and the cloud storage index and key data items extracted from the all-factor data as metadata, the data provider determines sensitive data items and encryption algorithms, encrypts sensitive data items, and uploads the encrypted metadata to the chain;
[0117] The single-chain data sharing module 302 is used for data authorization and data access operations of the data provider and data requester on the same blockchain, including a data authorization contract and a data access contract;
[0118] The cross-chain data sharing module 303 is used for cross-chain data authorization and cross-chain data access operations of the data provider and data requester in the two blockchains respectively, including a cross-chain data authorization contract and a cross-chain data access contract;
[0119] The multi-chain business collaboration module 304 is used for business collaboration among multiple chains in the supply chain network. It mainly calls the multi-chain business contract on the business coordination node. The cross-chain data interconnection contract in the contract uses the cross-chain data sharing module and the single-chain data sharing module to promote the interconnection and interoperability of business-related data as the basis for multi-chain business decision-making, and completes the synchronization of multi-chain collaborative business update data through cross-chain data sharing.
[0120] The secure cross-chain data interconnection and business collaboration device for the supply chain in the embodiment of the present application can be deployed on a device with an operating system. The operating system can be Linux, Windows, Mac operating system, etc., and can also be other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0121] The secure cross-chain data interconnection and business collaboration device for supply chain provided in the embodiment of the present application can achieve Figures 1 to 5To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0122] An embodiment of the present application also provides a computer-readable storage medium on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, the steps in the method for secure cross-chain data interconnection and business collaboration for the supply chain as disclosed in the embodiment of the present application are implemented.
[0123] This specification describes various embodiments from bottom to top according to dependency relationships.
[0124] The above is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application; secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and components involved are not necessarily required by the present application. The above is a detailed introduction to the supply chain-oriented secure cross-chain data interconnection and business collaboration method, device and storage medium provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for those skilled in the art, according to the ideas of the present application, there will be changes in the specific implementation methods and scope of application. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A secure cross-chain data interconnection and business collaboration method for the supply chain, It is characterized in that The method comprises: The data provider selects a symmetric encryption algorithm and determines the metadata sensitive data items, generates corresponding encryption keys respectively, encrypts the full-factor data and stores it in the cloud storage space, and encrypts the metadata including the index address and hash value of the encrypted full-factor data and stores it on the chain; The data requester and the data provider are on the same chain, and initiate a data authorization application through the data authorization contract to obtain an authorization code, and obtain and parse the metadata through on-chain and off-chain double verification of the data access contract; The data requester and the data provider are on different blockchains, and use the public anchor node as the information transfer station of the two chains. The cross-chain data authorization contract is called to initiate a cross-chain data authorization application to obtain an authorization code, and the metadata is obtained and parsed through the cross-chain data access contract on-chain and off-chain double verification; Build a supply chain network based on a multi-chain business collaboration model, and deploy multi-chain business collaboration contracts, cross-chain data interconnection contracts, cross-chain data authorization contracts, and cross-chain data access contracts on public anchor nodes; The multi-chain business collaboration contract is called at the public anchor node. First, the multi-chain business data is integrated through the cross-chain data interconnection contract within the contract, wherein the cross-chain data interconnection contract obtains the multi-chain business data by the data sharing method of steps S102 and S103. Finally, the multi-chain business is completed through the business scheduling algorithm in the multi-chain business collaboration contract, and the multi-chain business collaboration data is synchronously updated using S102 and S103.
2. The method according to claim 1, It is characterized in that The method further comprises: The data requester applies to use the on-chain metadata of the data provider on the same chain, and initiates an authorization application to the on-chain data provider through the data authorization contract based on the identity certificate of the data requester and the data items requested for access; The data provider automatically or manually grants the data requester an authorization code according to defined rules through data authorization transaction records, and the original authorization code is stored in the private database of the data provider; The data requester accesses the data contract based on the authorization code in the local database. After the data provider verifies the signature of the authorization code off-chain, the authorization code is parsed in the contract, the encryption key and access rights are extracted, and the metadata is decrypted before using the data in the contract based on the access rights. Based on the multi-chain business collaboration contract, a method for aggregating and using multi-chain business data is provided to parse the data and construct a business queue; Based on the multi-chain business data and taking into account the resource balance of the supply chain, a multi-chain business balanced scheduling method is provided.
3. The method according to claim 1, It is characterized in that The data provider selects a symmetric encryption algorithm and determines the metadata sensitive data items, generates corresponding encryption keys respectively, encrypts the full-factor data and stores it in the cloud storage space, encrypts the metadata including the index address and hash value of the encrypted full-factor data and stores it on the chain, including: Providing the data provider with a method for extracting data items from the full-factor data and combining the encrypted full-factor data index address and hash value to form metadata; The data provider selects an encryption algorithm type based on the multiple symmetric encryption algorithms, generates a symmetric encryption key, and adopts different encryption algorithms for metadata sensitive data items to reduce the risk of metadata leakage. The encryption keys generated in the process are stored in the private database of the data provider.
4. The method according to claim 1, It is characterized in that The data requester and the data provider are on different blockchains, and use the public anchor node as the information transfer station of the two chains. The cross-chain data authorization contract is called to initiate a cross-chain data authorization application to obtain an authorization code, and the metadata is obtained and parsed through the cross-chain data access contract on-chain and off-chain double verification, including: Based on the identity certificate of the data requester, the data item requested for access, and the identity certificate of the public anchor node, the cross-chain data authorization contracts on the two chains are called to complete a data authorization request, and the original authorization code is stored in the private database of the data provider; Based on the identity certificate of the data requester, the data access authorization code, and the identity certificate of the public anchor node, the cross-chain data access contract on the two chains is called, the data provider verifies and signs the authorization code off-chain, the data requester obtains the signed authorization code in the cross-chain data access transaction record, parses the authorization code within the contract, extracts the encryption key and access rights, etc., decrypts the corresponding data item, and uses the data according to the access rights.
5. The method according to claim 2, It is characterized in that The data requester applies to use the on-chain metadata of the data provider on the same chain, and initiates an authorization application to the on-chain data provider through the data authorization contract based on the identity certificate of the data requester and the data items requested for access, including: Based on the data authorization contract, generate a data authorization transaction record and record it on the blockchain; A data access authorization code is generated based on the identity certificate and the access application data item in the data authorization transaction record.
6. The method according to claim 1, It is characterized in that The data authorization transaction record and data access transaction record save the identity information of the data requester and the information on the data item to be accessed, which are used for single-chain data traceability; the cross-chain data authorization transaction record and cross-chain data access transaction record save the identity information of the data requester and the public anchor node, providing a cross-chain data traceability function; the cross-chain data interconnection contract only obtains the business data items corresponding to the metadata on the participating chains involved in the multi-chain business collaboration contract, ensuring minimum access to data.
7. A secure cross-chain data interconnection and business collaboration device for the supply chain, It is characterized in that The device comprises: The data storage module is used for the data provider to encrypt and store all-factor data in the cloud, encrypt and store metadata on the chain, select an encryption algorithm and enter an encryption key to encrypt the all-factor data and upload it to the cloud, use the encrypted all-factor data hash value and the cloud storage index and key data items extracted from the all-factor data as metadata, the data provider determines sensitive data items and encryption algorithms, encrypts sensitive data items, and uploads the encrypted metadata to the chain; A single-chain data sharing module, which is used for data authorization and data access operations of the data provider and data requester on the same blockchain, including a data authorization contract and a data access contract; A cross-chain data sharing module, which is used for cross-chain data authorization and cross-chain data access operations of the data provider and data requester respectively in two blockchains, including a cross-chain data authorization contract and a cross-chain data access contract; The multi-chain business collaboration module is used for business collaboration among multiple chains in the supply chain network. It mainly calls the multi-chain business contract on the business coordination node. The cross-chain data interconnection contract in the contract uses the cross-chain data sharing module and the single-chain data sharing module to promote the interconnection and interoperability of business-related data as the basis for multi-chain business decision-making, and completes the synchronization of multi-chain collaborative business update data through cross-chain data sharing.
8. A storage medium, It is characterized in that The readable storage medium stores programs or instructions, and when the programs or instructions are executed by the processor, the above-mentioned secure cross-chain data interconnection and business collaboration method for the supply chain is implemented.
Citation Information
Patent Citations
Trusted sharing method for protecting government affair private data based on block chain
CN112417510A
Data cross-blockchain access control method and system in multi-blockchain scene, equipment and terminal
CN113364735A
Cited By
Trusted data asset management platform and management method thereof
CN120498908A
A trusted data asset management platform and a management method thereof
CN120498908B
Supply chain cross-enterprise information sharing security system oriented to multi-chain collaboration
CN121792037A
