A blockchain-fused cross-border supply chain trusted traceability and collaborative management system
By introducing local data summary generation, metadata association, smart contract verification, and cross-chain protocol adaptation into the cross-border supply chain, the problems of data format heterogeneity and cross-chain traceability in the cross-border supply chain are solved, and the reliable traceability and efficient traceability of data are realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- XIAN AVIATION BASE XIEHANG SUPPLY CHAIN MANAGEMENT CO LTD
- Filing Date
- 2026-04-17
- Publication Date
- 2026-06-19
Smart Images

Figure CN122243529A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of supply management technology, and in particular to a cross-border supply chain trusted traceability and collaborative management system that integrates blockchain. Background Technology
[0002] Cross-border supply chain management involves multiple stakeholders, each typically maintaining independent business systems that record raw business data related to orders, customs declarations, transportation, and warehousing. To ensure data authenticity and immutability, blockchain-based evidence storage mechanisms are increasingly being introduced, storing hash digests of key business data on the blockchain and leveraging its distributed consensus and tamper-proof characteristics for data preservation. However, in cross-border scenarios, different stakeholders may use heterogeneous blockchain networks, and there is a lack of unified methods for linking and binding metadata such as data formats, digital identities, timestamps, and geolocation tags. Existing systems often only perform simple hash operations on the raw data before uploading it to the blockchain, making it difficult to effectively bind local data digests with key metadata such as the stakeholders' digital identities, timestamps, and geolocations. This makes it impossible to verify the actual environment and responsible party responsible for the data generation during subsequent verification.
[0003] Existing technologies lack a mechanism for associating and binding local data summaries with metadata, resulting in the inability of data blocks to be verified to form complete verifiable units, making efficient consistency comparison through smart contracts difficult. Simultaneously, existing systems lack cross-chain traceability and protocol adaptation modules. When requested data is distributed across different blockchain networks, it is difficult to dynamically match cross-chain interoperability protocols based on verification status results, leading to traceability query failures or incomplete data fragments. Furthermore, traditional traceability methods only provide a list query of transaction hashes, lacking a visual encapsulation method for secondary comparison of traceability data fragments with hash pointers in evidence-based transaction records, preventing users from intuitively obtaining a reliable traceability view of the entire product chain. Therefore, there is an urgent need to develop a blockchain-integrated cross-border supply chain reliable traceability and collaborative management system. This system should address the issues of data authenticity verification, cross-chain collaborative traceability, and chain visualization in multi-source heterogeneous environments through the collaborative work of modules such as local data summary generation, metadata association and binding, consistency verification, cross-chain protocol adaptation, and visual encapsulation, thereby improving the reliability and efficiency of cross-border supply chain traceability. Summary of the Invention
[0004] To achieve the above objectives, this invention provides a cross-border supply chain trusted traceability and collaborative management system integrating blockchain, characterized in that the system includes a local data digest generation module, a metadata association and binding module, a consistency verification module, a cross-chain traceability and protocol adaptation module, and a traceability link visualization encapsulation module, wherein: The local data digest generation module is used to perform hash operations on the original business data of the cross-border supply chain to obtain the local data digest of the participating nodes. The metadata association and binding module is used to associate and bind the local data digest with the digital identity identifier, timestamp, and geographic location tag of the participating node to obtain the data block to be verified of the local data digest; The consistency verification module is used to perform consistency comparison on the data block to be verified based on the authenticity verification logic of smart contracts in cross-border supply chains, and obtain the verification status result of the data block to be verified. The cross-chain traceability and protocol adaptation module is used to verify the status result and the evidence transaction records of the blockchain ledger in the cross-border supply chain, determine the cross-chain interoperability protocol of the verified status result, and perform data traceability on the request access of the participating node according to the cross-chain interoperability protocol to obtain the traceability data fragment of the request access. The traceability link visualization encapsulation module is used to perform a secondary comparison between the traceability data fragment and the hash pointer in the evidence-based transaction record, and to visualize and encapsulate the traceability data fragment based on the comparison result and the traceability process, thereby obtaining a product traceability link view of the cross-border supply chain.
[0005] In a preferred embodiment, when the local data digest generation module performs hash operations on the original business data of the cross-border supply chain to obtain the local data digest of the participating nodes, it is specifically used for: The original business data of the participating nodes is validated for format conformity to obtain the business data of the participating nodes. The business data of the participating nodes are structured and transformed according to the data template in the cross-border supply chain to obtain the unified format business data of the participating nodes. Data fingerprinting is performed on the unified format business data of the participating nodes to obtain the digest value of the participating nodes. The formula for calculating the digest value is as follows: ; In the formula, This represents the median value of the local data digest. This represents the total number of integer values in the integer value sequence of the local data digest. Indicates the position index of the current integer value. Indicates the first integer values, This represents a preset base constant. This represents a preset modulus constant, and and Coprime; Based on the digest value, the local data digest of the participating node is determined.
[0006] In a preferred embodiment, when the local data digest generation module performs data fingerprint calculation on the unified format business data of the participating node to obtain the local data digest of the participating node, it is specifically used for: Select the corresponding standard hash function based on the hash algorithm type identifier of the participating node; The unified format business data of the participating nodes is divided into blocks according to the input data format requirements of the standard hash function to obtain multiple fixed-size data blocks of the participating nodes. The data of the participating node is divided into multiple fixed-size blocks and input into the standard hash function to obtain the intermediate state value of the participating node. The final hash value of the participating node is obtained according to the standard hash function, and the final hash value is used as the local data digest of the participating node.
[0007] In a preferred embodiment, when the metadata association and binding module performs association and binding between the local data digest and the digital identity, timestamp, and geolocation tag of the participating node to obtain the data block to be verified of the local data digest, it is specifically used for: Based on the digital certificates, local clock modules, and positioning interfaces of the participating nodes, digital identity identifiers, current timestamps, and geographic location tags are obtained, and these are concatenated with the local data digest according to a preset data structure to obtain the associated and bound intermediate data record of the local data digest. The associated intermediate data records of the local data digest are serialized and encoded to obtain the data block to be verified of the local data digest.
[0008] In a preferred embodiment, when the consistency verification module executes the logic for verifying the authenticity of smart contracts in a cross-border supply chain, performs a consistency comparison on the data block to be verified, and obtains the verification status result of the data block to be verified, it is specifically used for: The code of the smart contract in the blockchain network of the cross-border supply chain is parsed to obtain the authenticity verification logic rules in the smart contract; The data block to be verified is used as an input parameter to call the verification interface of the smart contract. The smart contract then performs a consistency comparison between the local data digest in the data block to be verified and the corresponding digest that has been stored in the blockchain ledger. The comparison result returned by the smart contract is used as the verification status result of the data block to be verified.
[0009] In a preferred embodiment, when the consistency verification module performs code parsing based on the smart contract in the blockchain network of the cross-border supply chain to obtain the authenticity verification logic rules in the smart contract, it is specifically used for: Send a read request for the smart contract to any full node in the blockchain network to obtain the smart contract bytecode of the cross-border supply chain; The smart contract bytecode is input into a decompiler to obtain the source code of the smart contract; Identify and extract conditional statements and assertion statements from the source code of the smart contract; The comparison condition expression in the conditional judgment statement and the termination instruction in the assertion statement are combined in the order of execution to obtain the authenticity verification logic rules in the smart contract.
[0010] In a preferred embodiment, when the cross-chain traceability and protocol adaptation module executes the notarized transaction records for verifying the status result and the blockchain ledger in the cross-border supply chain, determines the cross-chain interoperability protocol for the verified status result, and performs data traceability on the request access of the participating node based on the cross-chain interoperability protocol to obtain the traceability data fragment of the request access, it is specifically used for: When the verification status result is "verification passed", the evidence-stored transaction record associated with the data block to be verified is extracted from the blockchain ledger. Based on the verification status result and the evidence-stored transaction record, the corresponding cross-chain interoperability protocol is matched from the pre-configured cross-chain protocol library; Based on the cross-chain interoperability protocol, a traceability query instruction is sent to the target blockchain network corresponding to the participating node, and the original evidence storage data of the target blockchain network corresponding to the participating node is obtained. Extract the business segment corresponding to the requested access from the original evidence data to obtain the traceability data segment of the requested access.
[0011] In a preferred embodiment, when the cross-chain tracing and protocol adaptation module verifies the status result and the stored transaction record, and matches the corresponding cross-chain interoperability protocol from the pre-configured cross-chain protocol library, it is specifically used for: Based on the cross-chain protocol mapping table, mapping records that match the verification status identifier and whose network type conditions match the network type identifier are selected, and the selected mapping records are used as a candidate mapping record set. For the candidate mapping record set, prefix matching is performed on the ledger address prefix conditions in each mapping record to obtain the verification status identifier target mapping record; Based on the target mapping record, read the protocol template identifier stored in the target mapping record, and obtain the corresponding cross-chain interoperability protocol template from the protocol template library based on the protocol template identifier.
[0012] In a preferred embodiment, when the traceability link visualization encapsulation module performs a secondary comparison between the traceability data fragment and the hash pointer in the evidence-based transaction record, and visualizes and encapsulates the comparison result and the traceability process of the traceability data fragment to obtain the product traceability link view of the cross-border supply chain, it is specifically used for: Extract the hash pointer chain arranged in chronological order from the evidence-stored transaction records, and recalculate the data fingerprint of the traceable data fragment to obtain the digest value of the traceable data fragment; The digest value of the traceable data fragment is compared bit by bit with the corresponding digest value in the hash pointer chain to obtain the secondary comparison result between the traceable data fragment and the evidence-stored transaction record; When the result of the second comparison between the traceability data fragment and the evidence-stored transaction record is consistent, the intermediate flow information of the traceability data fragment is extracted from the local log system of the participating node and the transaction record of the blockchain ledger. The secondary comparison results and the intermediate transfer information are integrated in a time-series manner according to the transfer time order to obtain the time-series traceability metadata set of the traceability data fragment; Based on the time-series traceability metadata set of the traceability data fragment, a product traceability link view of the traceability data fragment is obtained by calling a visualization graphics library.
[0013] In a preferred embodiment, when the traceability link visualization encapsulation module executes the time-series traceability metadata set of the traceability data fragment and calls the visualization graphics library to obtain the product traceability link view of the traceability data fragment, it is specifically used for: Based on the time-series traceability metadata set, extract all traceability node identifiers and all directed edge identifiers; Based on the node identifier and the directed edge identifier, the node graphics and edge graphics drawing interface is called in the visualization graphics library to obtain the graphic canvas of the traceability data fragment; The temporal sequence information in the temporal traceability metadata set is mapped to the horizontal layout distance between nodes in the graphic canvas, and the intermediate flow information corresponding to each traceability node is mapped to the text label in the node graphic. Based on the horizontal layout distance and the text label, all traceability nodes and all directed edges are rendered sequentially on the graphic canvas to obtain the product traceability link view of the traceability data fragment.
[0014] Compared with the prior art, the present invention has the following beneficial effects: 1. This invention utilizes a local data digest generation module to perform format standardization verification and structure transformation on raw business data, and combines specific hash operations to generate a unified format local data digest, effectively solving the problem of digest inconsistency caused by heterogeneous data formats among multiple participants. Simultaneously, a metadata association and binding module concatenates and serializes the local data digest with the digital identity identifiers, timestamps, and geolocation tags of participating nodes to form a complete data block to be verified, overcoming the shortcomings of existing technologies that simply hash and upload raw data without binding environmental metadata. Furthermore, a consistency verification module automatically calls the verification interface to compare the consistency of the data block to be verified by parsing the authenticity verification logic rules in the smart contract, enabling fast and accurate return of verification status results. This significantly improves the verification efficiency of data authenticity and traceability of responsible parties in cross-border supply chains, avoiding verification failures or unclear attribution of responsibility due to missing metadata.
[0015] 2. This invention, through a cross-chain traceability and protocol adaptation module, dynamically matches the corresponding cross-chain interoperability protocol from a pre-configured cross-chain protocol library based on the verification status result and the notarized transaction record when the verification status result is passed. It then sends traceability query commands to different blockchain networks accordingly, achieving data fragment extraction and tracing in heterogeneous blockchain environments. This overcomes the deficiency of existing systems that lack protocol adaptation mechanisms for cross-chain traceability. Furthermore, the traceability link visualization encapsulation module performs a secondary comparison between the traceability data fragment and the hash pointer chain in the notarized transaction record. Upon matching, it extracts intermediate flow information from local logs and the blockchain ledger, integrates it chronologically, and calls a visualization graphics library to generate a product traceability link view. This allows users to intuitively and completely obtain reliable flow information throughout the entire product chain, significantly improving the intuitiveness, completeness, and operational efficiency of cross-border supply chain traceability. Attached Figure Description
[0016] Figure 1 A system architecture diagram of a cross-border supply chain trusted traceability and collaborative management system integrating blockchain is provided in an embodiment of the present invention; The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments belong to some, but not all, embodiments of the present invention. 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.
[0018] The terminology used in the embodiments of this invention is for the purpose of describing particular embodiments only and is not intended to limit the invention. The singular forms “said” and “the” as used in the embodiments of this invention and the appended claims are also intended to include the plural forms, and “multiple” generally includes at least two unless the context clearly indicates otherwise.
[0019] Depending on the context, the word "if" or "if" as used here can be interpreted as "when," "when," "in response to determination," or "in response to detection." Similarly, depending on the context, the phrase "if determination" or "if detection (of the stated condition or event)" can be interpreted as "when determination," "in response to determination," "when detection (of the stated condition or event)," or "in response to detection (of the stated condition or event)."
[0020] Furthermore, the timing of the steps in the following method embodiments is merely an example and not a strict limitation.
[0021] In practice, the server-side equipment deployed in a blockchain-integrated cross-border supply chain trusted traceability and collaborative management system may consist of one or more devices. This blockchain-integrated cross-border supply chain trusted traceability and collaborative management system can be implemented as: a business instance, a virtual machine, and hardware devices. For example, this blockchain-integrated cross-border supply chain trusted traceability and collaborative management system can be implemented as a business instance deployed on one or more devices in a cloud node. Simply put, this blockchain-integrated cross-border supply chain trusted traceability and collaborative management system can be understood as software deployed on a cloud node, used to provide a blockchain-integrated cross-border supply chain trusted traceability and collaborative management system to various user terminals. Alternatively, this blockchain-integrated cross-border supply chain trusted traceability and collaborative management system can also be implemented as a virtual machine deployed on one or more devices in a cloud node. This virtual machine contains application software for managing various user terminals. Alternatively, this blockchain-integrated cross-border supply chain trusted traceability and collaborative management system can also be implemented as a server composed of numerous identical or different types of hardware devices, with one or more hardware devices configured to provide a blockchain-integrated cross-border supply chain trusted traceability and collaborative management system to various user terminals.
[0022] In terms of implementation, a blockchain-integrated cross-border supply chain trusted traceability and collaborative management system and a user terminal are mutually compatible. That is, if the blockchain-integrated cross-border supply chain trusted traceability and collaborative management system is implemented as an application installed on a cloud service platform, then the user terminal is implemented as a client that establishes a communication connection with the application; or if the blockchain-integrated cross-border supply chain trusted traceability and collaborative management system is implemented as a website, then the user terminal is implemented as a webpage; or if the blockchain-integrated cross-border supply chain trusted traceability and collaborative management system is implemented as a cloud service platform, then the user terminal is implemented as a mini-program in an instant messaging application.
[0023] like Figure 1 The diagram shown is a system architecture diagram of a cross-border supply chain trusted traceability and collaborative management system that integrates blockchain, provided by an embodiment of the present invention.
[0024] The blockchain-integrated cross-border supply chain trusted traceability and collaborative management system described in this invention can be set up on a cloud server. In terms of implementation, it can be implemented as one or more service devices, or as an application installed on the cloud (e.g., a mobile service operator's server, server cluster, etc.), or it can be developed as a website. Depending on the implemented functions, the blockchain-integrated cross-border supply chain trusted traceability and collaborative management system 100 may include a local data digest generation module 101, a metadata association and binding module 102, a consistency verification module 103, a cross-chain traceability and protocol adaptation module 104, and a traceability link visualization encapsulation module 105. The modules described in this invention can also be called units, referring to a series of computer program segments that can be executed by an electronic device's processor and perform a fixed function, stored in the electronic device's memory.
[0025] In this embodiment of the invention, in a blockchain-integrated cross-border supply chain trusted traceability and collaborative management system, each of the above modules can be implemented independently and can call other modules. Here, "calling" can be understood as a module connecting to multiple modules of another type and providing corresponding services to those connected modules. In this blockchain-integrated cross-border supply chain trusted traceability and collaborative management system, without modifying the program code, the applicable scope of the system architecture can be adjusted by adding modules and directly calling them, achieving cluster-based horizontal expansion to quickly and flexibly expand the system. In practical applications, the above modules can be set in the same device or different devices, or in virtual devices, such as service instances in a cloud server.
[0026] The following describes, with reference to specific embodiments, the various components and specific workflows of a blockchain-integrated cross-border supply chain trusted traceability and collaborative management system: The local data digest generation module 101 is used to perform hash operations on the original business data of the cross-border supply chain to obtain the local data digest of the participating nodes. In this embodiment of the invention, when the local data digest generation module performs hash operations on the original business data of the cross-border supply chain to obtain the local data digest of the participating nodes, it is specifically used for: The original business data of the participating nodes is validated for format conformity to obtain the business data of the participating nodes. The business data of the participating nodes are structured and transformed according to the data template in the cross-border supply chain to obtain the unified format business data of the participating nodes. Data fingerprinting is performed on the unified format business data of the participating nodes to obtain the digest value of the participating nodes. The formula for calculating the digest value is as follows: ; In the formula, This represents the median value of the local data digest. This represents the total number of integer values in the integer value sequence of the local data digest. Indicates the position index of the current integer value. Indicates the first integer values, This represents a preset base constant. This represents a preset modulus constant, and and Coprime; Based on the digest value, the local data digest of the participating node is determined.
[0027] When the local data digest generation module performs data fingerprint calculation on the unified format business data of the participating node to obtain the local data digest of the participating node, it is specifically used for: Select the corresponding standard hash function based on the hash algorithm type identifier of the participating node; The unified format business data of the participating nodes is divided into blocks according to the input data format requirements of the standard hash function to obtain multiple fixed-size data blocks of the participating nodes. The data of the participating node is divided into multiple fixed-size blocks and input into the standard hash function to obtain the intermediate state value of the participating node. The final hash value of the participating node is obtained according to the standard hash function, and the final hash value is used as the local data digest of the participating node.
[0028] The original business data transmitted by the participating nodes is verified item by item according to the five normative indicators preset in the cross-border supply chain business scenario: field length, field type, field mandatory field, encoding format, and data value range. After confirming that all the original business data meets the preset indicators, the business data of the participating nodes is obtained.
[0029] The business data of participating nodes are processed according to a pre-defined and uniformly used data template for cross-border supply chain scenarios. The field order, field name, data level, data unit, and data delimiter of the business data are uniformly adjusted and transformed to obtain business data in a uniform format for participating nodes.
[0030] Data fingerprint calculation is performed on the unified format business data of the participating nodes. First, the unified format business data is converted into a continuous sequence of integer values. Then, according to the preset calculation rules, the integer value of each position is multiplied by the preset base constant of the corresponding position in turn. All product results are accumulated to obtain the cumulative total value. Finally, the cumulative total value is moduloed by the preset modulo constant to obtain the remainder. The remainder is the digest value of the participating node.
[0031] Based on the summary value, the summary value is formatted and bound with identifiers according to the cross-border supply chain data summary generation rules to obtain the local data summary of the participating nodes.
[0032] Read the hash algorithm type identifier pre-configured by the participating node, and match and select the standard hash function that uniquely corresponds to the identifier from the standard hash function library preset by the cross-border supply chain system.
[0033] The unified format business data of the participating nodes is continuously divided according to the input data block size specified by the selected standard hash function. During the division process, data blocks that are not large enough are padded according to the padding rules required by the standard hash function, resulting in multiple fixed-size data blocks of the participating nodes.
[0034] The data blocks of the participating nodes are divided into multiple fixed-size blocks and input into the standard hash function in the order specified by the standard hash function. The standard hash function processes each data block and updates the operation state according to its internal fixed iterative operation logic. After all data blocks have been processed, the intermediate state value of the participating nodes is obtained.
[0035] According to the final state transition rules specified by the standard hash function, the intermediate state values of the participating nodes are processed by a final operation. After processing, a character sequence of fixed length is output. This character sequence is the final hash value of the participating node, and the final hash value is directly determined as the local data digest of the participating node.
[0036] The beneficial effects include the ability to accurately and standardize the original business data of participating nodes, ensuring the compliance and effectiveness of the data foundation; the ability to achieve structured transformation of business data through a unified cross-border supply chain data template, forming standardized data with consistent format; the ability to complete data fingerprint calculation and generate stable and unique digest values using specified calculation methods; the ability to match the corresponding standard hash function based on the hash algorithm type identifier; and the ability to obtain an accurate and reliable final hash value as a local data digest through block processing and iterative calculation. The entire process ensures standardized data processing, unified transformation, accurate digest generation, and reproducibility, effectively improving the standardization, consistency, and security of cross-border supply chain business data.
[0037] The metadata association and binding module 102 is used to associate and bind the local data digest with the digital identity identifier, timestamp, and geographic location tag of the participating node to obtain the data block to be verified of the local data digest; In this embodiment of the invention, when the metadata association and binding module performs association and binding between the local data digest and the digital identity, timestamp, and geographic location tag of the participating node to obtain the data block to be verified of the local data digest, it is specifically used for: Based on the digital certificates, local clock modules, and positioning interfaces of the participating nodes, digital identity identifiers, current timestamps, and geographic location tags are obtained, and these are concatenated with the local data digest according to a preset data structure to obtain the associated and bound intermediate data record of the local data digest. The associated intermediate data records of the local data digest are serialized and encoded to obtain the data block to be verified of the local data digest.
[0038] The system calls the pre-configured digital certificate reading interface of the participating node to extract fixed character information that uniquely identifies the participating party as a digital identity identifier. It reads the standard time value of the current system operation through the local clock module built into the participating node as the current timestamp. It receives the precise location information transmitted by satellite positioning through the positioning interface configured in the participating node as a geographic location tag. The obtained digital identity identifier, current timestamp, geographic location tag and local data digest are combined and connected in sequence according to the fixed field order and field separation rules preset by the cross-border supply chain system to obtain the associated binding intermediate data record of the local data digest.
[0039] In accordance with the serialization encoding rules for cross-border supply chain data transmission, each character of the intermediate data record associated with the local data digest is uniformly converted into a new format. The converted characters are then combined in their original order to form a complete data block, resulting in the data block to be verified in the local data digest.
[0040] The beneficial effects include the ability to obtain authentic and accurate digital identity identifiers, current timestamps, and geographic location tags by relying on digital certificates, local clock modules, and positioning interfaces. This information is then combined with local data digests according to a preset structure to form closely related and complete associated intermediate data records. These records are then processed through serialization encoding to obtain standardized and verifiable data blocks, ensuring that the data information is associated with trustworthiness and has a unified format, effectively enhancing the traceability and authenticity of the data.
[0041] The consistency verification module 103 is used to perform consistency comparison on the data block to be verified based on the authenticity verification logic of smart contracts in cross-border supply chains, and obtain the verification status result of the data block to be verified. In this embodiment of the invention, when the consistency verification module executes the logic for verifying the authenticity of smart contracts in a cross-border supply chain, performs a consistency comparison on the data block to be verified, and obtains the verification status result of the data block to be verified, it is specifically used for: The code of the smart contract in the blockchain network of the cross-border supply chain is parsed to obtain the authenticity verification logic rules in the smart contract; The data block to be verified is used as an input parameter to call the verification interface of the smart contract. The smart contract then performs a consistency comparison between the local data digest in the data block to be verified and the corresponding digest that has been stored in the blockchain ledger. The comparison result returned by the smart contract is used as the verification status result of the data block to be verified.
[0042] When the consistency verification module executes code parsing based on the smart contract in the blockchain network of the cross-border supply chain to obtain the authenticity verification logic rules in the smart contract, it is specifically used for: Send a read request for the smart contract to any full node in the blockchain network to obtain the smart contract bytecode of the cross-border supply chain; The smart contract bytecode is input into a decompiler to obtain the source code of the smart contract; Identify and extract conditional statements and assertion statements from the source code of the smart contract; The comparison condition expression in the conditional judgment statement and the termination instruction in the assertion statement are combined in the order of execution to obtain the authenticity verification logic rules in the smart contract.
[0043] We conducted code analysis on smart contracts in cross-border supply chain blockchain networks. By reading the code text of the smart contract line by line, we located the logic code segments used for data verification, sorted out the judgment logic and execution branches in each code segment, and finally identified and extracted the authenticity verification logic rules in the smart contract.
[0044] The entire data block to be verified, which has been processed locally and is to be verified, is taken as the input content. The verification interface pre-written by the smart contract is directly called. The execution program inside the smart contract automatically reads the local data digest contained in the data block to be verified, and at the same time retrieves the digest information that has been stored in the blockchain ledger. The two sets of digest information are compared one by one in character order to determine whether the two sets of information are completely consistent.
[0045] Obtain the comparison result identifier returned after the smart contract is executed. This identifier is used to directly indicate whether the verification is successful. This identifier is directly determined as the final verification status result of the data block to be verified. This result has only two clear states: verification successful and verification failed. There are no intermediate ambiguous states.
[0046] Select any full node in the cross-border supply chain blockchain network, and send a read request for the target smart contract to the full node through the peer-to-peer communication protocol of the blockchain network. The request carries the unique address information of the smart contract. After receiving the request, the full node retrieves the complete bytecode of the corresponding smart contract from the blockchain data stored locally and returns it, thus obtaining the smart contract bytecode corresponding to the cross-border supply chain.
[0047] The obtained smart contract bytecode is input byte by byte into a preset decompiler. The decompiler converts the binary bytecode line by line into human-readable high-level programming language text according to the instruction set specification of the smart contract virtual machine, completely restoring the entire execution logic of the smart contract, and finally obtaining the source code of the smart contract.
[0048] The restored smart contract source code is scanned line by line and analyzed. Based on the syntax rules of the programming language, all statements used for conditional judgments and assertions used for mandatory verification results are identified. The identified statements are extracted in the order in which they appear in the source code, without omitting any judgment or assertion related to verification.
[0049] The comparison condition expressions contained in the extracted condition judgment statements are arranged in the execution order in the source code. Then, the termination instructions used to terminate the program or output results in the assertion statements are combined immediately after the corresponding condition expressions. All combinations strictly follow the execution flow of the source code, and finally form a complete and reproducible authenticity verification logic rule in the smart contract.
[0050] The beneficial effects include the ability to accurately obtain the authenticity verification logic rules of smart contracts in cross-border supply chain blockchain networks, achieve precise consistency comparison between the local data digest in the data block to be verified and the corresponding digest stored in the blockchain ledger, clarify the verification status of the data block to be verified, and obtain the smart contract bytecode and restore the source code through the blockchain full node, accurately extract relevant statements to form verification logic rules, ensure the standardization, accuracy and reproducibility of cross-border supply chain data verification, and provide a reliable basis for judging the compliance of cross-border supply chain data flow.
[0051] The cross-chain traceability and protocol adaptation module 104 executes the notarized transaction records used to verify the status result and the blockchain ledger in the cross-border supply chain, determines the cross-chain interoperability protocol of the verification status result, and performs data traceability on the request access of the participating node based on the cross-chain interoperability protocol to obtain the traceability data fragment of the request access. In this embodiment of the invention, when the cross-chain traceability and protocol adaptation module executes the notarized transaction records for verifying the status result and the blockchain ledger in the cross-border supply chain, determines the cross-chain interoperability protocol for the verified status result, and performs data traceability on the request access of the participating node based on the cross-chain interoperability protocol to obtain the traceability data fragment of the request access, it is specifically used for: When the verification status result is "verification passed", the evidence-stored transaction record associated with the data block to be verified is extracted from the blockchain ledger. Based on the verification status result and the evidence-stored transaction record, the corresponding cross-chain interoperability protocol is matched from the pre-configured cross-chain protocol library; Based on the cross-chain interoperability protocol, a traceability query instruction is sent to the target blockchain network corresponding to the participating node, and the original evidence storage data of the target blockchain network corresponding to the participating node is obtained. Extract the business segment corresponding to the requested access from the original evidence data to obtain the traceability data segment of the requested access.
[0052] When the cross-chain traceability and protocol adaptation module verifies the status result and the stored transaction record, and matches the corresponding cross-chain interoperability protocol from the pre-configured cross-chain protocol library, it is specifically used for: Based on the cross-chain protocol mapping table, mapping records that match the verification status identifier and whose network type conditions match the network type identifier are selected, and the selected mapping records are used as a candidate mapping record set. For the candidate mapping record set, prefix matching is performed on the ledger address prefix conditions in each mapping record to obtain the verification status identifier target mapping record; Based on the target mapping record, read the protocol template identifier stored in the target mapping record, and obtain the corresponding cross-chain interoperability protocol template from the protocol template library based on the protocol template identifier.
[0053] When the verification status result is determined to be successful, the blockchain ledger is traversed and searched for evidence storage transaction records that are completely consistent with the unique association identifier of the data block to be verified, and all the evidence storage transaction records retrieved are completely extracted.
[0054] The verification status results and the evidence-based transaction records are used as the matching criteria. The protocol information is compared one by one in the pre-configured cross-chain protocol library to select the cross-chain interoperability protocols that completely correspond to the criteria, thus completing the accurate matching of cross-chain interoperability protocols.
[0055] Based on the completed cross-chain interoperability protocol, and in accordance with the communication rules and data format specified in the protocol, a traceability query instruction is sent to the target blockchain network corresponding to the participating node. After receiving the traceability query instruction, the target blockchain network performs a data retrieval operation and provides feedback and obtains the original evidence storage data of the target blockchain network corresponding to the participating node.
[0056] Based on the business scope and data dimensions specified in the request access, the business segment corresponding to the request access is accurately extracted from the original evidence data. The extracted business segment is the traceability data segment of the request access.
[0057] Based on the cross-chain protocol mapping table, the verification status identifier field and network type identifier field are extracted from each mapping record. Mapping records that are completely consistent with the content of the verification status identifier field and the network type condition are completely consistent with the content of the network type identifier field are selected. All mapping records that meet this dual matching condition are summarized to form a candidate mapping record set.
[0058] For each mapping record in the candidate mapping record set, the ledger address to be matched is compared character by character with the ledger address prefix condition in the mapping record. The prefix part of the ledger address is confirmed to be completely consistent with the ledger address prefix condition. After the prefix matching is completed, the target mapping record with the corresponding verification status is obtained.
[0059] Based on the determined target mapping record, the protocol template identifier stored in the target mapping record is read directly. The protocol template identifier is used as the retrieval basis to search the protocol template library for the cross-chain interoperability protocol template that completely corresponds to the protocol template identifier, thus completing the acquisition of the corresponding cross-chain interoperability protocol template.
[0060] The beneficial effects are that after the verification status result is passed, the corresponding evidence storage transaction record can be accurately extracted. Combining the verification result and the transaction record, the appropriate cross-chain interoperability protocol can be quickly matched. Based on the protocol, a traceability query can be initiated to the target blockchain network to obtain the original evidence storage data, and then the traceability data fragment that meets the access requirements can be intercepted. At the same time, the candidate mapping record set can be filtered out through the cross-chain protocol mapping table. After the target mapping record is determined by matching the ledger address prefix, the corresponding identifier can be directly read and the required cross-chain interoperability protocol template can be obtained from the protocol template library. The whole process realizes accurate matching and efficient retrieval of cross-chain evidence storage data traceability, ensuring the accuracy of data traceability and the standardization of the process.
[0061] The traceability link visualization encapsulation module 105 performs a secondary comparison between the traceability data fragment and the hash pointer in the evidence-based transaction record, and performs visualization encapsulation based on the comparison result and the traceability process of the traceability data fragment to obtain the product traceability link view of the cross-border supply chain. In this embodiment of the invention, when the traceability link visualization encapsulation module performs a secondary comparison between the traceability data fragment and the hash pointer in the evidence-based transaction record, and performs visualization encapsulation based on the comparison result and the traceability process of the traceability data fragment to obtain the product traceability link view of the cross-border supply chain, it is specifically used for: Extract the hash pointer chain arranged in chronological order from the evidence-stored transaction records, and recalculate the data fingerprint of the traceable data fragment to obtain the digest value of the traceable data fragment; The digest value of the traceable data fragment is compared bit by bit with the corresponding digest value in the hash pointer chain to obtain the secondary comparison result between the traceable data fragment and the evidence-stored transaction record; When the result of the second comparison between the traceability data fragment and the evidence-stored transaction record is consistent, the intermediate flow information of the traceability data fragment is extracted from the local log system of the participating node and the transaction record of the blockchain ledger. The secondary comparison results and the intermediate transfer information are integrated in a time-series manner according to the transfer time order to obtain the time-series traceability metadata set of the traceability data fragment; Based on the time-series traceability metadata set of the traceability data fragment, a product traceability link view of the traceability data fragment is obtained by calling a visualization graphics library.
[0062] Based on the time-series traceability metadata set, extract all traceability node identifiers and all directed edge identifiers; Based on the node identifier and the directed edge identifier, the node graphics and edge graphics drawing interface is called in the visualization graphics library to obtain the graphic canvas of the traceability data fragment; The temporal sequence information in the temporal traceability metadata set is mapped to the horizontal layout distance between nodes in the graphic canvas, and the intermediate flow information corresponding to each traceability node is mapped to the text label in the node graphic. Based on the horizontal layout distance and the text label, all traceability nodes and all directed edges are rendered sequentially on the graphic canvas to obtain the product traceability link view of the traceability data fragment.
[0063] If the verification status result indicates that the verification has passed, all records that have been uploaded to the blockchain ledger are traversed, and full-text matching and retrieval are performed according to the identity identifier and time characteristics carried by the data block to be verified, so as to lock and extract the evidence-stored transaction records that are directly related to the data block to be verified.
[0064] By combining the confirmed verification status results with the extracted evidence-based transaction records, feature values are compared one by one in the pre-configured cross-chain protocol library of the system. Protocol entries that perfectly match the feature dimensions are identified as the corresponding cross-chain interoperability protocols.
[0065] Based on the message format and communication rules specified in the selected cross-chain interoperability protocol, a traceability query command that meets the access requirements of the target blockchain network is constructed and sent to the target blockchain network corresponding to the participating node, and all original evidence storage data are waited for and received from the target blockchain network.
[0066] Within the overall scope of the original evidence data obtained, based on the business scope and data dimensions defined by the access request, a portion of the data content that completely corresponds to the content accessed in the request is precisely extracted to form the traceability data fragment corresponding to the access request.
[0067] Based on the cross-chain protocol mapping table configured in the system, each mapping record is compared to see if the verification status identifier associated with it is exactly the same as the current verification status identifier. At the same time, the network type condition of each mapping record is checked to see if it is consistent with the current network type identifier. All mapping records that meet both matching conditions are summarized to form a candidate mapping record set.
[0068] For the aggregated candidate mapping record set, the ledger address prefix contained in each mapping record is compared character by character with the actual ledger address corresponding to the current business. The single mapping record with a completely matching prefix is retained and determined as the target mapping record for the verification status identifier.
[0069] Based on the determined target mapping record, the protocol template identifier stored in the record is read directly. Then, using the protocol template identifier as the retrieval basis, a unique match is performed in the system's built-in protocol template library to obtain the cross-chain interoperability protocol template corresponding to the identifier.
[0070] From the extracted evidence-preserving transaction records, the continuously associated hash pointer chains are sequentially sorted and extracted according to the order of the records' generation. At the same time, the data fingerprint calculation is re-executed on the obtained traceability data fragments according to the same processing logic as the previous data fingerprint generation, to obtain the digest value corresponding to the traceability data fragment.
[0071] The digest value of the calculated traceable data fragment is compared character by character with the digest value corresponding to the position in the sorted hash pointer chain. The matching status of each character is recorded, and finally a secondary comparison result between the traceable data fragment and the corresponding evidence-based transaction record is formed.
[0072] If the second comparison results determine that the traceable data fragment is completely consistent with the evidence-based transaction record, all intermediate transfer information related to the traceable data fragment is fully extracted from the local log system stored locally by the participating node and the transaction records retained in the blockchain ledger.
[0073] The secondary comparison results and all extracted intermediate flow information are arranged and integrated according to the actual flow time of information generation, so that all content forms a coherent whole in time sequence, and the time-series traceability metadata set corresponding to the traceability data segment is obtained.
[0074] In the established time-series traceability metadata set, all traceability node identifiers representing the traceability subject and all directed edge identifiers representing the flow relationship between nodes are screened and separated one by one, thus completing the independent extraction of the two types of identifiers.
[0075] Based on the extracted traceability node identifiers and directed edge identifiers, the system calls the appropriate node graphics drawing interface and edge graphics drawing interface from the system's preset visualization graphics library to complete the construction of the basic drawing carrier and obtain the graphic canvas corresponding to the traceability data segment.
[0076] The time sequence information contained in the time-series traceability metadata set is transformed into the horizontal spacing between the nodes on the graphic canvas. At the same time, the intermediate flow information corresponding to each traceability node is transformed into the text label content that can be displayed inside the corresponding node graphic.
[0077] Based on the determined horizontal layout distance and text label content, all traceability node graphics and all directed edge graphics are rendered sequentially on the constructed graphic canvas in chronological order, ultimately generating a product traceability link view that can intuitively display the data flow process of this traceability data segment.
[0078] The beneficial effects are as follows: after verification, the corresponding evidence-stored transaction records in the blockchain ledger can be accurately extracted. By combining the verification results with the evidence-stored records and matching the appropriate cross-chain interoperability protocol, a query is initiated to the target blockchain network through the protocol to obtain the original evidence-stored data. Then, the corresponding traceability data fragments are extracted according to the access requirements. At the same time, candidate records that meet the verification status and network type are filtered according to the cross-chain protocol mapping table. The target mapping record is determined by address prefix matching and the corresponding protocol template is obtained. Then, the hash pointer chain is extracted and the data fingerprint is recalculated to complete the digest comparison and obtain the secondary comparison result. After the comparison is consistent, the relevant intermediate flow information is extracted and integrated into a traceability metadata set according to the time sequence. Then, the node and edge identifiers are extracted to construct a visualization canvas. The time sequence and flow information are mapped into layout distance and text labels. Finally, a clear and intuitive product traceability link view is rendered. The entire traceability process is guaranteed to be standardized and reliable, the data comparison is accurate and complete, and the display effect is intuitive and clear, effectively improving the accuracy and traceability of cross-border supply chain data traceability.
[0079] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0080] This application embodiment can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence is the theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.
[0081] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A blockchain-integrated cross-border supply chain trusted traceability and collaborative management system, characterized in that, The system includes a local data digest generation module, a metadata association and binding module, a consistency verification module, a cross-chain traceability and protocol adaptation module, and a traceability link visualization encapsulation module, wherein: The local data digest generation module is used to perform hash operations on the original business data of the cross-border supply chain to obtain the local data digest of the participating nodes. The metadata association and binding module is used to associate and bind the local data digest with the digital identity identifier, timestamp, and geographic location tag of the participating node to obtain the data block to be verified of the local data digest; The consistency verification module is used to perform consistency comparison on the data block to be verified based on the authenticity verification logic of smart contracts in cross-border supply chains, and obtain the verification status result of the data block to be verified. The cross-chain traceability and protocol adaptation module is used to verify the status result and the evidence transaction records of the blockchain ledger in the cross-border supply chain, determine the cross-chain interoperability protocol of the verified status result, and perform data traceability on the request access of the participating node according to the cross-chain interoperability protocol to obtain the traceability data fragment of the request access. The traceability link visualization encapsulation module is used to perform a secondary comparison between the traceability data fragment and the hash pointer in the evidence-based transaction record, and to visualize and encapsulate the traceability data fragment based on the comparison result and the traceability process, thereby obtaining a product traceability link view of the cross-border supply chain. 2.The fusion blockchain-based cross-border supply chain trusted traceability and collaborative management system of claim 1, wherein, When the local data digest generation module performs hash operations on the original business data of the cross-border supply chain to obtain the local data digest of the participating nodes, it is specifically used for: The original business data of the participating nodes is validated for format conformity to obtain the business data of the participating nodes. The business data of the participating nodes are structured and transformed according to the data template in the cross-border supply chain to obtain the unified format business data of the participating nodes. Data fingerprinting is performed on the unified format business data of the participating nodes to obtain the digest value of the participating nodes. The formula for calculating the digest value is as follows: ; wherein, represents an intermediate value of the local data digest, represents a total number of integer values in a sequence of integer values of the local data digest, represents a position serial number of a current integer value, represents an integer value of the integer value, represents a preset base constant, represents a preset modulus constant, and is prime to . Based on the digest value, the local data digest of the participating node is determined.
3. The fusion blockchain-based cross-border supply chain trusted traceability and collaborative management system of claim 2, wherein, When the local data digest generation module performs data fingerprint calculation on the unified format business data of the participating node to obtain the local data digest of the participating node, it is specifically used for: Select the corresponding standard hash function based on the hash algorithm type identifier of the participating node; The unified format business data of the participating nodes is divided into blocks according to the input data format requirements of the standard hash function to obtain multiple fixed-size data blocks of the participating nodes. The data of the participating node is divided into multiple fixed-size blocks and input into the standard hash function to obtain the intermediate state value of the participating node; The final hash value of the participating node is obtained according to the standard hash function, and the final hash value is used as the local data digest of the participating node.
4. The fusion blockchain-based cross-border supply chain trusted traceability and collaborative management system of claim 1, wherein, When the metadata association and binding module performs the association and binding of the local data digest with the digital identity, timestamp, and geolocation tag of the participating node to obtain the data block to be verified of the local data digest, it is specifically used for: Based on the digital certificates, local clock modules, and positioning interfaces of the participating nodes, digital identity identifiers, current timestamps, and geographic location tags are obtained, and these are concatenated with the local data digest according to a preset data structure to obtain the associated and bound intermediate data record of the local data digest. The associated intermediate data records of the local data digest are serialized and encoded to obtain the data block to be verified of the local data digest.
5. The fusion blockchain-based cross-border supply chain trusted traceability and collaborative management system of claim 1, wherein, When the consistency verification module executes the logic for verifying the authenticity of smart contracts in a cross-border supply chain, and performs a consistency comparison on the data block to be verified to obtain the verification status result of the data block to be verified, it is specifically used for: The code of the smart contract in the blockchain network of the cross-border supply chain is parsed to obtain the authenticity verification logic rules in the smart contract; The data block to be verified is used as an input parameter to call the verification interface of the smart contract. The smart contract then performs a consistency comparison between the local data digest in the data block to be verified and the corresponding digest that has been stored in the blockchain ledger. The comparison result returned by the smart contract is used as the verification status result of the data block to be verified.
6. The fusion blockchain-based cross-border supply chain trusted traceability and collaborative management system of claim 5, wherein, When the consistency verification module executes code parsing based on the smart contract in the blockchain network of the cross-border supply chain to obtain the authenticity verification logic rules in the smart contract, it is specifically used for: Send a read request for the smart contract to any full node in the blockchain network to obtain the smart contract bytecode of the cross-border supply chain; The smart contract bytecode is input into a decompiler to obtain the source code of the smart contract; Identify and extract conditional statements and assertion statements from the source code of the smart contract; The comparison condition expression in the conditional judgment statement and the termination instruction in the assertion statement are combined in the order of execution to obtain the authenticity verification logic rules in the smart contract.
7. The fusion blockchain-based cross-border supply chain trusted traceability and collaborative management system of claim 1, wherein, The cross-chain traceability and protocol adaptation module, when executing the notarized transaction records for verifying the status result and the blockchain ledger in the cross-border supply chain, determining the cross-chain interoperability protocol for the verified status result, and tracing the request access of the participating node according to the cross-chain interoperability protocol to obtain the traceability data fragment of the request access, is specifically used for: When the verification status result is "verification passed", the evidence-stored transaction record associated with the data block to be verified is extracted from the blockchain ledger. Based on the verification status result and the evidence-stored transaction record, the corresponding cross-chain interoperability protocol is matched from the pre-configured cross-chain protocol library; Based on the cross-chain interoperability protocol, a traceability query instruction is sent to the target blockchain network corresponding to the participating node, and the original evidence storage data of the target blockchain network corresponding to the participating node is obtained. Extract the business segment corresponding to the requested access from the original evidence data to obtain the traceability data segment of the requested access.
8. The fusion blockchain-based cross-border supply chain trusted traceability and collaborative management system of claim 7, wherein, When the cross-chain traceability and protocol adaptation module verifies the status result and the stored transaction record, and matches the corresponding cross-chain interoperability protocol from the pre-configured cross-chain protocol library, it is specifically used for: Based on the cross-chain protocol mapping table, mapping records that match the verification status identifier and whose network type conditions match the network type identifier are selected, and the selected mapping records are used as a candidate mapping record set. For the candidate mapping record set, prefix matching is performed on the ledger address prefix conditions in each mapping record to obtain the verification status identifier target mapping record; Based on the target mapping record, read the protocol template identifier stored in the target mapping record, and obtain the corresponding cross-chain interoperability protocol template from the protocol template library based on the protocol template identifier. 9.The fusion blockchain-based cross-border supply chain trusted traceability and collaborative management system of claim 1, wherein, The traceability link visualization encapsulation module, when performing a secondary comparison between the traceability data fragment and the hash pointer in the evidence-based transaction record, and visually encapsulating the comparison result and the traceability process of the traceability data fragment to obtain the product traceability link view of the cross-border supply chain, is specifically used for: Extract the hash pointer chain arranged in chronological order from the evidence-stored transaction records, and recalculate the data fingerprint of the traceable data fragment to obtain the digest value of the traceable data fragment; The digest value of the traceable data fragment is compared bit by bit with the corresponding digest value in the hash pointer chain to obtain the secondary comparison result between the traceable data fragment and the evidence-stored transaction record; When the result of the second comparison between the traceability data fragment and the evidence-stored transaction record is consistent, the intermediate flow information of the traceability data fragment is extracted from the local log system of the participating node and the transaction record of the blockchain ledger. The secondary comparison results and the intermediate transfer information are integrated in a time-series manner according to the transfer time order to obtain the time-series traceability metadata set of the traceability data fragment; Based on the time-series traceability metadata set of the traceability data fragment, a product traceability link view of the traceability data fragment is obtained by calling a visualization graphics library.
10. The fusion blockchain-based cross-border supply chain trusted traceability and collaborative management system of claim 9, wherein, When the traceability link visualization encapsulation module executes the time-series traceability metadata set of the traceability data fragment and calls the visualization graphics library to obtain the product traceability link view of the traceability data fragment, it is specifically used for: Based on the time-series traceability metadata set, extract all traceability node identifiers and all directed edge identifiers; Based on the node identifier and the directed edge identifier, the node graphics and edge graphics drawing interface is called in the visualization graphics library to obtain the graphic canvas of the traceability data fragment; The temporal sequence information in the temporal traceability metadata set is mapped to the horizontal layout distance between nodes in the graphic canvas, and the intermediate flow information corresponding to each traceability node is mapped to the text label in the node graphic. Based on the horizontal layout distance and the text label, all traceability nodes and all directed edges are rendered sequentially on the graphic canvas to obtain the product traceability link view of the traceability data fragment.