Method based on cross-chain data traceability

Through the cross-chain data traceability method, the problem of data security leakage and high access threshold in the traceability center and single alliance chain systems is solved, and higher data privacy and system security are achieved, and system integration is simplified.

CN119006015APending Publication Date: 2024-11-22BUBI (BEIJING) NETWORK TECH CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202411210288.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the prior art, the traceability center has the risk of node failure and data security leakage. The access threshold of a single alliance chain system is high and the transparency is low, making it difficult to meet the needs of supply chain companies.

Method used

Using cross-chain data traceability method, the original product information is passed on to the source chain terminal, the verification node data is constructed to generate traceability proof data, and then signed and submitted to the blockchain storage, and the verification and storage is carried out through the on-chain traceability contract, using cross-border Chain smart contracts interact with multiple blockchains to realize independent storage and verification of data.

Benefits of technology

It lowers the access threshold, improves data privacy and system security, enhances attack resistance, simplifies system integration, and improves the security and transparency of the overall system through the collaborative work of different blockchains.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119006015A_ABST
    Figure CN119006015A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of block chains, and provides a cross-chain data traceability-based method. The cross-chain data traceability-based method comprises the steps of receiving original product information transmitted by a terminal at a source chain; constructing check node data of the chain according to the original product information, and generating traceability proof data containing a front chain data hash value; submitting the signed traceability proof data to a block chain for storage; and checking and storing the submitted signed traceability proof data through an on-chain traceability contract. According to the invention, the access threshold is reduced, the data privacy is improved, the leakage risk of security data is reduced, and the system integration is simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a method based on cross-chain data tracing. Background Art

[0002] In many fields such as supply chain management and food safety, traceability system providers provide the most important security guarantee. In order to ensure customer traceability and transparency of products and information, the traceability system needs to coordinate resources well in terms of technical support, supply chain organization, etc. according to different industries and large and small enterprises. At the same time, a reliable traceability system is needed to support the strong security, strong trust, and high transparency of the traceability process.

[0003] However, existing technologies often use traceability centers and single alliance chain systems to solve related problems, but the problems they face are becoming increasingly serious. (1) Traceability center: The system relies on a single or several central nodes, which poses a risk of node failure; data is stored in a centralized manner, requiring the supply chain to provide commercial privacy data, which poses a risk of security data leakage; under centralized management, data transparency is low, making it difficult to meet the trust requirements of all parties in the system. (2) Single alliance chain: Using blockchain technology, it ensures data transparency and immutability through distributed ledgers and smart contracts, but access to new nodes requires strict approval, which can easily make it difficult for supply chain-related companies to access and achieve traceability; data is distributed and stored on multiple nodes, and there is still a potential risk of data leakage; because the chain is controlled by a specific organization, there is also a risk of collusion within the specific organization to conduct collusion attacks. Summary of the invention

[0004] In view of this, the present invention provides a method based on cross-chain data traceability to solve the problems existing in the prior art of commercial privacy data, such as the risk of security data leakage, high access threshold and low transparency.

[0005] The present invention provides a method based on cross-chain data tracing, comprising:

[0006] S1. The original product information transmitted by the source link receiving terminal;

[0007] S2. Construct the verification node data of this chain according to the original product information, and generate traceability proof data containing the hash value of the previous chain data;

[0008] S3. Submit the signed traceability proof data to the blockchain for storage;

[0009] S4. The submitted signed traceability proof data is verified and stored through the on-chain traceability contract.

[0010] Furthermore, the original product information includes: product identification, production date, batch number, manufacturer information, product specifications, production location, quality inspection information and product certification information; the verification node data includes: service endpoint data, traceability public data, previous traceability data hash value and version information.

[0011] Furthermore, the signed traceability proof data includes: a combination of business data, verification node data, and a hash value of the previous chain data.

[0012] Furthermore, the verification includes: verification of the signature of the data, verification of the integrity of the data and verification of the consistency of the hash value of the data.

[0013] Furthermore, the method further comprises:

[0014] Any intermediate or terminal node initiates a traceability query;

[0015] The traceability module that receives the traceability query parses the traceability information on the chain;

[0016] Based on the traceability information, cyclically request the traceability module of the previous chain to obtain the traceability result data;

[0017] Returns all traceability data from the source chain to the current chain; wherein the traceability information includes hash data, signature data and business data; the traceability data includes public traceability data and traceability node information, wherein the public traceability data includes: signed traceability proof data, hash data, signature data, business data, traceability node information, traceability result data.

[0018] Furthermore, the traceability module parses the traceability information on the chain, including: the traceability module verifies the parsed traceability data, and compares the calculated local hash value with the hash value on the chain to verify the consistency of the data.

[0019] Furthermore, the traceability module parsing the traceability information on the chain also includes: the traceability module parses the previous chain traceability data of the service endpoint data request to obtain the traceability public data and traceability results of the previous traceability node.

[0020] Furthermore, the returning of all traceability data from the source chain to the current chain includes: if the traceability result returned by the previous chain is false, the traceability process stops and returns a traceability failure; otherwise, continue to request the previous chain traceability data forward until the source chain.

[0021] Furthermore, when uploading and storing the signed traceability proof data, a cross-chain smart contract is used to interact with multiple blockchain systems to complete the independent storage and verification of the data on each chain.

[0022] Furthermore, the signed traceability proof data on different business chains are stored separately with privacy protection and verified through a cross-chain verification mechanism when necessary.

[0023] Compared with the prior art, the present invention has the following beneficial effects:

[0024] 1. The present invention uses the chain of related parties only as the core related enterprises of the node, which reduces the complexity of cross-industry enterprise access and management complexity and lowers the access threshold;

[0025] 2. The present invention uses the principle that private data does not leave the domain, thus reducing the risk of data leakage, improving data privacy, and reducing the risk of security data leakage;

[0026] 3. The present invention enhances the security and anti-attack capability of the overall system through the collaborative work of different blockchains;

[0027] 4. The present invention simplifies system integration by allowing enterprises to integrate existing blockchain networks into a unified traceability system without the need to redevelop or migrate data. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions in the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0029] Figure 1 It is a flow chart of a method based on cross-chain data tracing provided by an embodiment of the present invention;

[0030] Figure 2 It is a schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.

[0032] A method according to the present invention is described in detail below with reference to the accompanying drawings.

[0033] Figure 1 This is a flow chart of a method based on cross-chain data tracing provided by an embodiment of the present invention. Figure 1As shown, the method based on cross-chain data traceability includes:

[0034] S1. The original product information transmitted by the source link receiving terminal;

[0035] Among them, the original product information includes: product identification, production date, batch number, manufacturer information, product specifications, production location, quality inspection information and product certification information, etc. It plays a vital role in the traceability process to ensure the accuracy and completeness of the traceability.

[0036] S2. Construct the verification node data of this chain according to the original product information, and generate traceability proof data containing the hash value of the previous chain data;

[0037] The verification node data includes: service endpoint data, traceability public data, previous traceability data hash value and version information.

[0038] In one embodiment, when constructing the verification node data, the data involved includes service endpoint data, traceability public data, data hash value of the previous chain, and version information. Service endpoint data refers to the specific location and contact information of the node in the network, traceability public data refers to the public product traceability information, the data hash value of the previous chain is used to connect to the previous block in the chain, and the version information is used to track data updates and changes. Through the combination of these data, the verification node data can ensure the reliability and consistency of the information on the chain.

[0039] S3. Submit the signed traceability proof data to the blockchain for storage;

[0040] The signed traceability proof data includes: a combination of business data, verification node data, and a hash value of the previous chain data.

[0041] In one embodiment, the signed traceability proof data includes not only business data and verification node data, but also the hash value of the previous chain data. Business data involves specific information about the product, such as production process, logistics information, etc. Verification node data is used to verify the legitimacy of the on-chain data; the hash value of the previous chain data plays a role in ensuring the association between the previous and next chain data. Through the combination of these data, the traceability proof data not only proves the authenticity of the current on-chain data, but can also be traced back to the data source of the previous chain through the hash value.

[0042] S4. The submitted signed traceability proof data is verified and stored through the on-chain traceability contract.

[0043] The verification includes: verification of the signature of the data, verification of the integrity of the data and verification of the consistency of the hash value of the data.

[0044] In one embodiment, data verification includes three aspects: first, verification of signatures to confirm the legitimacy of the data source; second, verification of data integrity to ensure that the data has not been tampered with during transmission; and finally, verification of data hash value consistency to verify the consistency between on-chain data and off-chain data. The above verification process ensures the accuracy and security of cross-chain data traceability.

[0045] The method further comprises:

[0046] Any intermediate or terminal node initiates a traceability query;

[0047] The traceability module that receives the traceability query parses the traceability information on the chain;

[0048] Based on the traceability information, cyclically request the traceability module of the previous chain to obtain the traceability result data;

[0049] Returns all traceability data from the source chain to the current chain; wherein the traceability information includes hash data, signature data and business data; the traceability data includes public traceability data and traceability node information.

[0050] The public traceability data includes: signed traceability certification data, hash data, signature data, business data, traceability node information, traceability result data, etc. The traceability data refers to all relevant data involved in the traceability process.

[0051] In one embodiment, when a node initiates a query, the traceability module will first parse the traceability information on the current chain and extract key data, such as hash data, signature data, and business data. Then, based on this information, the system will cyclically request the traceability module of the previous chain to obtain complete traceability result data, and finally return all traceability data from the source chain to the current chain to the query node. This process ensures the integrity and accuracy of the query results and enables users to obtain traceability information for the entire chain.

[0052] The traceability module parses the traceability information on the chain, including: the traceability module verifies the parsed traceability data, and compares the calculated local hash value with the hash value on the chain to verify the consistency of the data.

[0053] In one embodiment, when parsing the traceability information on the chain, the traceability module not only verifies the parsed data, but also calculates the local hash value and compares it with the hash value on the chain to verify the consistency of the data. This ensures that the data on the chain has not been tampered with, and also verifies the authenticity and integrity of the traceability information.

[0054] The traceability module analyzes the traceability information on the chain and further includes: the traceability module obtains the traceability public data and traceability results of the previous traceability node by parsing the previous chain traceability data requested by the service endpoint data.

[0055] In one embodiment, while parsing the information of the current chain, the traceability module also requests the traceability data of the previous chain by parsing the service endpoint data. This operation enables the system to obtain the public data and traceability results of the previous traceability node, thereby ensuring the coherence and integrity of the whole chain traceability. In this way, the system ensures that the traceability information of each node is based on the true reflection of the previous chain data.

[0056] The returning of all traceability data from the source chain to the current chain includes: if the traceability result returned by the previous chain is false, the traceability process stops and returns a traceability failure; otherwise, continue to request the previous chain traceability data forward until the source chain.

[0057] In one embodiment, when performing a recursive query of traceability data, the system will decide whether to continue tracing based on the traceability result returned by the previous chain. If the traceability result returned by the previous chain is false, the traceability process will stop immediately and return a traceability failure message; if the result is true, the system will continue to request the previous chain data forward until the source chain. This mechanism ensures the effectiveness and accuracy of the traceability process.

[0058] When uploading and storing the signed traceability proof data, a cross-chain smart contract is used to interact with multiple blockchain systems to complete the independent storage and verification of the data on each chain.

[0059] In one embodiment, when uploading and storing the signed traceability proof data, the system uses cross-chain smart contracts to interact with multiple blockchain systems. The data on each chain will be independently stored and verified through smart contracts to ensure that the data between different chains can maintain consistency and integrity. This mechanism greatly improves the security and credibility of data traceability.

[0060] The signed traceability proof data on different business chains are stored separately with privacy protection, and verified through a cross-chain verification mechanism when necessary.

[0061] In one embodiment, in order to ensure the integrity, reliability and security of the data, the system stores the signed traceability proof data on different business chains with privacy protection. Only when necessary, these data will be verified through the cross-chain verification mechanism. In this way, the system not only ensures the privacy of the data, but also ensures the authenticity and consistency of the data through the cross-chain verification mechanism, thereby effectively preventing data leakage and tampering.

[0062] The above scheme receives the original product information transmitted by the terminal from the source chain through the system, and then the system constructs the verification node data of this chain, which includes the hash value of the previous chain data, connects different chains, and ensures the integrity of the data. Then, the system generates traceability proof data and signs it to ensure its authenticity and non-tamperability. Finally, the signed traceability proof data is submitted to the blockchain for storage, and the on-chain traceability contract verifies and stores the submitted data to ensure the transparency and non-tamperability of the traceability process. Among them, the submitted signed traceability proof data is verified and stored by the on-chain traceability contract. This method ensures the transparency and non-tamperability of the data.

[0063] The present invention utilizes the chain's related parties to be only the core-related enterprises of the node, which reduces the complexity of cross-industry enterprise access and management complexity, and lowers the access threshold; utilizes the privacy data not to leave the domain, reduces the risk of data leakage, improves data privacy, and reduces the risk of security data leakage; through the collaborative work of different blockchains, enhances the security and anti-attack capabilities of the overall system; and simplifies system integration by allowing enterprises to integrate existing blockchain networks into a unified traceability system without the need to redevelop or migrate data.

[0064] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0065] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.

[0066] Figure 2 It is a schematic diagram of a computer device provided by an embodiment of the present invention.

[0067] Figure 2 Schematic diagram of a computer device 2 provided in an embodiment of the present disclosure. Figure 2 As shown, the computer device 2 of this embodiment includes: a processor 20, a memory 21, and a computer program 22 stored in the memory 21 and executable on the processor 20. When the processor 20 executes the computer program 22, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 20 executes the computer program 22, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0068] Exemplarily, the computer program 22 may be divided into one or more modules / units, which are stored in the memory 21 and executed by the processor 20 to complete the present disclosure. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 22 in the computer device 2.

[0069] The computer device 2 may be a desktop computer, a notebook computer, a PDA, a cloud server, or other computer devices. The computer device 2 may include, but is not limited to, a processor 20 and a memory 21. Those skilled in the art will appreciate that Figure 2 It is only an example of computer device 2 and does not constitute a limitation of computer device 2. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device may also include input and output devices, network access devices, buses, etc.

[0070] The processor 20 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0071] The memory 21 may be an internal storage unit of the computer device 2, for example, a hard disk or memory of the computer device 2. The memory 21 may also be an external storage device of the computer device 2, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (FlashCard), etc. equipped on the computer device 2. Further, the memory 21 may also include both an internal storage unit and an external storage device of the computer device 2. The memory 21 is used to store computer programs and other programs and data required by the computer device. The memory 21 may also be used to temporarily store data that has been output or is to be output.

[0072] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0073] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0074] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this disclosure.

[0075] In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus / computer equipment and methods can be implemented in other ways. For example, the apparatus / computer equipment embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. Multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection of the apparatus or unit, which may be electrical, mechanical or other forms.

[0076] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0077] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0078] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present disclosure implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.

[0079] The above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should all be included in the protection scope of the present disclosure.

[0080] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0081] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.

Claims

1. A method based on cross-chain data tracing, characterized in that: include: S1. The original product information transmitted by the source link receiving terminal; S2. Construct the verification node data of this chain according to the original product information, and generate traceability proof data containing the hash value of the previous chain data; S3. Submit the signed traceability proof data to the blockchain for storage; S4. The submitted signed traceability proof data is verified and stored through the on-chain traceability contract.

2. The method based on cross-chain data tracing according to claim 1 is characterized in that: The original product information includes: product identification, production date, batch number, manufacturer information, product specifications, production location, quality inspection information and product certification information; the verification node data includes: service endpoint data, traceability public data, previous traceability data hash value and version information.

3. The method based on cross-chain data tracing according to claim 1 is characterized in that: The signed traceability proof data includes: a combination of business data, verification node data, and a hash value of the previous chain data.

4. The method based on cross-chain data tracing according to claim 1 is characterized in that: The verification includes: verification of the signature of the data, verification of the integrity of the data and verification of the consistency of the hash value of the data.

5. The method based on cross-chain data tracing according to claim 1 is characterized in that: The method further comprises: Any intermediate or terminal node initiates a traceability query; The traceability module that receives the traceability query parses the traceability information on the chain; Based on the traceability information, cyclically request the traceability module of the previous chain to obtain the traceability result data; Returns all traceability data from the source chain to the current chain; wherein the traceability information includes hash data, signature data and business data; the traceability data includes public traceability data and traceability node information, wherein the public traceability data includes: signed traceability proof data, hash data, signature data, business data, traceability node information, traceability result data.

6. The method based on cross-chain data tracing according to claim 5 is characterized in that: The traceability module parses the traceability information on the chain, including: the traceability module verifies the parsed traceability data, and compares the calculated local hash value with the hash value on the chain to verify the consistency of the data.

7. The method based on cross-chain data tracing according to claim 6 is characterized in that: The traceability module analyzes the traceability information on the chain and further includes: the traceability module obtains the traceability public data and traceability results of the previous traceability node by parsing the previous chain traceability data requested by the service endpoint data.

8. The method based on cross-chain data tracing according to claim 5 is characterized in that: The returning of all traceability data from the source chain to the current chain includes: if the traceability result returned by the previous chain is false, the traceability process stops and returns a traceability failure; otherwise, continue to request the previous chain traceability data forward until the source chain.

9. The method based on cross-chain data tracing according to claim 1 is characterized in that: When uploading and storing the signed traceability proof data, a cross-chain smart contract is used to interact with multiple blockchain systems to complete the independent storage and verification of the data on each chain.

10. The method based on cross-chain data tracing according to claim 1 is characterized in that: The signed traceability proof data on different business chains are stored separately with privacy protection, and verified through a cross-chain verification mechanism when necessary.

Citation Information

Cited By

  • Traditional Chinese medicine whole-chain informatization traceability management method and system

    CN120707174A

  • A method and system for full-chain information-based traceability management of traditional Chinese medicine

    CN120707174B

  • Digital identity authentication and tracing method based on block chain

    CN120768702A

  • Digital calibration and tracing method for bulk commerce and trade transaction monomer combined truck scale

    CN121167758A