CN112507392A - Cross-chain data interaction data tracing method and system - Google Patents

Cross-chain data interaction data tracing method and system Download PDF

Info

Publication number
CN112507392A
CN112507392A CN202011451141.7A CN202011451141A CN112507392A CN 112507392 A CN112507392 A CN 112507392A CN 202011451141 A CN202011451141 A CN 202011451141A CN 112507392 A CN112507392 A CN 112507392A
Authority
CN
China
Prior art keywords
information
tracing
different
identifier
original
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011451141.7A
Other languages
Chinese (zh)
Inventor
张质彬
朱清
李征光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lianbo Chengdu Technology Co ltd
Original Assignee
Lianbo Chengdu Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lianbo Chengdu Technology Co ltd filed Critical Lianbo Chengdu Technology Co ltd
Priority to CN202011451141.7A priority Critical patent/CN112507392A/en
Publication of CN112507392A publication Critical patent/CN112507392A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products

Abstract

The application discloses a data tracing method and a data tracing system for cross-link data interaction, wherein different tracing information is generated by first information according to different parameters of the first information; storing the tracing information on different block chains, wherein the tracing information on the different block chains is associated through a first information identifier; when the first information needs to be traced, sequentially accessing the block chains according to a tracing request to obtain the tracing information, and obtaining original information corresponding to the first information according to the tracing information. And generating different tracing information according to the first information, storing the tracing information in a cross-chain manner, and acquiring the original information through cross-chain interaction between the block chains during data tracing. Because the source tracing information is stored on the basis of the chain, the safety of the source tracing information is ensured, and the source tracing information is not easy to be tampered. When tracing, the source is also verified through multiple times, so that the safety of original information is effectively ensured, and the accuracy of data tracing is improved.

Description

Cross-chain data interaction data tracing method and system
Technical Field
The application relates to the technical field of block chains, in particular to a data tracing method and system for cross-chain data interaction.
Background
The source tracing is the source tracing, the root and the source of things are searched, and the food safety management system is established and perfected gradually in the European Union for dealing with the problem of the mad cow disease in 1997 at first. The food safety management system is promoted by the government, covers the upstream and downstream of the whole food industry chain such as food production bases, food processing enterprises, food terminal sales and the like, and is used for sharing information through special hardware equipment similar to a bank cash dispenser system to serve final consumers. Once the quality of the food is in a problem at the consumer end, the online query can be carried out through the traceability codes on the food label, all circulation information of a production enterprise of the food, the production place of the food, a specific farmer and the like can be found, and the corresponding legal responsibility of an accident party is determined. The system has important significance for food safety and self-restraint of the food industry. The technology is widely applied at present, and the shadow of the tracing technology can be seen in various industries such as medicines, clothes, electronics, fishing boats and the like except foods.
Data tracing technologies have roughly three types: one is RFID wireless radio frequency technology, a label with a chip is attached to a product package, relevant information can be automatically acquired and read when the product enters or exits a warehouse and is transported, and the flow direction of the product can be recorded on the chip. The one is the two-dimensional code, and the consumer only needs to shoot the two-dimensional code through the cell-phone of taking the camera, just can inquire the relevant information of product, and the record of inquiry all can remain in the system, in case the product needs to recall just can directly send the SMS for the consumer, realizes accurate recall. And the bar code is added with the product batch information, so that the production cost of the production enterprise is not increased basically by adopting the method.
Although the existing data tracing technology can realize data tracing, if the tracing identifier is damaged and tampered, the accuracy of data tracing cannot be ensured.
Disclosure of Invention
In order to solve the technical problems, the following technical scheme is provided:
in a first aspect, an embodiment of the present application provides a data tracing method for cross-chain data interaction, where the method includes: generating different tracing information for the first information according to different parameters of the first information; storing the tracing information on different block chains, wherein the tracing information on the different block chains is associated through a first information identifier; when the first information needs to be traced, sequentially accessing the block chains according to a tracing request to obtain the tracing information, and obtaining original information corresponding to the first information according to the tracing information.
By adopting the implementation mode, different tracing information is generated according to the first information, the tracing information is stored in a cross-chain mode, and when data tracing is carried out, the original information is acquired through cross-chain interaction between the block chains. Because the source tracing information is stored on the basis of the chain, the safety of the source tracing information is ensured, and the source tracing information is not easy to be tampered. And when tracing, the source is also verified through multiple times, so that the safety of the original information is effectively ensured, and the accuracy of data tracing is improved.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the generating different tracing information from the first information according to different parameters of the first information includes: acquiring an information identifier, a timestamp and spatial information of the first information; generating first tracing information from the spatial information of the first information; the first tracing information is added with a time stamp to generate second tracing information; and adding the second tracing information with the information identifier to generate third tracing information.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the storing the tracing information on different block chains includes: determining block chains of different storage spaces according to different tracing information; and respectively storing the first tracing information, the second tracing information and the third tracing information to corresponding block chains.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, when the first information needs to be traced, sequentially accessing the blockchains according to a tracing request to obtain the tracing information, and obtaining original information corresponding to the first information according to the tracing information includes: obtaining third traceability information carrying the information identification according to the information identification of the first information; then determining the second tracing information from the third tracing information and determining the time stamp of the first information; acquiring the first tracing information from the second tracing information, and determining spatial information of the first information; and acquiring original information corresponding to the first information according to the information identifier, the timestamp and the spatial information.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the obtaining, according to the information identifier, the timestamp, and the spatial information, original information corresponding to the first information includes: determining a time parameter of the original information according to the information identifier and the timestamp; then obtaining a storage field of the original information in the spatial information; and acquiring the original information according to the time parameter and the storage field.
In a second aspect, an embodiment of the present application provides a data tracing system for cross-chain data interaction, where the system includes: the information generating module is used for generating different tracing information from the first information according to different parameters of the first information; the storage module is used for storing the traceability information on different block chains, and the traceability information on the different block chains is associated through a first information identifier; and the source tracing module is used for sequentially accessing the block chains to obtain the source tracing information according to the source tracing request and obtaining the original information corresponding to the first information according to the source tracing information when the first information needs to be traced.
With reference to the second surface, in a first possible implementation manner of the second aspect, the information generating module includes: the first acquisition unit is used for acquiring the information identifier, the time stamp and the spatial information of the first information; the first information generating unit is used for generating first traceability information from the spatial information of the first information; the second information generating unit is used for generating second traceability information by adding a time stamp to the first traceability information; and the third information generating unit is used for adding the information identifier to the second tracing information to generate third tracing information.
With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the storage module includes: the first determining unit is used for determining block chains of different storage spaces according to different tracing information; and the storage unit is used for respectively storing the first tracing information, the second tracing information and the third tracing information to the corresponding block chains.
With reference to the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the source tracing module includes: the second obtaining unit is used for obtaining third traceability information carrying the information identifier according to the information identifier of the first information; a second determining unit, configured to then determine the second tracing information from the third tracing information, and determine a timestamp of the first information; a third determining unit, configured to obtain the first tracing information from the second tracing information, and determine spatial information of the first information; and the third acquisition unit is used for acquiring the original information corresponding to the first information according to the information identifier, the timestamp and the spatial information.
With reference to the third possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the third obtaining unit includes: the first determining subunit is used for determining the time parameter of the original information according to the information identifier and the timestamp; the first obtaining subunit is configured to obtain a storage field of the original information in the spatial information; and the second acquisition subunit is used for acquiring the original information according to the time parameter and the storage field.
Drawings
Fig. 1 is a schematic flowchart of a data tracing method for cross-chain data interaction according to an embodiment of the present application;
fig. 2 is a schematic diagram of a data tracing system for cross-chain data interaction according to an embodiment of the present application.
Detailed Description
The present invention will be described with reference to the accompanying drawings and embodiments.
Fig. 1 is a schematic flowchart of a data tracing method for cross-chain data interaction provided in an embodiment of the present application, and referring to fig. 1, the data tracing method for cross-chain data interaction provided in the present embodiment includes:
s101, generating different tracing information according to the first information according to different parameters of the first information.
Specifically, the information identifier, the timestamp and the spatial information of the first information are obtained, and the spatial information of the first information is generated into first tracing information. The first tracing information is added with a time stamp to generate second tracing information; and adding the second tracing information with the information identifier to generate third tracing information.
In this embodiment, the information identifier may be the name of a product, and there are multiple batches for a product, so the timestamp is used to determine the batch of the product. For products in the same batch and at different time, each product can give out spatial information, and the reaction on the information is that the information of different products corresponds to different byte positions of an information string. The original information of the product can be obtained through the corresponding character information, but the original information of the product is not carried on the character information, and the original information of the product can be called out from a block chain storing the original information of the product according to the character information.
For example, the encoded product information data of one batch is 1 to 1024, and the corresponding code of the original product information of each product is 2 bytes, so that 1 to 1024 can correspond to 512 different products in the same batch.
S102, storing the tracing information on different block chains, wherein the tracing information on different block chains is associated through a first information identifier.
Determining block chains of different storage spaces according to different tracing information;
and respectively storing the first tracing information, the second tracing information and the third tracing information to corresponding block chains.
The block chains have different storage spaces on the chains, and the information amount from the first tracing information to the third tracing information is increased in sequence, so that the tracing information with large information amount is stored on the block chain with larger storage space.
S103, when the first information needs to be traced, sequentially accessing the block chains according to a tracing request to obtain the tracing information, and obtaining the original information corresponding to the first information according to the tracing information.
And obtaining third tracing information carrying the information identifier according to the information identifier of the first information. The second provenance information is then determined from the third provenance information, and a timestamp of the first information is determined. And acquiring the first tracing information from the second tracing information, and determining the spatial information of the first information. And acquiring original information corresponding to the first information according to the information identifier, the timestamp and the spatial information.
Specifically, the time parameter of the original information is determined according to the information identifier and the timestamp, and then the storage field of the original information in the spatial information is obtained. And acquiring the original information according to the time parameter and the storage field.
As can be seen from the foregoing embodiments, in the data tracing method for cross-chain data interaction provided in this embodiment, different tracing information is generated according to first information, the tracing information is stored in a cross-chain manner, and when data tracing is performed, original information is acquired through cross-chain interaction between block chains. Because the source tracing information is stored on the basis of the chain, the safety of the source tracing information is ensured, and the source tracing information is not easy to be tampered. And when tracing, the source is also verified through multiple times, so that the safety of the original information is effectively ensured, and the accuracy of data tracing is improved.
Corresponding to the data tracing method for cross-chain data interaction provided by the above embodiment, the present application also provides an embodiment of a data tracing system for cross-chain data interaction.
Referring to FIG. 2, a data traceability system 20 for cross-chain data interaction comprises: an information generation module 201, a storage module 202 and a source tracing module 203.
The information generating module 201 is configured to generate different tracing information from the first information according to different parameters of the first information. The storage module 202 is configured to store the tracing information on different blockchains, where the tracing information on different blockchains is associated through a first information identifier. The source tracing module 203 is configured to, when first information needs to be traced, sequentially access the block chains according to a source tracing request to obtain the source tracing information, and obtain original information corresponding to the first information according to the source tracing information.
Further, the information generating module 201 includes: the device comprises a first acquisition unit, a first information generation unit, a second information generation unit and a third information generation unit.
The first obtaining unit is configured to obtain an information identifier, a timestamp, and spatial information of the first information. The first information generating unit is configured to generate first tracing information from the spatial information of the first information. And the second information generating unit is used for generating second traceability information by adding a time stamp to the first traceability information. And the third information generating unit is used for adding the information identifier to the second tracing information to generate third tracing information.
The storage module 202 includes: a first determination unit and a storage unit.
The first determining unit is configured to determine the block chains of different storage spaces according to different tracing information. The storage unit is configured to store the first tracing information, the second tracing information, and the third tracing information in corresponding block chains, respectively.
The tracing module 203 includes: the device comprises a second acquisition unit, a second determination unit, a third determination unit and a third acquisition unit.
The second obtaining unit is configured to obtain, according to the information identifier of the first information, third traceability information carrying the information identifier. The second determining unit is configured to then determine the second tracing information from the third tracing information, and determine a timestamp of the first information. The third determining unit is configured to obtain the first tracing information from the second tracing information, and determine spatial information of the first information. And the third obtaining unit is used for obtaining the original information corresponding to the first information according to the information identifier, the timestamp and the spatial information.
Wherein the third acquiring unit includes: the device comprises a first determining subunit, a first acquiring subunit and a second acquiring subunit.
And the first determining subunit is used for determining the time parameter of the original information according to the information identifier and the timestamp. The first obtaining subunit is configured to obtain a storage field of the original information in the spatial information. And the second obtaining subunit is configured to obtain the original information according to the time parameter and the storage field.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Of course, the above description is not limited to the above examples, and technical features that are not described in this application may be implemented by or using the prior art, and are not described herein again; the above embodiments and drawings are only for illustrating the technical solutions of the present application and not for limiting the present application, and the present application is only described in detail with reference to the preferred embodiments instead, it should be understood by those skilled in the art that changes, modifications, additions or substitutions within the spirit and scope of the present application may be made by those skilled in the art without departing from the spirit of the present application, and the scope of the claims of the present application should also be covered.

Claims (10)

1. A data tracing method for cross-chain data interaction is characterized by comprising the following steps:
generating different tracing information for the first information according to different parameters of the first information;
storing the tracing information on different block chains, wherein the tracing information on the different block chains is associated through a first information identifier;
when the first information needs to be traced, sequentially accessing the block chains according to a tracing request to obtain the tracing information, and obtaining original information corresponding to the first information according to the tracing information.
2. The data tracing method for cross-chain data interaction according to claim 1, wherein the generating different tracing information from the first information according to different parameters of the first information comprises:
acquiring an information identifier, a timestamp and spatial information of the first information;
generating first tracing information from the spatial information of the first information;
the first tracing information is added with a time stamp to generate second tracing information;
and adding the second tracing information with the information identifier to generate third tracing information.
3. The method of claim 2, wherein the storing the tracing information on different blockchains comprises:
determining block chains of different storage spaces according to different tracing information;
and respectively storing the first tracing information, the second tracing information and the third tracing information to corresponding block chains.
4. The method for tracing source of data interacting across chains according to claim 3, wherein when first information needs to be traced, the block chains are sequentially accessed according to a tracing request to obtain the tracing information, and original information corresponding to the first information is obtained according to the tracing information, and the method comprises:
obtaining third traceability information carrying the information identification according to the information identification of the first information;
then determining the second tracing information from the third tracing information and determining the time stamp of the first information;
acquiring the first tracing information from the second tracing information, and determining spatial information of the first information;
and acquiring original information corresponding to the first information according to the information identifier, the timestamp and the spatial information.
5. The method for tracing data source of cross-chain data interaction according to claim 4, wherein the obtaining of the original information corresponding to the first information according to the information identifier, the timestamp, and the spatial information includes:
determining a time parameter of the original information according to the information identifier and the timestamp;
then obtaining a storage field of the original information in the spatial information;
and acquiring the original information according to the time parameter and the storage field.
6. A data tracing system for cross-chain data interaction, the system comprising:
the information generating module is used for generating different tracing information from the first information according to different parameters of the first information;
the storage module is used for storing the traceability information on different block chains, and the traceability information on the different block chains is associated through a first information identifier;
and the source tracing module is used for sequentially accessing the block chains to obtain the source tracing information according to the source tracing request and obtaining the original information corresponding to the first information according to the source tracing information when the first information needs to be traced.
7. The cross-chain data interaction data tracing system of claim 6, wherein said information generation module comprises:
the first acquisition unit is used for acquiring the information identifier, the time stamp and the spatial information of the first information;
the first information generating unit is used for generating first traceability information from the spatial information of the first information;
the second information generating unit is used for generating second traceability information by adding a time stamp to the first traceability information;
and the third information generating unit is used for adding the information identifier to the second tracing information to generate third tracing information.
8. The data tracing method for cross-chain data interaction according to claim 7, wherein the storage module comprises:
the first determining unit is used for determining block chains of different storage spaces according to different tracing information;
and the storage unit is used for respectively storing the first tracing information, the second tracing information and the third tracing information to the corresponding block chains.
9. The data tracing method for cross-chain data interaction according to claim 8, wherein the tracing module comprises:
the second obtaining unit is used for obtaining third traceability information carrying the information identifier according to the information identifier of the first information;
a second determining unit, configured to then determine the second tracing information from the third tracing information, and determine a timestamp of the first information;
a third determining unit, configured to obtain the first tracing information from the second tracing information, and determine spatial information of the first information;
and the third acquisition unit is used for acquiring the original information corresponding to the first information according to the information identifier, the timestamp and the spatial information.
10. The data tracing method for cross-chain data interaction according to claim 9, wherein the third obtaining unit includes:
the first determining subunit is used for determining the time parameter of the original information according to the information identifier and the timestamp;
the first obtaining subunit is configured to obtain a storage field of the original information in the spatial information;
and the second acquisition subunit is used for acquiring the original information according to the time parameter and the storage field.
CN202011451141.7A 2020-12-10 2020-12-10 Cross-chain data interaction data tracing method and system Pending CN112507392A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011451141.7A CN112507392A (en) 2020-12-10 2020-12-10 Cross-chain data interaction data tracing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011451141.7A CN112507392A (en) 2020-12-10 2020-12-10 Cross-chain data interaction data tracing method and system

Publications (1)

Publication Number Publication Date
CN112507392A true CN112507392A (en) 2021-03-16

Family

ID=74971984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011451141.7A Pending CN112507392A (en) 2020-12-10 2020-12-10 Cross-chain data interaction data tracing method and system

Country Status (1)

Country Link
CN (1) CN112507392A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109377244A (en) * 2018-10-24 2019-02-22 武汉珞樱联创信息科技有限公司 A kind of quick traceability system of food and method based on multichain interconnection block chain network
CN110490282A (en) * 2019-08-21 2019-11-22 湖南道业信息科技有限公司 Source tracing method, device of tracing to the source, traceability system and storage medium
CN110910150A (en) * 2019-11-12 2020-03-24 神州买卖提(北京)电子商务有限公司 Correlation method and device for tracing source based on Internet of things technology and combined block chain
CN111353906A (en) * 2020-03-10 2020-06-30 浙江冒个泡电子商务有限公司 Agricultural product tracing method and system
CN111861348A (en) * 2020-08-04 2020-10-30 北京物资学院 Cold chain traceability system based on block chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109377244A (en) * 2018-10-24 2019-02-22 武汉珞樱联创信息科技有限公司 A kind of quick traceability system of food and method based on multichain interconnection block chain network
CN110490282A (en) * 2019-08-21 2019-11-22 湖南道业信息科技有限公司 Source tracing method, device of tracing to the source, traceability system and storage medium
CN110910150A (en) * 2019-11-12 2020-03-24 神州买卖提(北京)电子商务有限公司 Correlation method and device for tracing source based on Internet of things technology and combined block chain
CN111353906A (en) * 2020-03-10 2020-06-30 浙江冒个泡电子商务有限公司 Agricultural product tracing method and system
CN111861348A (en) * 2020-08-04 2020-10-30 北京物资学院 Cold chain traceability system based on block chain

Similar Documents

Publication Publication Date Title
US10868676B2 (en) Computerized apparatus for secure serialization of supply chain product units
EP3262785B1 (en) Tracking unitization occurring in a supply chain
US20180174094A1 (en) Blockchain-based food product shelf-life management
WO2019165126A1 (en) System and methods for querying the distribution path of product units within a supply chain
WO2021128588A1 (en) Tracing method and system for item circulation system
US9473303B2 (en) Method and system for product authentication
KR20220023752A (en) Methods and systems for tracking and tracing supply chains by use of barcodes and peer review
CN112163801A (en) Cargo warehouse management method and system based on block chain
US20180314868A1 (en) Systems and methods for robust protection of item authentication, tracking and tracing against tag duplication
CN112435040A (en) Block chain based product production and use track tracing method
CN111667281B (en) Block chain agricultural product tracing system and tracing method based on electronic scale nodes
CN109299952B (en) System and method for realizing correlated retrieval of multiple commodity codes
US10304030B1 (en) Method and system to automatically track and manage assets using mobile devices
CN111553636A (en) Logistics tracking and tracing method, device and system based on UCL and storage medium
CN113298534A (en) Code scanning terminal and code scanning method
CN112507392A (en) Cross-chain data interaction data tracing method and system
CN108898199B (en) Product identification code conversion method and device and product management system
US11475747B2 (en) Electronic product code (EPC) encoding for retailer-specific radio-frequency identification (RFID) tags
KR20160120576A (en) System and method for lifecycle history management of products
CN110472707A (en) Product certification system and product certification method
CN113506118A (en) Livestock product information tracing method, device, equipment and medium
CN112561544A (en) Commodity anti-counterfeiting query method and device and storage medium
CN114490868A (en) Data synchronization method, processing method and system for spanning multiple service systems
CN110570206A (en) commodity tracing method and device
WO2020223905A1 (en) Method for tracking product history

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination