Blockchain-based logistics data management method and system

By receiving access requests, obtaining the on-chain trusted state of logistics business objects, determining the data access and provision status, and updating the on-chain trusted state when the status changes, the problem of low efficiency in on-chain and off-chain data management is solved, and the accuracy and security of logistics data management are improved.

CN123180867APending Publication Date: 2026-11-27SHENZHEN HANRUN INT FREIGHT FORWARDING AGENCY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611442626.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-17
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In the data management approach that combines on-chain and off-chain methods, logistics data management is inefficient and lacks a unified state association mechanism, resulting in low efficiency in data access control and trust verification.

Method used

By receiving access requests, the current on-chain trusted state of the logistics business object is obtained, the data access state and provision state are determined, and the logistics business data is provided after authorization and trustworthiness verification are passed. At the same time, the on-chain trusted state is updated to adjust the data access permissions and provision methods in a synchronized manner, thus forming a correspondence between the on-chain trusted state and the off-chain logistics data.

Benefits of technology

It has improved the accuracy and security of logistics data management, dynamically adjusted data access permissions and delivery methods, and improved the efficiency of cross-border data query.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180867A_ABST
    Figure CN123180867A_ABST
Patent Text Reader

Abstract

The application discloses a logistics data management method and system based on a block chain, and relates to the technical field of block chains; a data access request initiated by an access object for logistics business data is received, and a corresponding logistics business object is determined according to the data access request; a current on-chain trusted state corresponding to the logistics business object is obtained from the block chain; a data access state and a data providing state corresponding to the logistics business object are determined according to the current on-chain trusted state; the data access request is authorized and verified according to the data access state, and the logistics business data stored outside the block chain is verified for trustworthiness according to the data trusted state corresponding to the current on-chain trusted state; if the authorization verification and the trustworthiness verification are both passed, the logistics business data is obtained from the corresponding data providing node according to the data providing state, and the logistics business data corresponding to the data access state is provided to the access object according to the data providing mode; and therefore, the management efficiency of logistics data is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of blockchain technology, specifically relating to a blockchain-based logistics data management method and system. Background Technology

[0002] With the development of cross-border e-commerce, international trade, and global supply chains, logistics operations have gradually formed a multi-stage business process. Current logistics data management methods typically employ databases, data centers, or multiple business systems to store and manage logistics data separately, and achieve data access and sharing between different business entities through interfaces or data exchange methods. Because different business entities operate at different stages of the logistics process, are located in different regions, and have different data management requirements, logistics data for the same logistics object has different access permissions and data provision requirements under different logistics business states.

[0003] In existing technologies, to achieve trusted management of logistics data, blockchain is used to record logistics data or related information, and access control mechanisms are used to restrict data access by different business entities. However, actual logistics business data is typically characterized by large volume, high frequency of generation, and the need for storage according to different regions. Directly writing large amounts of logistics business data into the blockchain would increase the data storage and processing burden on the blockchain. Therefore, in practical applications, it is usually necessary to store logistics business data in a data storage system outside the blockchain, and record status or summary information related to the logistics data in the blockchain.

[0004] When adopting a data management approach that combines on-chain and off-chain methods, the state information in the blockchain and the logistics business data actually stored outside the blockchain can easily form independent management relationships. Existing data access control usually makes judgments based on pre-configured users, roles, or data permissions, while data trustworthiness verification usually performs integrity checks on the data itself, and the data provision method is determined separately based on the region, data type, or cross-border rules of the business entity. There is a lack of a unified state association mechanism between these three and the logistics business status, which ultimately leads to low efficiency in logistics data management. Summary of the Invention

[0005] The purpose of this invention is to solve the problem of low efficiency in logistics data management when using a combination of on-chain and off-chain data management methods, and to propose a logistics data management method and system based on blockchain.

[0006] In a first aspect of this invention, a blockchain-based logistics data management method is proposed, the method comprising: Receive data access requests initiated by the access object for logistics business data, and determine the corresponding logistics business object based on the data access requests; Obtain the current on-chain trusted state corresponding to the logistics business object from the blockchain; The data access status and data provision status of the logistics business object are determined based on the current on-chain trusted status. The data access request is authorized and verified according to the data access status, and the trustworthiness of the logistics business data stored outside the blockchain is verified according to the data trustworthiness status corresponding to the current on-chain trustworthiness status. If both the authorization verification and the trustworthiness verification are passed, the logistics business data is obtained from the corresponding data provider node according to the data provision status, and the logistics business data corresponding to the data access status is provided to the access object according to the data provision method. When the business status of the logistics business object changes, the corresponding on-chain trusted status is updated according to the changed business status, so that the updated on-chain trusted status synchronously changes the data access status and data provision status of the logistics business object.

[0007] Optionally, before receiving the data access request, the method further includes: Obtain logistics business data and logistics business events corresponding to the logistics object, and determine the logistics business status of the logistics object based on the logistics business data and logistics business events; The status parameters corresponding to the logistics object are determined based on the logistics business status; the status parameters include data management status, data access status, data trust status, and data provision status. Based on state parameters, the on-chain trusted state corresponding to the logistics object is determined according to a preset state association relationship; The on-chain trusted state is written into the blockchain, and the corresponding logistics data is stored in a data storage node outside the blockchain, forming a data storage relationship between the on-chain trusted state and the off-chain logistics data.

[0008] By determining the logistics business status based on logistics business data and events, and then determining the data management status, data access status, data trust status, and data provision status based on the logistics business status, a corresponding on-chain trust status is formed. This establishes a link between the logistics business status and the access permissions, trustworthiness, and provision methods of logistics data. When the logistics business status changes, the corresponding data access permissions can be adjusted synchronously and the on-chain trust status can be updated, thereby enabling dynamic changes in data access permissions at different stages of the logistics business and improving the accuracy and security of logistics data management.

[0009] Optionally, the logistics operation status can be determined based on logistics operation data and logistics operation events, including: Acquire at least one of the following events related to the business process of a logistics object: order events, inbound events, warehousing events, outbound events, transportation events, customs declaration events, cross-border transportation events, overseas warehouse inbound events, and delivery events; The current logistics business status of the logistics object is determined according to the order of occurrence of the logistics business events, and the logistics business status is written into the status information corresponding to the logistics object.

[0010] Optionally, based on state parameters, the on-chain trusted state corresponding to the logistics object is determined according to a preset state association relationship, including: Based on the data access status, corresponding access permission data is generated, and the access permission data is hashed to obtain a data access status summary. Generate a data trust status summary based on the data integrity verification structure corresponding to the data trust status. A data management status summary is generated based on the data management status, and a data provision status summary is generated based on the data provision status. Obtain the object identifier corresponding to the logistics object and the status version number corresponding to the current logistics business status; According to a preset arrangement order, the object identifier, the data management status summary, the data access status summary, the data trust status summary, the data provision status summary, and the status version number are combined, and the combination result is hashed to generate an on-chain trust status corresponding to the logistics object.

[0011] By generating corresponding status summaries for data management status, data access status, data trust status, and data provision status, and combining these summaries with logistics object identifiers and logistics business status version numbers for unified hash calculation, an on-chain trust status corresponding to a specific logistics object and business status version is formed. This allows multiple status information to be solidified on-chain in a unified data format. When any status or logistics business status changes, it can be identified and updated by recalculating the on-chain trust status, thereby improving the consistency, integrity, and traceability of logistics data status management.

[0012] Optionally, generating a data trust status digest based on the data integrity verification structure corresponding to the data trust status includes: Multiple logistics data resources stored in data storage nodes outside the blockchain are hashed to form multiple leaf nodes; Construct a Merkle tree based on multiple leaf nodes, and calculate the corresponding Merkle root based on the Merkle tree; The Merkle root is used as a data trust state summary.

[0013] By constructing a Merkle tree from multiple logistics data resources stored externally to the blockchain, and using the Merkle root as a data trust state summary to participate in the generation of on-chain trust state, the on-chain trust state can characterize the integrity of the corresponding off-chain logistics data. During data access, the hash value of the off-chain logistics data is recalculated and a Merkle proof is generated, which is then verified and compared with the Merkle root stored in the blockchain. This enables timely identification of abnormal changes in off-chain logistics data, thereby improving the integrity and trustworthiness of external logistics data on the blockchain.

[0014] Optionally, writing the on-chain trusted state to the blockchain and storing the corresponding logistics data on a data storage node outside the blockchain includes: Write the on-chain trusted state into the blockchain, and determine the corresponding data storage node from the candidate data storage nodes outside the blockchain based on the data region, data sensitivity and logistics business status of the logistics data corresponding to the on-chain trusted state. The logistics data is encrypted, and the resulting encrypted logistics data is stored in the determined data storage node, and corresponding data index information and data integrity verification information are generated. The data index information and data integrity verification information are associated with the on-chain trusted state to establish a correspondence between the on-chain trusted state and the encrypted logistics data stored outside the blockchain.

[0015] By determining external data storage nodes based on the region, sensitivity, and operational status of logistics data, and encrypting the logistics data before storage, and by associating data index information and integrity verification information with the trusted state on the blockchain, actual logistics data can be correlated with the trusted state on the blockchain without being directly stored there. This reduces the data storage burden on the blockchain and improves the security, traceability, and trusted management capabilities of logistics data.

[0016] Optionally, when the status of logistics operations changes, including: Retrieve new logistics business events that indicate changes in the business status of logistics objects; Based on the newly added logistics business event, determine the changed logistics business status, and re-determine the data management status, data access status, data trust status, and data provision status corresponding to the changed logistics business status. Update the permission status digest based on the redefined data access status, update the data trust status digest based on the redefined data trust status, and update the data provision status based on the redefined data provision status. The updated logistics business status, permission status summary, data trust status summary, and data provision status are re-associated to form a new on-chain trust status. This new on-chain trust status is then written into the blockchain so that subsequent data access requests can be authorized, data trustworthiness verified, and cross-border data queries can be performed based on the new on-chain trust status.

[0017] By determining the changed logistics business status based on new logistics business events, and simultaneously re-determining the data access status, data trust status, and data provision status, data access permissions, data trust verification, and data provision methods can be dynamically adjusted according to the logistics business status. At the same time, the updated status parameters are re-associated to form a new on-chain trust status and written into the blockchain, creating a unified status association mechanism between the logistics business status and data access control, data trust verification, and data provision methods. This reduces inconsistencies between different management mechanisms and improves the dynamism, accuracy, and efficiency of cross-border data query in logistics data management.

[0018] In a second aspect of this invention, a blockchain-based logistics data management system is proposed, comprising: The logistics business object determination module is used to receive data access requests initiated by the access object for logistics business data, and determine the corresponding logistics business object based on the data access request. The first state determination module is used to obtain the current on-chain trusted state corresponding to the logistics business object from the blockchain. The second state determination module is used to determine the data access state and data provision state corresponding to the logistics business object based on the current on-chain trusted state. The verification module is used to authorize the data access request according to the data access status, and to verify the trustworthiness of the logistics business data stored outside the blockchain according to the data trustworthiness status corresponding to the current on-chain trustworthiness status. The data providing module is used to obtain the logistics business data from the corresponding data providing node according to the data providing status after both the authorization verification and the trust verification are passed, and to provide the logistics business data corresponding to the data access status to the access object according to the data providing method. The data update module is used to update the corresponding on-chain trusted state according to the changed business state when the business state of the logistics business object changes, so that the updated on-chain trusted state synchronously changes the data access state and data provision state of the logistics business object.

[0019] The beneficial effects of this invention are: By linking the logistics business status with the data access status, data trust status, and data provision status to form an on-chain trust status, data access authorization, data trustworthiness verification, and data provision are managed based on a unified trust status. When the logistics business status changes, the on-chain trust status is updated synchronously, allowing data access permissions and data provision methods to be dynamically adjusted according to the business status, thereby improving the efficiency of logistics data management. Attached Figure Description

[0020] The invention will now be further described with reference to the accompanying drawings.

[0021] Figure 1 A flowchart illustrating a blockchain-based logistics data management method provided in an embodiment of the present invention; Figure 2 A flowchart illustrating a blockchain-based logistics data storage method provided in this embodiment of the invention. Detailed Implementation

[0022] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.

[0023] It should be noted that all formula calculations in the scheme are purely numerical calculations.

[0024] Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0025] This invention provides a blockchain-based logistics data management method. See also... Figure 1 The method includes the following steps: S101, Receive the data access request initiated by the access object for logistics business data, and determine the corresponding logistics business object according to the data access request; S102, Obtain the current on-chain trusted state of the logistics business object from the blockchain; S103, determine the data access status and data provision status of the logistics business object based on the current on-chain trusted status; S104: Authorize and verify the data access request based on the data access status, and verify the trustworthiness of the logistics business data stored outside the blockchain based on the data trustworthiness status corresponding to the current on-chain trustworthiness status. S105. If both authorization verification and trustworthiness verification are passed, logistics business data is obtained from the corresponding data provider node according to the data provision status, and logistics business data corresponding to the data access status is provided to the access object according to the data provision method. S106 When the business status of a logistics business object changes, the corresponding on-chain trusted status is updated according to the changed business status, so that the updated on-chain trusted status synchronously changes the data access status and data provision status of the logistics business object.

[0026] In one implementation, the logistics data management method is applied to a logistics data management system comprised of a blockchain network, off-chain data storage nodes, data providing nodes, and access objects. The blockchain network stores the trusted on-chain state of the logistics object, the off-chain data storage nodes store actual logistics business data, and the data providing nodes provide corresponding logistics business data to the access objects based on the logistics business state.

[0027] In one implementation, when an access object needs to obtain logistics business data corresponding to a certain logistics object, it sends a data access request to the logistics data management system. The data access request may include information such as the access object identifier, the access object role, the logistics object identifier, the data type of the logistics data to be accessed, and the access area. Upon receiving the data access request, the logistics data management system determines the corresponding logistics business object based on the logistics object identifier carried within, and uses this logistics business object as the object for subsequent status queries and data access control. After determining the logistics business object, the logistics data management system queries the corresponding on-chain trusted state from the blockchain network based on the object identifier of the logistics business object. The on-chain trusted state reflects the status information related to logistics data management under the current logistics business state, and it is at least associated with the data access state, data trusted state, and data provision state. By obtaining the on-chain trusted state from the blockchain, it avoids directly relying on the permission information stored locally by the access object for data access judgment, thus enabling subsequent data access to be based on the current state recorded in the blockchain.

[0028] In one implementation, the logistics data management system determines the current data access status and data provision status of a logistics business object from the on-chain trusted state. The data access status characterizes whether the accessing object has permission to access the corresponding logistics business data under the current logistics business state, including allowing access, denying access, allowing access to only certain fields, allowing access to only specific roles, allowing access to only specific regions, and allowing access to only specific business stages. The data provision status characterizes where and how logistics business data should be provided to the accessing object when the access permissions are satisfied, including the data providing node, data providing region, data providing method, data return range, and whether cross-border queries are allowed. After determining the data access status, the system matches the data access status corresponding to the on-chain trusted state with the information carried in the data access request, such as the accessing object identifier, accessing object role, logistics object identifier, logistics data type, and data region. When the access conditions corresponding to a data access request meet the access permissions limited by the current data access state, the authorization verification is deemed successful; otherwise, the authorization verification is deemed unsuccessful, and the data access request is rejected. After successful authorization verification, the trustworthiness of the off-chain logistics business data is further verified based on the data trustworthiness status recorded in the on-chain trustworthiness status. Specifically, the off-chain data storage node and data resources corresponding to the logistics business data are determined based on the data index information associated with the on-chain trustworthiness status, and the logistics business data to be verified is obtained from the data storage node. A hash calculation is performed on the obtained logistics business data, and the hash calculation result is verified based on the data integrity verification structure recorded in the data trustworthiness status to determine whether any abnormal changes have occurred to the off-chain logistics business data.

[0029] In one implementation, if either the authorization verification or the trust verification fails, the query for the access object is terminated.

[0030] In one implementation, when both authorization verification and trustworthiness verification pass, a data provider node is determined based on the data provision status corresponding to the on-chain trustworthiness state, and the corresponding logistics business data is obtained from the determined data provider node. After the data provider node obtains the logistics business data, it returns the logistics business data to the accessing object according to the data provision method determined by the data provision status, ensuring that the accessing object can only obtain data content corresponding to the current data access status. Thus, in a single logistics data access process, by first obtaining the on-chain trustworthiness state, then sequentially performing access authorization verification and off-chain data trustworthiness verification, and obtaining data based on the data provision status after successful verification, data access permissions, off-chain data trustworthiness, and data provision methods are all constrained by the same on-chain trustworthiness state. When the logistics business status corresponding to the logistics business object changes, the logistics data management system re-determines the data access status, data trustworthiness state, and data provision status corresponding to the changed logistics business status, and generates a new on-chain trustworthiness state. Subsequent data access requests read the new on-chain trustworthiness state, thereby enabling data access permissions and data provision methods to be adjusted synchronously with changes in the logistics business status.

[0031] In one implementation, the logistics business status is determined based on logistics business data and logistics business events, including: obtaining at least one of the following events in the business process of the logistics object: order events, inbound events, warehousing events, outbound events, transportation events, customs declaration events, cross-border transportation events, overseas warehouse inbound events, and delivery events; determining the current logistics business status of the logistics object according to the order of occurrence of the logistics business events, and writing the logistics business status into the status information corresponding to the logistics object.

[0032] In one implementation, when the logistics business status changes, the process includes: acquiring a new logistics business event indicating a change in the logistics object's business status; determining the changed logistics business status based on the new logistics business event, and re-determining the data management status, data access status, data trust status, and data provision status corresponding to the changed logistics business status; updating the permission status digest based on the re-determined data access status, updating the data trust status digest based on the re-determined data trust status, and updating the data provision status based on the re-determined data provision status; re-associating the updated logistics business status, permission status digest, data trust status digest, and data provision status to form a new on-chain trust status, and writing the new on-chain trust status into the blockchain, so that subsequent data access requests can be authorized, data trustworthiness verified, and cross-border data queries based on the new on-chain trust status.

[0033] In one embodiment, see Figure 2 , Figure 2A flowchart is provided for a blockchain-based logistics data storage method, which includes the following steps before receiving a data access request: S201, Obtain the logistics business data and logistics business events corresponding to the logistics object, and determine the logistics business status of the logistics object based on the logistics business data and logistics business events. S202, Determine the status parameters corresponding to the logistics object based on the logistics business status; S203, Based on state parameters, determine the on-chain trusted state of the logistics object according to the preset state association relationship; S204 writes the on-chain trusted state into the blockchain and stores the corresponding logistics data in a data storage node outside the blockchain, forming a data storage relationship between the on-chain trusted state and the off-chain logistics data. The status parameters include data management status, data access status, data trust status, and data provision status.

[0034] In one implementation, the data access state is determined based on at least two of the following: the data access subject, the role of the access subject, the logistics object, the logistics business state, the logistics data type, and the region to which the data belongs. The corresponding data access permissions are generated based on the determined parameters. When the logistics business state changes, the data access permissions corresponding to the changed logistics business state are redefined, and the permission state summary in the trusted state on the chain is updated so that the data access permissions change accordingly under different logistics business states.

[0035] In one implementation, the logistics data management system determines the current logistics business status of a logistics object based on acquired logistics business data and events. The logistics business status indicates the current business stage of the logistics object and serves as the basis for subsequently determining the data management status, data access status, data trust status, and data provision status. After determining the logistics business status, the system determines the corresponding status parameters of the logistics object based on preset status relationships. The status parameters include at least the data management status, data access status, data trust status, and data provision status. Specifically, the data management status describes the management requirements for logistics data under the current logistics business status; the data access status describes the access permissions of different access objects to logistics data under the current logistics business status; the data trust status describes the integrity and trustworthiness of the off-chain logistics business data; and the data provision status describes the data provision nodes and data provision methods for logistics data under the current business status.

[0036] In one implementation, the preset state relationships can be implemented using a state mapping table. For different logistics business states, corresponding data management states, data access states, data trust states, and data provision states are configured. For example, when a logistics object is in transit, the corresponding data access state can be limited to access by the logistics carrier and the cargo owner, and the data provision state can be limited to data provision by the data provision node corresponding to the transportation area. When the logistics object is in the completed delivery state, the data access object and data provision method can be adjusted. The on-chain trust state can be associated with the logistics object identifier, data storage node identifier, data resource identifier, data index information, and data integrity verification information. Through the above association information, a one-to-one or one-to-many correspondence is established between the on-chain state and the actual off-chain logistics data resources.

[0037] In one implementation, the aforementioned state parameters are associated according to a preset state association relationship to generate an on-chain trusted state corresponding to the logistics object, and this on-chain trusted state is written into the blockchain. Simultaneously, the actual logistics business data corresponding to the logistics object is stored in a data storage node outside the blockchain, instead of directly writing the complete logistics business data into the blockchain. By storing the actual data off-chain and writing the on-chain trusted state, which can characterize the data state, into the blockchain, the data storage pressure on the blockchain is reduced, while enabling the blockchain to serve as a trusted record carrier of logistics data states. To establish the correspondence between the on-chain trusted state and the off-chain logistics data, after the logistics business data is stored in the off-chain data storage node, corresponding data index information and data integrity verification information are generated for the logistics business data, and these information are associated with the on-chain trusted state corresponding to the logistics object. Therefore, when subsequent queries of logistics data are needed, the on-chain trusted state in the blockchain can be located first based on the logistics object identifier, and then the data storage node and data resources where the off-chain data is located can be determined based on the data index information associated with the on-chain trusted state, thereby enabling the location of the actual off-chain logistics data from the on-chain state.

[0038] In one embodiment, determining the on-chain trusted state of a logistics object based on state parameters and a preset state association relationship includes: Generate corresponding access permission data based on the data access status, and perform hash calculation on the access permission data to obtain a data access status summary; Generate a data trust status summary based on the data integrity verification structure corresponding to the data trust status. Generate a data management status summary based on the data management status, and generate a data provision status summary based on the data provision status; Get the object identifier corresponding to the logistics object and the status version number corresponding to the current logistics business status; According to the preset arrangement order, the object identifier, data management status summary, data access status summary, data trust status summary, data provision status summary, and status version number are combined, and the combination result is hashed to generate the on-chain trust status corresponding to the logistics object.

[0039] In one implementation, after determining the state parameters corresponding to the logistics object, each state parameter is digested to form an on-chain trusted state that can be stored and verified on the blockchain. Corresponding access permission data is generated based on the data access status. The access permission data characterizes the access relationship between the accessing subject and the logistics data, and can be determined based on at least two of the following: accessing subject, accessing subject role, logistics object, logistics business status, logistics data type, and the region to which the data belongs. For example, corresponding accessing subjects and accessing subject roles can be configured for different logistics business statuses, and corresponding access permissions can be determined based on the accessing subject role and data type. The generated access permission data is then hashed to obtain a data access status digest.

[0040] In one implementation, for the trusted status of data, a trusted status summary is generated based on the data integrity verification structure of the off-chain logistics business data, so that the summary can be used to characterize the current integrity status of the corresponding off-chain logistics business data. A data management status summary is generated based on the data management status, and a data provision status summary is generated based on the data provision status. At the same time, the object identifier corresponding to the logistics object and the status version number corresponding to the current logistics business status are obtained.

[0041] In one implementation, the state version number is used to distinguish different on-chain trusted states formed by logistics objects under different logistics business states. Subsequently, according to a preset arrangement, the technical personnel determine that the object identifier, data management state summary, data access state summary, data trusted state summary, data provision state summary, and state version number are combined, and the combination result is hashed to obtain the on-chain trusted state corresponding to the logistics object. The on-chain trusted state generated in the above manner can simultaneously associate the logistics object, logistics business state, data management state, data access state, data trusted state, and data provision state, so that multiple data management dimensions form a unified state identifier.

[0042] In one embodiment, a data trust status digest is generated based on the data integrity verification structure corresponding to the data trust status, including: Multiple logistics data resources stored in data storage nodes outside the blockchain are hashed to form multiple leaf nodes; Construct a Merkle tree based on multiple leaf nodes, and calculate the corresponding Merkle root based on the Merkle tree; Merklegen is used as a data trust state summary.

[0043] In one implementation, the data trusted state summary is used in the generation of the on-chain trusted state. When a data access request is received, the off-chain logistics data corresponding to the data access request is re-hashed, and the corresponding Merkle proof is generated according to the Merkle tree. The verification result corresponding to the Merkle proof is compared with the Merkle root stored in the blockchain to determine whether the off-chain logistics data has undergone abnormal changes.

[0044] In one embodiment, writing the on-chain trusted state to the blockchain and storing the corresponding logistics data on a data storage node outside the blockchain includes: Write the trusted state on the blockchain, and determine the corresponding data storage node from the candidate data storage nodes outside the blockchain based on the data region, data sensitivity and logistics business status of the logistics data corresponding to the trusted state on the blockchain. The logistics data is encrypted, and the encrypted logistics data is stored in the determined data storage node, and corresponding data index information and data integrity verification information are generated. Data indexing information and data integrity verification information are associated with on-chain trusted state to establish a correspondence between on-chain trusted state and encrypted logistics data stored outside the blockchain.

[0045] The foregoing has described one embodiment of the present invention in detail, but this content is merely a preferred embodiment and should not be considered as limiting the scope of the present invention. All equivalent variations and modifications made within the scope of the claims of this invention should still fall within the scope of the claims of this invention.

Claims

1. A blockchain-based logistics data management method, characterized in that, The method includes: Receive data access requests initiated by the access object for logistics business data, and determine the corresponding logistics business object based on the data access requests; Obtain the current on-chain trusted state corresponding to the logistics business object from the blockchain; The data access status and data provision status of the logistics business object are determined based on the current on-chain trusted status. The data access request is authorized and verified according to the data access status, and the trustworthiness of the logistics business data stored outside the blockchain is verified according to the data trustworthiness status corresponding to the current on-chain trustworthiness status. If both the authorization verification and the trustworthiness verification are passed, the logistics business data is obtained from the corresponding data provider node according to the data provision status, and the logistics business data corresponding to the data access status is provided to the access object according to the data provision method. When the business status of the logistics business object changes, the corresponding on-chain trusted status is updated according to the changed business status, so that the updated on-chain trusted status synchronously changes the data access status and data provision status of the logistics business object.

2. The blockchain-based logistics data management method according to claim 1, characterized in that, Before receiving the data access request, the method also includes: Obtain logistics business data and logistics business events corresponding to the logistics object, and determine the logistics business status of the logistics object based on the logistics business data and logistics business events; The status parameters corresponding to the logistics object are determined based on the logistics business status; the status parameters include data management status, data access status, data trust status, and data provision status; Based on state parameters, the on-chain trusted state corresponding to the logistics object is determined according to a preset state association relationship; The on-chain trusted state is written into the blockchain, and the corresponding logistics data is stored in a data storage node outside the blockchain, forming a data storage relationship between the on-chain trusted state and the off-chain logistics data.

3. The blockchain-based logistics data management method according to claim 2, characterized in that, The status of logistics operations is determined based on logistics business data and logistics business events, including: Acquire at least one of the following events related to the business process of a logistics object: order events, inbound events, warehousing events, outbound events, transportation events, customs declaration events, cross-border transportation events, overseas warehouse inbound events, and delivery events; The current logistics business status of the logistics object is determined according to the order of occurrence of the logistics business events, and the logistics business status is written into the status information corresponding to the logistics object.

4. The blockchain-based logistics data management method according to claim 2, characterized in that, Based on state parameters, the on-chain trusted state corresponding to the logistics object is determined according to a preset state association relationship, including: Based on the data access status, corresponding access permission data is generated, and the access permission data is hashed to obtain a data access status summary. Generate a data trust status summary based on the data integrity verification structure corresponding to the data trust status. A data management status summary is generated based on the data management status, and a data provision status summary is generated based on the data provision status. Obtain the object identifier corresponding to the logistics object and the status version number corresponding to the current logistics business status; According to a preset arrangement order, the object identifier, the data management status summary, the data access status summary, the data trust status summary, the data provision status summary, and the status version number are combined, and the combination result is hashed to generate an on-chain trust status corresponding to the logistics object.

5. The blockchain-based logistics data management method according to claim 4, characterized in that, The step of generating a data trust status digest based on the data integrity verification structure corresponding to the data trust status includes: Multiple logistics data resources stored in data storage nodes outside the blockchain are hashed to form multiple leaf nodes; Construct a Merkle tree based on multiple leaf nodes, and calculate the corresponding Merkle root based on the Merkle tree; The Merkle root is used as a data trust state summary.

6. The blockchain-based logistics data management method according to claim 2, characterized in that, Writing the trusted on-chain state to the blockchain and storing the corresponding logistics data on a data storage node outside the blockchain includes: Write the on-chain trusted state into the blockchain, and determine the corresponding data storage node from the candidate data storage nodes outside the blockchain based on the data region, data sensitivity and logistics business status of the logistics data corresponding to the on-chain trusted state. The logistics data is encrypted, and the resulting encrypted logistics data is stored in the determined data storage node, and corresponding data index information and data integrity verification information are generated. The data index information and data integrity verification information are associated with the on-chain trusted state to establish a correspondence between the on-chain trusted state and the encrypted logistics data stored outside the blockchain.

7. A blockchain-based logistics data management method according to claim 2, characterized in that, When the status of logistics operations changes, including: Retrieve new logistics business events that indicate changes in the business status of logistics objects; Based on the newly added logistics business event, determine the changed logistics business status, and re-determine the data management status, data access status, data trust status, and data provision status corresponding to the changed logistics business status. Update the permission status digest based on the redefined data access status, update the data trust status digest based on the redefined data trust status, and update the data provision status based on the redefined data provision status. The updated logistics business status, permission status summary, data trust status summary, and data provision status are re-associated to form a new on-chain trust status. This new on-chain trust status is then written into the blockchain so that subsequent data access requests can be authorized, data trustworthiness verified, and cross-border data queries can be performed based on the new on-chain trust status.

8. A blockchain-based logistics data management system, characterized in that, The system includes: The logistics business object determination module is used to receive data access requests initiated by the access object for logistics business data, and determine the corresponding logistics business object based on the data access request. The first state determination module is used to obtain the current on-chain trusted state corresponding to the logistics business object from the blockchain. The second state determination module is used to determine the data access state and data provision state corresponding to the logistics business object based on the current on-chain trusted state. The verification module is used to authorize the data access request according to the data access status, and to verify the trustworthiness of the logistics business data stored outside the blockchain according to the data trustworthiness status corresponding to the current on-chain trustworthiness status. The data providing module is used to obtain the logistics business data from the corresponding data providing node according to the data providing status after both the authorization verification and the trust verification are passed, and to provide the logistics business data corresponding to the data access status to the access object according to the data providing method. The data update module is used to update the corresponding on-chain trusted state according to the changed business state when the business state of the logistics business object changes, so that the updated on-chain trusted state synchronously changes the data access state and data provision state of the logistics business object.