Blockchain and smart contract supply chain electronic warehouse receipt multi-level encryption method and system

By combining dynamic key topology networks and smart contracts, multi-level encryption and cross-chain verification of electronic warehouse receipts are achieved, solving the centralization risks and cross-chain collaboration trust issues in electronic warehouse receipt systems, and improving data security and collaboration efficiency.

CN120880654BActive Publication Date: 2026-03-31BEIJING YIYOU INTERNET TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-08-11
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

Existing technologies for electronic warehouse receipt systems suffer from problems such as centralization risks, data tampering, inflexible access control, difficulties in cross-institutional collaboration, and trust gaps in cross-chain collaboration, especially in key management, access control, and cross-chain collaboration.

Method used

It adopts a dynamic key topology network and a time-event dual-trigger key rotation mechanism, combined with smart contracts and zero-knowledge proof mechanisms, to achieve multi-level encryption and cross-chain verification, dynamically manage keys, and enhance access control and cross-chain trust.

Benefits of technology

It improves the attack resistance and lifecycle management capabilities of keys, enables fine-grained access control, protects data confidentiality and business privacy, promotes cross-chain collaboration, ensures data integrity and transparency, and solves the cross-chain trust problem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120880654B_ABST
    Figure CN120880654B_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of blockchain encryption, and discloses a blockchain and smart contract supply chain electronic warehouse order multi-level encryption method and system. The method comprises the following steps: deploying a dynamic key topology network in a supply chain blockchain network, and setting a key rotation mechanism; multi-level encrypting a real-time electronic warehouse order, and generating a real-time interaction request; using a smart contract to verify the authority of the real-time interaction request, if the authority verification is passed, obtaining a real-time hash value and storing it; obtaining a real-time electronic warehouse order operation requirement, using a zero-knowledge proof mechanism to verify the corresponding target real-time hash value cross-chain, if the cross-chain verification is passed, executing the real-time electronic warehouse order operation requirement. The application solves the problems of key management risk, insufficient authority control granularity, data security and cross-chain cooperation trust gap in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of blockchain encryption technology, specifically relating to a multi-level encryption method and system for electronic warehouse receipts in the supply chain using blockchain and smart contracts. Background Technology

[0002] With the development of supply chain finance and digitalization, the secure and reliable circulation of electronic warehouse receipts, as important certificates of title, is crucial. Traditional electronic warehouse receipt systems often suffer from problems such as centralization risks, data tampering, inflexible access control, and difficulties in cross-institutional collaboration. While blockchain technology offers a possibility for solving these problems, single blockchain applications still face challenges:

[0003] 1) Key management risks: Static keys or centralized key management are vulnerable to attacks. Once the keys are leaked, data will be compromised or tampered with.

[0004] 2) Insufficient granularity of access control: Traditional smart contracts have relatively simple access management, which is difficult to meet the needs of complex and ever-changing business scenarios and participant roles in the supply chain;

[0005] 3) Data security issues: Complete transparency in cross-chain or cross-institutional collaborations may lead to the leakage of commercially sensitive information;

[0006] 4) Cross-chain collaboration trust gap: Poor interoperability between different blockchain networks and a lack of effective trust-building mechanisms, especially when verifying the authenticity of the other party's on-chain state or operation. Summary of the Invention

[0007] To address the issues of key management risks, insufficient granularity of access control, data security problems, and trust gaps in cross-chain collaboration in existing technologies, this invention aims to provide a multi-level encryption method and system for electronic warehouse receipts in the supply chain using blockchain and smart contracts.

[0008] The technical solution adopted in this invention is as follows:

[0009] A multi-level encryption method for electronic warehouse receipts in the supply chain using blockchain and smart contracts includes the following steps:

[0010] Deploy a dynamic key topology network in the supply chain blockchain network and set up a key rotation mechanism for the dynamic key topology network;

[0011] Using a dynamic key topology network, the real-time electronic warehouse receipt is encrypted at multiple levels to obtain the multi-level encrypted real-time electronic warehouse receipt, and a real-time interactive request is generated.

[0012] Deploy smart contracts in a dynamic key topology network and use smart contracts to verify the permissions of real-time interaction requests. If the permission verification is successful, directly calculate the real-time hash value of the multi-level encrypted real-time electronic warehouse receipt and store it.

[0013] To obtain real-time electronic warehouse receipt operation requests, a zero-knowledge proof mechanism is used to perform cross-chain verification on the corresponding target real-time hash value. If the cross-chain verification passes, the real-time electronic warehouse receipt operation request is executed.

[0014] Furthermore, a dynamic key topology network is deployed in the supply chain blockchain network, and a key rotation mechanism is set up for the dynamic key topology network, including the following steps:

[0015] Deploy key management units in several nodes of the supply chain blockchain network to form a key node set;

[0016] Based on preset strategies and real-time network conditions, the connection relationships between key nodes are dynamically established to obtain a dynamic key topology network.

[0017] According to preset rules, multi-level keys required for encryption are generated and stored in the nodes corresponding to the dynamic key topology network.

[0018] A key entropy evaluation algorithm is used to set up a time- and event-triggered key rotation mechanism for each node in the dynamic key topology network.

[0019] Furthermore, according to preset rules, multi-level keys required for encryption are generated and stored in the nodes corresponding to the dynamic key topology network, including the following steps:

[0020] According to preset rules, a root key is generated in the main chain of the supply chain blockchain network and stored in the key management unit of the node corresponding to the dynamic key topology network.

[0021] According to preset rules, in each regional consortium chain of the supply chain blockchain network, an intermediate key is derived from the root key and stored in the key management unit of the node corresponding to the dynamic key topology network.

[0022] According to preset rules, among the participating entities in the supply chain blockchain network, leaf node keys are generated based on their permissions and roles, combined with intermediate keys, and stored in the key management unit of the node corresponding to the dynamic key topology network.

[0023] Furthermore, a dynamic key topology network is used to perform multi-level encryption on the real-time electronic warehouse receipt, resulting in a multi-level encrypted real-time electronic warehouse receipt, and a real-time interactive request is generated, including the following steps:

[0024] The first participating entity using the dynamic key topology network obtains real-time electronic warehouse receipts for plaintext data.

[0025] Based on the leaf node key, the real-time electronic warehouse receipt is encrypted at the first level to obtain the real-time electronic warehouse receipt after the first level of encryption.

[0026] Based on the intermediate key, the real-time electronic warehouse receipt after the first level of encryption is encrypted again to obtain the real-time electronic warehouse receipt after the second level of encryption.

[0027] Based on the leaf node key, the second-level encrypted real-time electronic warehouse receipt is encrypted a third time to obtain a multi-level encrypted real-time electronic warehouse receipt.

[0028] Based on the business requirements of real-time electronic warehouse receipts with multi-level encryption, the first participating entity is used to generate corresponding real-time interaction requests.

[0029] Furthermore, smart contracts are deployed in the dynamic key topology network, and these smart contracts are used to verify the permissions of real-time interaction requests. If the permission verification is successful, the real-time hash value is directly calculated and stored on the multi-level encrypted real-time electronic warehouse receipt, including the following steps:

[0030] Based on the business logic of electronic warehouse receipts and the roles and responsibilities of the participants, write smart contracts and bind dynamic permission models to the smart contracts;

[0031] Based on the nature of the real-time interaction request and the region to which the participating entity belongs, deploy smart contracts at the corresponding locations in the dynamic key topology network;

[0032] Using smart contracts, we receive real-time interaction requests and use a dynamic permission model to verify the permissions of the first participating entity corresponding to the real-time interaction request.

[0033] If the authorization verification is successful, the real-time electronic warehouse receipt after multi-level encryption is directly calculated to obtain the real-time hash value, which is then stored in the dynamic key topology network.

[0034] Furthermore, the dynamic permission model includes subject dimension, object dimension, operation dimension, and context dimension.

[0035] Furthermore, to obtain real-time electronic warehouse receipt operation requests, a zero-knowledge proof mechanism is used to perform cross-chain verification of the corresponding target real-time hash value. If the verification passes, the real-time electronic warehouse receipt operation request is executed, including the following steps:

[0036] Obtain the real-time electronic warehouse receipt operation requirements of the second participating entity in the dynamic key topology network, and generate corresponding real-time cross-chain verification requests including the source chain and the target chain;

[0037] The source chain's smart contract receives real-time cross-chain verification requests and uses a dynamic permission model to verify the permissions of the second participating entity corresponding to the real-time cross-chain verification request.

[0038] If the permission verification passes, the corresponding target real-time hash value is matched according to the real-time cross-chain verification request, and cross-chain verification is performed using a zero-knowledge proof mechanism.

[0039] If the cross-chain verification passes, the real-time electronic warehouse receipt operation is executed on the target real-time hash value, and the execution result is returned to the second participating entity.

[0040] Furthermore, using smart contracts, real-time interaction requests / real-time cross-chain verification requests are received, and a dynamic permission model is used to verify the permissions of the first / second participating entities corresponding to the real-time interaction requests / real-time cross-chain verification requests, including the following steps:

[0041] Using smart contracts, receive real-time interaction requests / real-time cross-chain verification requests, and parse the real-time subject information, real-time object information, real-time operation information, and real-time context information of the first / second participating entities corresponding to the real-time interaction requests / real-time cross-chain verification requests;

[0042] Using a dynamic permission model, the real-time subject information, real-time object information, real-time operation information, and real-time context information of the first / second participating entities are comprehensively evaluated to obtain a real-time comprehensive evaluation result.

[0043] If the real-time comprehensive evaluation result is qualified, the output permission verification is passed; otherwise, the output permission verification is failed, and the time-event dual-trigger key rotation mechanism of the dynamic key topology network is triggered to perform multi-level key updates.

[0044] Furthermore, if the authorization verification passes, the corresponding target real-time hash value is matched according to the real-time cross-chain verification request, and cross-chain verification is performed using a zero-knowledge proof mechanism, including the following steps:

[0045] If the authorization verification passes, the corresponding target real-time hash value is matched in the dynamic key topology network according to the real-time cross-chain verification request.

[0046] Based on the real-time cross-chain verification request and the target real-time hash value, determine the real-time proof content, select a real-time zero-knowledge proof scheme, and generate real-time zero-knowledge proof and real-time verification data.

[0047] Based on the real-time cross-chain verification request, real-time zero-knowledge proof, and real-time verification data, construct real-time cross-chain information and send it to the target chain of the dynamic key topology network;

[0048] Using the target chain, receive real-time cross-chain information and parse out the corresponding real-time hash value of the target after restoration, the real-time zero-knowledge proof after restoration, and the real-time verification data after restoration.

[0049] Using the target chain, zero-knowledge verification is performed on the restored real-time zero-knowledge proof based on the restored real-time verification data, and the real-time zero-knowledge verification result is obtained.

[0050] If the real-time zero-knowledge verification result is qualified, the cross-chain verification is output as passed; otherwise, the cross-chain verification is output as failed, and the time-event dual-trigger key rotation mechanism of the dynamic key topology network is triggered.

[0051] A multi-level encryption system for electronic warehouse receipts in the supply chain based on blockchain and smart contracts is provided to implement a multi-level encryption method for electronic warehouse receipts in the supply chain. The system is set up on a supply chain blockchain network, which includes a main chain and at least one regional consortium chain. The supply chain blockchain network includes several participating entities. The system includes a multi-level encryption deployment unit, a multi-level encryption execution unit, an electronic warehouse receipt storage unit, and an electronic warehouse receipt operation unit connected in sequence.

[0052] The beneficial effects of this invention are as follows:

[0053] This invention provides a multi-level encryption method and system for electronic warehouse receipts in the supply chain using blockchain and smart contracts. A dynamic key topology network combined with a time-event dual-trigger key rotation mechanism significantly improves key resistance to attacks and lifecycle management capabilities, reduces the risk of key leakage, and enhances key security. Based on a multi-dimensional dynamic permission model encompassing subject, object, operation, and context, it can flexibly adapt to the complex and ever-changing business rules and participant roles in the supply chain, achieving more granular access control. Multi-level encryption protects the confidentiality of warehouse receipt data, while real-time hash value calculation and storage ensure data integrity. Cross-chain zero-knowledge proofs verify the validity of cross-chain operations without disclosing sensitive operational details, protecting business privacy and improving data security. The cross-chain zero-knowledge verification mechanism provides a trusted foundation for collaboration between different blockchain networks, solving cross-chain trust issues and promoting smooth integration of various links in the supply chain. The introduction of smart contracts automates permission verification, hash calculation, cross-chain verification, and operation execution, while the immutability of the blockchain ensures transparency and traceability of the process.

[0054] Other beneficial effects of the present invention will be further explained in the specific embodiments. Attached Figure Description

[0055] Figure 1 This is a flowchart of the multi-level encryption method for electronic warehouse receipts in the supply chain using blockchain and smart contracts in this invention.

[0056] Figure 2 This is a structural block diagram of the blockchain and smart contract-based multi-level encryption system for electronic warehouse receipts in the supply chain, as described in this invention. Detailed Implementation

[0057] The present invention will be further explained below with reference to the accompanying drawings and specific embodiments.

[0058] Example 1:

[0059] like Figure 1 As shown, this embodiment provides a multi-level encryption method for electronic warehouse receipts in the supply chain using blockchain and smart contracts, including the following steps:

[0060] S1: Deploy a dynamic key topology network in the supply chain blockchain network and set up a key rotation mechanism for the dynamic key topology network, including the following steps:

[0061] S1-1: Deploy key management units in several nodes of the supply chain blockchain network (which can be main chain nodes, consortium chain nodes, or dedicated security nodes) to form a key node set;

[0062] The supply chain blockchain network includes a main chain and at least one regional consortium chain, and the supply chain blockchain network includes several participating entities, including warehousing providers, logistics providers, financial institutions, etc.

[0063] S1-2: Based on preset strategies (such as geographical location, business relevance, security level, etc.) and real-time network status, dynamically establish the connection relationship between key nodes to obtain a dynamic key topology network. The network structure is not fixed and can be adjusted with changes in time, events or security threats.

[0064] S1-3: Generate the multi-level keys required for encryption according to preset rules (such as node roles and hierarchical relationships), and store the multi-level keys in the nodes corresponding to the dynamic key topology network, including the following steps:

[0065] S1-3-1: According to preset rules, a root key is generated in the main chain of the supply chain blockchain network and stored in the key management unit of the node corresponding to the dynamic key topology network;

[0066] S1-3-2: According to preset rules, in each regional consortium chain of the supply chain blockchain network, an intermediate key is derived from the root key and stored in the key management unit of the node corresponding to the dynamic key topology network.

[0067] S1-3-3: According to preset rules, among the participating entities in the supply chain blockchain network, leaf node keys are generated based on their permissions and roles, combined with intermediate keys, and stored in the key management unit of the node corresponding to the dynamic key topology network.

[0068] The key is distributed through a secure channel in the topology network. Only nodes that meet the policy requirements can obtain the corresponding key. The key distribution path and the holder are also dynamic.

[0069] S1-4: Using a key entropy evaluation algorithm, a time- and event-triggered key rotation mechanism is set up for each node in the dynamic key topology network. Keys are rotated not only according to a preset time period, but also triggered by specific events (such as detecting potential security threats, completing critical business operations, or changing node roles) to ensure key freshness and reduce the risk of key leakage. This includes rotating the root key according to a preset strategy or risk assessment results, rotating intermediate keys triggered by preset events (e.g., security events or changes in partners), and using time factors for auxiliary judgment. Leaf node keys are dynamic keys, generated in real time each time an electronic warehouse receipt is generated or accessed, and a key entropy evaluation algorithm is introduced to dynamically adjust the key strength. Evaluation factors include the old key status, current time, node behavior patterns, and external risk indicators.

[0070] The formula is:

[0071]

[0072] In the formula, For rotating the leaf node key; This is the function for evaluating the key entropy value; The hash or state evaluation of the old leaf node key; This is the current timestamp; Scoring of node behavior patterns (such as operation frequency and abnormal behavior detection); External risk assessment values ​​(such as cyberattack alerts, compliance risks);

[0073] S2: Using a dynamic key topology network, multi-level encryption is applied to the real-time electronic warehouse receipt to obtain the multi-level encrypted real-time electronic warehouse receipt, and a real-time interaction request is generated, including the following steps:

[0074] S2-1: The first participating entity using the dynamic key topology network obtains real-time electronic warehouse receipts in plaintext; the real-time electronic warehouse receipts include warehouse receipt entity information, commodity information, quantity, status, transaction history, etc.

[0075] S2-2: Based on the leaf node key, the real-time electronic warehouse receipt is encrypted at the first level to obtain the real-time electronic warehouse receipt after the first level of encryption. This level of encryption ensures the data security of a single entity.

[0076] S2-3: Based on the intermediate key, the real-time electronic warehouse receipt after the first level of encryption is encrypted at the second level to obtain the real-time electronic warehouse receipt after the second level of encryption. This level of encryption protects the data security within the regional consortium blockchain.

[0077] S2-4: Based on the leaf node key, perform a third level of encryption on the second-level encrypted real-time electronic warehouse receipt to obtain a multi-level encrypted real-time electronic warehouse receipt, which is stored on the main chain to provide the highest level of security.

[0078] S2-5: Based on the business requirements of real-time electronic warehouse receipts after multi-level encryption, the first participating entity generates the corresponding real-time interaction request; the real-time interaction request includes content such as operation type, target warehouse receipt identifier, operator information, required permissions, and target chain information generated according to business requirements (such as uploading, storage, etc.);

[0079] S3: Deploy smart contracts in the dynamic key topology network and use smart contracts to verify the permissions of real-time interaction requests. If the permission verification is successful, directly calculate the real-time hash value of the multi-level encrypted real-time electronic warehouse receipt and store it, including the following steps:

[0080] S3-1: Based on the business logic of electronic warehouse receipts and the roles and responsibilities of the participants, write smart contracts and bind dynamic permission models to the smart contracts;

[0081] The contract defines the mapping relationship between operation permissions (such as creating, viewing, transferring, and destroying warehouse receipts) and permission conditions (such as time limits, event triggers, and role matching);

[0082] Dynamic permission models include:

[0083] Subject Dimension: Define the participating entities (such as manufacturers, warehouse providers, logistics providers, financial institutions, regulatory agencies, etc.) and their identifiers;

[0084] Object dimension: Define electronic warehouse receipts and their metadata (such as receipt number, product name, quantity, status, etc.);

[0085] Operational dimension: Define the types of operations that are allowed to be performed (such as create, view, transfer, pledge, unpledge, lock, unlock, etc.);

[0086] Context dimension: Define the environment or conditions under which the operation occurs (such as a specific time window, a specific business process stage, a specific geographical location, or the fulfillment of specific conditions such as credit rating).

[0087] Permission configurations can be stored on the blockchain or in a secure permission management system and can be dynamically updated; the dynamic permission model defines the access permissions of different roles, entities or addresses to specific resources or operations under specific conditions;

[0088] S3-2: Deploy smart contracts at the corresponding locations in the dynamic key topology network based on the nature of the real-time interactive request for uploading real-time electronic warehouse receipts and the region to which the participating entities belong;

[0089] Real-time interaction requests include the requester identifier, target warehouse receipt identifier, request operation type, current timestamp, necessary business parameters, and possible accompanying signatures or credentials;

[0090] S3-3: Using smart contracts, receive real-time interaction requests and use a dynamic permission model to verify the permissions of the first participating entity corresponding to the real-time interaction request, including the following steps:

[0091] S3-3-1: Using smart contracts, receive real-time interaction requests and parse the real-time subject information (such as whether the requester holds the currently valid key fragment required to execute the operation, whether the key holding relationship meets the operation requirements, etc.), real-time object information (such as whether the target party holds the currently valid key fragment required to execute the operation, whether the key holding relationship meets the operation requirements, etc.), real-time operation information (store real-time electronic warehouse receipts), and real-time context information (such as whether the current time is within the allowed window, whether the warehouse receipt status allows the operation, etc.).

[0092] S3-3-2: Using a dynamic permission model, the real-time subject information, real-time object information, real-time operation information, and real-time context information of the first participating entity are comprehensively evaluated to obtain the first real-time comprehensive evaluation result;

[0093] S3-3-3: If the first real-time comprehensive evaluation result is qualified, the output permission verification is passed; otherwise, the output permission verification is not passed, and the time-event dual-trigger key rotation mechanism of the dynamic key topology network is triggered to perform multi-level key updates.

[0094] S3-4: If the authorization verification is successful, the real-time electronic warehouse receipt after multi-level encryption will be directly calculated to obtain the real-time hash value and stored in the smart contract of the dynamic key topology network (such as consortium chain A).

[0095] The hash value generated by the contract will be used for subsequent cross-chain zero-knowledge verification to prove that a specific operation (or its result characteristics) was performed on the encrypted data under the permission conditions.

[0096] S4: Obtain the real-time electronic warehouse receipt operation request, use a zero-knowledge proof mechanism to perform cross-chain verification on the corresponding target real-time hash value, and if the cross-chain verification passes, execute the real-time electronic warehouse receipt operation request, including the following steps:

[0097] S4-1: Obtain the real-time electronic warehouse receipt operation requirements of the second participating entity in the dynamic key topology network, and generate the corresponding real-time cross-chain verification request including the source chain and the target chain;

[0098] Real-time cross-chain verification requests include information such as operation type, target warehouse receipt identifier, operator information, required permissions, and target chain information, generated based on real-time electronic warehouse receipt operation requirements (such as querying warehouse receipt status or transferring warehouse receipt ownership).

[0099] S4-2: Using the source chain's smart contract, receive real-time cross-chain verification requests (e.g., needing to confirm the status or operation result of a warehouse receipt on another chain, or a financial institution on the main chain needing to verify the authenticity of a warehouse receipt on the regional consortium chain, but not obtaining its complete content), and use a dynamic permission model to perform permission verification on the second participating entity corresponding to the real-time cross-chain verification request, including the following steps:

[0100] S4-2-1: Use smart contracts to receive real-time cross-chain verification requests and parse the real-time subject information, real-time object information, real-time operation information and real-time context information of the second participating entity corresponding to the real-time cross-chain verification request.

[0101] S4-2-2: Using a dynamic permission model, the real-time subject information, real-time object information, real-time operation information, and real-time context information of the second participating entity are comprehensively evaluated to obtain the second real-time comprehensive evaluation result;

[0102] S4-2-3: If the second real-time comprehensive evaluation result is qualified, the output permission verification is passed; otherwise, the output permission verification is not passed, and the time-event dual-trigger key rotation mechanism of the dynamic key topology network is triggered to perform multi-level key updates.

[0103] S4-3: If the authorization verification passes, then based on the real-time cross-chain verification request, match the corresponding target real-time hash value and perform cross-chain verification using a zero-knowledge proof mechanism, including the following steps:

[0104] S4-3-1: If the authorization verification is successful, then match the corresponding target real-time hash value in the dynamic key topology network according to the real-time cross-chain verification request;

[0105] S4-3-2: Based on the real-time cross-chain verification request and the target real-time hash value, determine the real-time proof content (e.g., under certain permission conditions, operation Y was performed on warehouse receipt X and the target real-time hash value Z was obtained), select a real-time zero-knowledge proof scheme, ensure that it meets the performance and security requirements, and generate real-time zero-knowledge proof and real-time verification data.

[0106] Using the target real-time hash value Z, combined with the warehouse receipt's metadata, the details of operation Y, and evidence of successful authorization verification by the multi-dimensional authorization model (which may include a zero-knowledge digest of the relevant key holding relationships in the key topology), a zero-knowledge proof is constructed. This proof needs to demonstrate the legitimacy of the target real-time hash value Z and its association with the warehouse receipt's state to the target chain, without revealing the specific content of the hash value Z, the complete information of the operation details, or the identity of the specific key holder. A real-time zero-knowledge proof π and its corresponding real-time verification data (such as the proof key pk) are then generated using a zero-knowledge proof mechanism.

[0107] S4-3-3: Based on real-time cross-chain verification requests, real-time zero-knowledge proofs, and real-time verification data, construct real-time cross-chain information and send it to the target chain of the dynamic key topology network through a preset cross-chain communication mechanism (such as based on oracles, relay nodes, hash time lock contracts, or other cross-chain protocols); the sending may occur on the main chain or a regional consortium chain, depending on the location of the smart contract deployment and the design of the cross-chain communication protocol;

[0108] Real-time cross-chain information includes the target chain identifier, target recipient address, warehouse receipt identifier, operation type, target real-time hash value Z, real-time zero-knowledge proof π, real-time verification data (such as pk), and possible time sequence or sequence number information for replay protection.

[0109] S4-3-4: Use the target chain to receive real-time cross-chain information and parse out the corresponding real-time hash value of the target after restoration, the real-time zero-knowledge proof after restoration, and the real-time verification data after restoration.

[0110] S4-3-5: Using the target chain, perform zero-knowledge verification on the restored real-time zero-knowledge proof based on the restored real-time verification data and pre-known or computable partial information (e.g., hash of warehouse unit data, hash of operation type, public reference strings such as permission model rule summary), and obtain the real-time zero-knowledge verification result; prove that π was indeed generated by an entity that knows secret information (such as the correct hash calculation path, permission satisfaction conditions, key topology relationship, etc.);

[0111] S4-3-6: If the real-time zero-knowledge verification result is qualified, the target chain confirms the validity of the warehouse receipt operation and its hash value on the original chain without needing to know the specific details or sensitive information of the operation. Then the cross-chain verification is output as passed. Otherwise, the cross-chain verification is output as failed, and the time-event dual-trigger key rotation mechanism of the dynamic key topology network is triggered.

[0112] S4-4: If the cross-chain verification passes, execute the real-time electronic warehouse receipt operation request for the target real-time hash value and return the execution result to the second participating entity.

[0113] Example 2:

[0114] like Figure 2 As shown, this embodiment provides a multi-level encryption system for electronic warehouse receipts in the supply chain based on blockchain and smart contracts. The system is set up on a supply chain blockchain network, which includes a main chain and at least one regional consortium chain. The supply chain blockchain network includes several participating entities. The system includes a multi-level encryption deployment unit, a multi-level encryption execution unit, an electronic warehouse receipt storage unit, and an electronic warehouse receipt operation unit connected in sequence.

[0115] A multi-level encryption deployment unit is used to deploy a dynamic key topology network in the supply chain blockchain network and to set up a key rotation mechanism for the dynamic key topology network.

[0116] The multi-level encryption execution unit is used to perform multi-level encryption on real-time electronic warehouse receipts using a dynamic key topology network, obtain multi-level encrypted real-time electronic warehouse receipts, and generate real-time interactive requests.

[0117] The electronic warehouse receipt storage unit is used to deploy smart contracts in a dynamic key topology network and use smart contracts to verify the permissions of real-time interaction requests. If the permission verification is successful, the real-time hash value is directly calculated on the multi-level encrypted real-time electronic warehouse receipt and stored.

[0118] The electronic warehouse receipt operation unit is used to obtain real-time electronic warehouse receipt operation requirements. It uses a zero-knowledge proof mechanism to perform cross-chain verification on the corresponding target real-time hash value. If the cross-chain verification is successful, the real-time electronic warehouse receipt operation requirement is executed.

[0119] This invention provides a multi-level encryption method and system for electronic warehouse receipts in the supply chain using blockchain and smart contracts. A dynamic key topology network combined with a time-event dual-trigger key rotation mechanism significantly improves key resistance to attacks and lifecycle management capabilities, reduces the risk of key leakage, and enhances key security. Based on a multi-dimensional dynamic permission model encompassing subject, object, operation, and context, it can flexibly adapt to the complex and ever-changing business rules and participant roles in the supply chain, achieving more granular access control. Multi-level encryption protects the confidentiality of warehouse receipt data, while real-time hash value calculation and storage ensure data integrity. Cross-chain zero-knowledge proofs verify the validity of cross-chain operations without disclosing sensitive operational details, protecting business privacy and improving data security. The cross-chain zero-knowledge verification mechanism provides a trusted foundation for collaboration between different blockchain networks, solving cross-chain trust issues and promoting smooth integration of various links in the supply chain. The introduction of smart contracts automates permission verification, hash calculation, cross-chain verification, and operation execution, while the immutability of the blockchain ensures transparency and traceability of the process.

[0120] This invention is not limited to the optional embodiments described above, and anyone can derive other various forms of products based on the inspiration of this invention. The specific embodiments described above should not be construed as limiting the scope of protection of this invention; the scope of protection of this invention should be determined by the claims, and the specification can be used to interpret the claims.

Claims

1. A multi-level encryption method for electronic warehouse receipts in the supply chain using blockchain and smart contracts, characterized in that: Comprise the following steps: Deploy a dynamic key topology network in the supply chain blockchain network, and set a key rotation mechanism for the dynamic key topology network; Use the dynamic key topology network to perform multi-level encryption on the real-time electronic warehouse warrant, obtain the multi-level encrypted real-time electronic warehouse warrant, and generate a real-time interaction request; Deploy a smart contract in the dynamic key topology network, and use the smart contract to perform permission verification on the real-time interaction request. If the permission verification is passed, directly calculate the multi-level encrypted real-time electronic warehouse warrant to obtain a real-time hash value, and store it, comprising the following steps: According to the business logic of the electronic warehouse warrant and the roles and responsibilities of the participants, write a smart contract and bind a dynamic permission model in the smart contract; According to the nature of the real-time interaction request and the region to which the participating entity belongs, deploy a smart contract in the corresponding position in the dynamic key topology network; Use the smart contract to receive the real-time interaction request, and use the dynamic permission model to perform permission verification on the first participating entity corresponding to the real-time interaction request; If the permission verification is passed, directly calculate the multi-level encrypted real-time electronic warehouse warrant to obtain a real-time hash value, and store it in the dynamic key topology network; Obtain the real-time electronic warehouse warrant operation demand, use the zero-knowledge proof mechanism to perform cross-chain verification on the corresponding target real-time hash value, and if the cross-chain verification is passed, execute the real-time electronic warehouse warrant operation demand comprising the following steps: Obtain the real-time electronic warehouse warrant operation demand of the second participating entity in the dynamic key topology network, and generate a corresponding real-time cross-chain verification request including the source chain and the target chain; Use the smart contract of the source chain to receive the real-time cross-chain verification request, and use the dynamic permission model to perform permission verification on the second participating entity corresponding to the real-time cross-chain verification request; If the permission verification is passed, match the corresponding target real-time hash value according to the real-time cross-chain verification request, and use the zero-knowledge proof mechanism to perform cross-chain verification, comprising the following steps: If the permission verification is passed, match the corresponding target real-time hash value in the dynamic key topology network according to the real-time cross-chain verification request; Determine the real-time proof content according to the real-time cross-chain verification request and the target real-time hash value, select a real-time zero-knowledge proof scheme, and generate a real-time zero-knowledge proof and real-time verification data; According to the real-time cross-chain verification request, the real-time zero-knowledge proof, and the real-time verification data, construct real-time cross-chain information, and send it to the target chain of the dynamic key topology network; Use the target chain to receive the real-time cross-chain information, and parse out the corresponding restored target real-time hash value, restored real-time zero-knowledge proof, and restored real-time verification data; Use the target chain to perform zero-knowledge verification on the restored real-time zero-knowledge proof according to the restored real-time verification data, and obtain a real-time zero-knowledge verification result; If the real-time zero-knowledge verification result is qualified, output that the cross-chain verification is passed, otherwise, output that the cross-chain verification is not passed, and trigger the time-event double-triggered key rotation mechanism of the dynamic key topology network; If the cross-chain verification is passed, execute the real-time electronic warehouse warrant operation demand on the target real-time hash value, and return the execution result to the second participating entity.

2. The blockchain and smart contract based multi-level encryption method for supply chain electronic warehouse receipts according to claim 1, characterized in that: Deploy a dynamic key topology network in the supply chain blockchain network, and set a key rotation mechanism for the dynamic key topology network, including the following steps: Deploy a key management unit in a plurality of nodes of the supply chain blockchain network to form a key node set; According to the preset strategy and the real-time network state, the connection relationship between the key nodes is dynamically established to obtain the dynamic key topology network; According to the preset rule, the multi-level key required for encryption is generated, and the multi-level key is stored in the node corresponding to the dynamic key topology network; Using a key entropy value evaluation algorithm, a time-event double-triggered key rotation mechanism is set for each node of the dynamic key topology network.

3. The multi-level encryption method of blockchain and smart contract-based supply chain electronic warehouse receipt according to claim 2, characterized in that: According to the preset rule, the multi-level key required for encryption is generated, and the multi-level key is stored in the node corresponding to the dynamic key topology network, including the following steps: According to the preset rule, a root key is generated in the main chain of the supply chain blockchain network and stored in the key management unit of the node corresponding to the dynamic key topology network; According to the preset rule, in each regional alliance chain of the supply chain blockchain network, an intermediate key is derived based on the root key and stored in the key management unit of the node corresponding to the dynamic key topology network; According to the preset rule, in the participating entities of the supply chain blockchain network, according to their permissions and roles, the leaf node key is generated in combination with the intermediate key and stored in the key management unit of the node corresponding to the dynamic key topology network.

4. The multi-level encryption method of blockchain and smart contract-based supply chain electronic warehouse receipt according to claim 3, characterized in that: Using the dynamic key topology network, the real-time electronic warehouse order is multi-level encrypted to obtain a multi-level encrypted real-time electronic warehouse order, and a real-time interaction request is generated, including the following steps: Using the first participating entity of the dynamic key topology network, the real-time electronic warehouse order of the plaintext data is obtained; According to the leaf node key, the real-time electronic warehouse order is first-level encrypted to obtain a first-level encrypted real-time electronic warehouse order; According to the intermediate key, the first-level encrypted real-time electronic warehouse order is second-level encrypted to obtain a second-level encrypted real-time electronic warehouse order; According to the leaf node key, the second-level encrypted real-time electronic warehouse order is third-level encrypted to obtain a multi-level encrypted real-time electronic warehouse order; According to the business requirements of the multi-level encrypted real-time electronic warehouse order, the first participating entity is used to generate a corresponding real-time interaction request.

5. The multi-level encryption method of blockchain and smart contract-based supply chain electronic warehouse receipt according to claim 4, characterized in that: The dynamic permission model includes subject dimension, object dimension, operation dimension, and context dimension.

6. The multi-level encryption method of blockchain and smart contract-based supply chain electronic warehouse receipt according to claim 5, characterized in that: Using the smart contract, the real-time interaction request / real-time cross-chain verification request is received, and the dynamic permission model is used to verify the permissions of the first / second participating entity corresponding to the real-time interaction request / real-time cross-chain verification request, including the following steps: Using the smart contract, the real-time interaction request / real-time cross-chain verification request is received, and the real-time subject information, real-time object information, real-time operation information, and real-time context information of the first / second participating entity corresponding to the real-time interaction request / real-time cross-chain verification request are parsed; Using the dynamic permission model, the real-time subject information, real-time object information, real-time operation information, and real-time context information of the first / second participating entity are comprehensively evaluated to obtain a real-time comprehensive evaluation result; If the real-time comprehensive evaluation result is qualified, the permission verification is output as passed, otherwise, the permission verification is output as failed, and a time-event double-triggered key rotation mechanism of the dynamic key topology network is triggered to perform multi-level key update.

7. A blockchain and smart contract based multi-level encryption system for supply chain electronic warehouse receipt, for implementing the multi-level encryption method for supply chain electronic warehouse receipt according to any one of claims 1-6, characterized in that: The system is arranged in a supply chain blockchain network, the supply chain blockchain network includes a main chain and at least one regional alliance chain, and the supply chain blockchain network includes a plurality of participating entities, and the system includes a plurality of levels of encryption deployment units, a plurality of levels of encryption execution units, an electronic warehouse receipt storage unit and an electronic warehouse receipt operation unit connected in sequence.

Citation Information

Patent Citations

  • Warehouse receipt verification method based on block chain and zero knowledge proof

    CN109858852A

  • Relay chain-based privacy disclosure-free cross-chain method

    CN116722998A

  • Secure backup and recovery method and system for medical data

    CN120256208A