A hierarchical traceability system and method for the entire industry chain
Traceability code is generated through multi-level traceability systems and encryption algorithms, and information is gradually decrypted and obtained layer by layer, solving the problem of traceability of raw materials and semi-finished products, realizing the smooth flow of information and the integrity of the traceability chain in the entire chain, breaking the upstream and downstream information islands, and ensuring that The security of information flow.
Patent Information
- Application Number
- CN202010428178.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-20
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2040-05-20
AI Technical Summary
The existing anti-counterfeiting traceability system for commodity anti-counterfeiting is difficult to effectively trace the raw materials and semi-finished products, resulting in serious information silos between upstream and downstream, inconvenient management, independent purchase and sales and inventory systems, and incomplete traceability chains.
Using a multi-level traceability system, a unique traceability code is generated through the encryption algorithm of the first-level, second-level and third-level traceability system, and the traceability information is gradually decrypted and obtained, and the query records are registered using blockchain and timestamp technology to ensure that The progression and control of information flow are carried out layer by layer.
Open up the independent traceability system from the upstream and downstream, solve the problem of information barriers from raw materials to finished products, realize the smooth flow of information in the entire chain and the integrity of the traceability chain, eliminate information islands, and ensure the safety and reliability of information flow.
Smart Images

Figure CN113706163B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of commodity anti-counterfeiting, and in particular to a hierarchical tracing system and method for the entire industry chain. Background Art
[0002] The commodity anti-counterfeiting and traceability systems on the market have become mature, and the functions they implement are becoming more and more complete. When shopping, consumers can use QR codes, electronic tags, AR and other technologies to query commodity information and verify anti-counterfeiting. The collection of commodity traceability information currently adopts methods such as uploading pictures, texts, videos, etc. through QR code scanning. This type of traceability information logging is the current mainstream method, but there are still certain problems with the traceability of raw materials and semi-finished products. The patent with application number 201910081194.5 discloses a tobacco anti-counterfeiting and traceability method and system based on blockchain. It generates a first mark, a second mark and a third mark for each pack of cigarettes, each carton of cigarettes and each box of cigarettes, and stores them in the blockchain, which can only solve the anti-counterfeiting and traceability problem of retail products. At present, the traceability of raw materials and semi-finished products of commodities is all done by mapping, that is, by looking up a table in a database. For example, if the cargo code of a batch of goods is 1234, if you want to find the raw material code of this batch of goods, you need to "look up" the database to find the raw material code abcd corresponding to this batch of goods, but this correspondence is disordered. The next time you use the cargo code 2345 to "look up the table", the corresponding raw material code you get may be egfd; it is not a relationship where 1 corresponds to a and 2 corresponds to b. At present, the actual situation in most supply chains is that it is difficult to even "look up the table" between upstream and downstream. In many cases, due to management problems, cost problems or random coding, they cannot communicate and check each other at all, resulting in no smooth flow of information between upstream and downstream. Even if you are really willing to check, you have to use the information of shipping time and shipping location to reversely infer the corresponding code, and the information island phenomenon is very serious. This causes information barriers from raw materials to finished products, inconvenient management, independent purchase, sales and inventory systems, and incomplete traceability chains.
[0003] Therefore, a cross-organizational hierarchical traceability system is needed to solve the information silos of each traceability system, turn the walls between the information islands into doors, and realize full-chain traceability. Summary of the invention
[0004] In order to overcome the defects and deficiencies in the prior art, the present invention discloses a hierarchical traceability system and method for the entire industrial chain. In view of this, the present invention proposes a system and method that can connect the upstream and downstream independent traceability systems, and integrate the purchase, sales and inventory system to achieve data flow. For multi-level traceability and purchase, sales and inventory databases corresponding to multi-level traceability codes, the traceability codes are used as chains to connect various information islands. The first-level traceability system is used for the production management of raw materials, the second-level traceability system is used for the management of raw material rough processing products, and the third-level traceability system is used for finished product production management. First, the first-level traceability system generates a unique first-level traceability code according to a specific code generation rule to mark a certain raw material or a batch of raw materials; when this batch of raw materials arrives at the second-level factory, it is roughly processed. Generally speaking, there are multiple products after rough processing. At this time, the second-level traceability system will encrypt according to a certain field in the first-level traceability code using different encryption algorithms, and generate multiple different second-level traceability codes corresponding to different processed products; when the third-level factory further processes the rough processed product as the main raw material to produce a finished product, it will generate a third-level traceability code at the same time.
[0005] Specifically, the present invention is implemented through the following technical solutions:
[0006] A first aspect of the present invention provides a hierarchical traceability system for the entire industry chain, including multiple traceability systems, each traceability system corresponding to a traceability code.
[0007] Furthermore, the multiple traceability systems are divided into different levels in sequence, and the traceability code of the traceability system of the next level is generated by encrypting the traceability code of the traceability system of the previous level.
[0008] Furthermore, the hierarchical traceability system includes at least a first-level traceability system, a second-level traceability system and a third-level traceability system. The first-level traceability system encrypts and generates a first-level traceability code, the second-level traceability system encrypts and generates a second-level traceability code based on the first-level traceability code, and the third-level traceability system encrypts and generates a third-level traceability code based on the second-level traceability code.
[0009] Furthermore, the first-level traceability code is applied to raw materials, the second-level traceability code is applied to semi-processed products, and the third-level traceability code is applied to retail products.
[0010] Furthermore, the secondary traceability code and the tertiary traceability code are encrypted using one of the encryption algorithms of AES, RSA / ECC, Diffie-Hellman or SHA-1 / SHA-256, and the secondary traceability code and the tertiary traceability code are obtained using different encryption algorithms.
[0011] Furthermore, the query records of the first-level traceability code, the second-level traceability code and the third-level traceability code are registered through blockchain and timestamp technology.
[0012] Furthermore, after the third-level traceability system decrypts the third-level traceability code to obtain the second-level traceability code, it obtains the traceability information corresponding to the second-level traceability code from the second-level traceability system; after the second-level traceability system decrypts the second-level traceability code to obtain the first-level traceability code, it obtains the traceability information corresponding to the first-level traceability code from the first-level traceability system.
[0013] The second aspect of the present invention provides a hierarchical traceability method for the entire industry chain, using the hierarchical traceability system for the entire industry chain as described above, which includes at least a primary traceability system, a secondary traceability system, and a tertiary traceability system, and the steps of the method are as follows:
[0014] S01: The user scans the third-level traceability code on the product and requests product traceability information from the third-level traceability system;
[0015] S02: The three-level traceability system returns product traceability information to the user;
[0016] S03: The user requests the traceability information of semi-finished products and raw materials from the third-level traceability system;
[0017] S04: the third-level traceability system decodes the third-level traceability code to obtain a second-level traceability code, the second-level traceability code corresponds to the semi-finished product, and transmits the second-level traceability code to the second-level traceability system;
[0018] S05: The secondary traceability system verifies the secondary traceability code, decodes the secondary traceability code into a primary traceability code, and transmits the primary traceability code to the primary traceability system;
[0019] S06: The primary traceability system verifies the primary traceability code and sends the raw material traceability information corresponding to the primary traceability code to the secondary traceability system;
[0020] S07: The secondary traceability system sends the semi-finished product traceability information and the raw material traceability information corresponding to the secondary traceability code to the tertiary traceability system;
[0021] S08: The third-level traceability information sends the semi-finished product traceability information and the raw material traceability information corresponding to the second-level traceability code to the user.
[0022] Compared with the prior art, the present invention has the following advantages:
[0023] 1) Cross-organizational and hierarchical traceability solves the problems of information barriers from raw materials to finished products, inconvenient management, independent purchase, sales and inventory systems, and incomplete traceability chains.
[0024] 2) Use the system’s unique decryption method to ensure the progressive flow of information, eliminate the information islands of each traceability system, establish an information flow control mechanism, and achieve full-chain traceability. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 : A schematic diagram of a traceability code generation process of a hierarchical traceability system for the entire industry chain provided by Example 1 of the present invention;
[0026] Figure 2 : A schematic diagram of a traceability method flow of a hierarchical traceability method for the entire industrial chain provided by Example 2 of the present invention;
[0027] Figure 3 : A schematic diagram of an authentication and certification process of a hierarchical tracing method for the entire industrial chain provided by Embodiment 2 of the present invention;
[0028] Figure 4 : A schematic diagram of the traceability method flow of a hierarchical traceability method for the entire industrial chain provided in Example 3 of the present invention. DETAILED DESCRIPTION
[0029] The present invention provides a hierarchical tracing system and method for the entire industry chain.
[0030] The hierarchical traceability system of the entire industry chain includes multiple traceability systems, and each traceability system corresponds to a traceability code. Multiple traceability systems are divided into different levels in order, and the traceability code of the latter traceability system is encrypted and generated by the traceability code of the previous traceability system. The hierarchical traceability system of the entire industry chain includes at least a first-level traceability system, a second-level traceability system, and a third-level traceability system. The first-level traceability system is set up at the raw material site to generate a first-level traceability code for each batch or each raw material. The second-level traceability system is set up at the intermediate product manufacturer to generate a second-level traceability code for each batch or each intermediate product. The third-level traceability system is set up at the retail product manufacturer to generate a third-level traceability code for each retail product.
[0031] The third-level traceability code is the most common product anti-counterfeiting traceability code on the market. It carries some product information, anti-counterfeiting information, logistics information, production information, etc. However, the biggest difference between the third-level traceability code and the current traceability code is that its source is encrypted layer by layer. The current traceability code is directly generated by the system and has no inheritance relationship with the upstream raw material provider. This is also the reason why there are a large number of information islands in our current traceability system.
[0032] Example 1
[0033] See attached Figure 1, the embodiment of the present invention provides a hierarchical traceability system for the entire industry chain, which can be divided into a primary traceability system (upstream), a secondary traceability system (midstream), and a tertiary traceability system (downstream) according to the upstream, midstream, and downstream of the supply chain system. The primary traceability system, the secondary traceability system, and the tertiary traceability system generate a primary traceability code, a secondary traceability code, and a tertiary traceability code, respectively. The primary traceability code, the secondary traceability code, and the tertiary traceability code are all in the form of unique strings, corresponding to traceability systems at different levels.
[0034] A first-level traceability system is set up in the raw material factory, and a first-level traceability code is generated for each raw material or each batch of raw materials, such as 111122223333, which is composed of three segments: 1111, 2222, and 3333; the first-level traceability system arbitrarily intercepts a segment, for example, encrypts 2222 in "111122223333" using an encryption algorithm and converts it into BBBB, forming 1111BBBB 3333, and issues it to the second-level traceability system.
[0035] A secondary traceability system is set up in the middle of the industrial chain, and the secondary traceability code is encrypted: that is, 1111BBBB 3333 is also randomly intercepted and encrypted, and then issued to the third-level traceability system. A third-level traceability system is set up in the downstream of the industrial chain. Such encryption is repeatedly nested encryption on the same field, for example, 1111BBBB 3333 is further encrypted into 1111BXBX 3333, but encryption can also be performed on different fields, which is not limited in this embodiment.
[0036] The secondary and tertiary traceability codes are encrypted using one of the encryption algorithms AES, RSA / ECC, Diffie-Hellman or SHA-1 / SHA-256. The secondary and tertiary traceability codes are obtained using different encryption algorithms. Multiple encryption methods for the primary traceability code - forming multiple different secondary traceability codes - more tertiary traceability codes.
[0037] The traceability code of the entire industrial chain system is not limited to the three levels in this embodiment. According to the length of the entire industrial chain upstream and downstream, there may also be four or five levels of traceability codes, which are not limited in this embodiment. The present invention focuses on the entire industrial supply chain to each link of the consumer end, and the codes in the traceability system of two adjacent supply chain nodes can be converted to each other through a set of coding rules.
[0038] Beneficial effects of the present invention:
[0039] 1) For hierarchical traceability of the entire industry chain, complex multi-level database operations can be avoided.
[0040] 2) Cross-organizational and hierarchical traceability solves the problems of information barriers from raw materials to finished products, inconvenient management, independent purchase, sales and inventory systems, and incomplete traceability chains.
[0041] 3) Use the system’s unique decryption method to ensure the progressive flow of information, eliminate the information islands of each traceability system, establish an information flow control mechanism, and achieve full-chain traceability.
[0042] Example 2
[0043] This embodiment provides a hierarchical traceability method for the entire industry chain, using the hierarchical traceability system for the entire industry chain as described above, including at least a primary traceability system, a secondary traceability system, and a tertiary traceability system, such as Figure 2 As shown, the steps of the method are as follows:
[0044] S01: The user scans the third-level traceability code on the product and requests product traceability information from the third-level traceability system;
[0045] S02: The three-level traceability system returns product traceability information to the user;
[0046] S03: The user requests the traceability information of semi-finished products and raw materials from the third-level traceability system;
[0047] S04: the third-level traceability system decodes the third-level traceability code to obtain a second-level traceability code, the second-level traceability code corresponds to the semi-finished product, and transmits the second-level traceability code to the second-level traceability system;
[0048] S05: The secondary traceability system verifies the secondary traceability code, decodes the secondary traceability code into a primary traceability code, and transmits the primary traceability code to the primary traceability system;
[0049] S06: The primary traceability system verifies the primary traceability code and sends the raw material traceability information corresponding to the primary traceability code to the secondary traceability system;
[0050] S07: The secondary traceability system sends the semi-finished product traceability information and the raw material traceability information corresponding to the secondary traceability code to the tertiary traceability system;
[0051] S08: The third-level traceability information sends the semi-finished product traceability information and the raw material traceability information corresponding to the second-level traceability code to the user.
[0052] In this embodiment, the downstream of the industrial chain can query the authenticity of the traceability code from the upstream by simply sending the upstream traceability code to the upstream to query the authenticity. However, if the upstream of the industrial chain wants to query the use of its traceability code in the downstream, it needs to apply for authorization from the downstream and verify it in the downstream. Figure 3 As shown, the authentication process is as follows:
[0053] T1: The upstream traceability system 2 of the industrial chain sends an Access Request request to the downstream traceability system 3 of the industrial chain. The Access Request message includes the application id and the secondary traceability code to be queried, so as to query the traceability system 3 for the corresponding third-level traceability code decoding. The application id is the id number assigned for this request;
[0054] T2: The traceability system 3 generates an authentication code and randomly uses one of the encryption algorithms such as AES, RSA / ECC, Diffie-Hellman or SHA-1 / SHA-256 to encrypt the authentication code; the traceability system 3 sends an Access Authenticate message to the traceability system 2, and the Access Authenticate message includes the authentication encryption algorithm used; at the same time, the traceability system 3 sends the encrypted authentication code to the preset mobile phone or email address of the traceability system 2.
[0055] T3: After receiving the authorization code via mobile phone or email address, traceability system 2 decodes the encrypted authorization code using the authentication encryption algorithm notified in the Access Authenticate message. Traceability system 2 sends an AccessRequest message to traceability system 3, and the Access Request message includes the decoded authorization code.
[0056] T4: Traceability system 3 verifies that the authorization code sent by traceability system 2 is true, and sends an AccessAccept message to traceability system 2. The Access Accept message includes the application ID and the third-level traceability code. If traceability system 3 verifies that the authorization code sent by traceability system 2 is false, it sends an Access Reject message to traceability system 2 to reject the query.
[0057] The beneficial effect of this embodiment is that the traceability code of the downstream of the industrial chain only needs simple verification to query the upstream, while the traceability code of the upstream of the industrial chain needs complex verification and authorization to query the downstream, which ensures the convenience and security of the industrial chain traceability system.
[0058] Example 3
[0059] This embodiment is basically the same as Embodiment 2, except that when the traceability code of the next-level traceability system queries the upper-level traceability system for authentication, the traceability system registers the query record in the blockchain network, and authenticates the queried traceability code and query time through the timestamp server.
[0060] like Figure 4 As shown, the steps of the method are as follows:
[0061] S11: The user scans the third-level traceability code on the product and requests product traceability information from the third-level traceability system;
[0062] S12: The three-level traceability system returns product traceability information to the user;
[0063] S13: The third-level traceability system saves the product traceability operation record to the blockchain network. The traceability operation record includes the queried traceability code and query time, etc.
[0064] S14: The third-level traceability system authenticates the product traceability operation records through the timestamp server;
[0065] S15: The user requests the traceability information of semi-finished products and raw materials from the third-level traceability system;
[0066] S16: The third-level traceability system decodes the third-level traceability code to obtain a second-level traceability code, which corresponds to the semi-finished product, and transmits the second-level traceability code to the second-level traceability system;
[0067] S17: The secondary traceability system saves the product traceability operation record to the blockchain network. The traceability operation record includes the queried traceability code and query time, etc.
[0068] S18: The secondary traceability system authenticates the product traceability operation records through the timestamp server;
[0069] S19: The secondary traceability system verifies the secondary traceability code, decodes the secondary traceability code into the primary traceability code, and transmits it to the primary traceability system;
[0070] S20: The primary traceability system verifies the primary traceability code and sends the raw material traceability information corresponding to the primary traceability code to the secondary traceability system;
[0071] S21: The primary traceability system saves the product traceability operation record to the blockchain network. The traceability operation record includes the queried traceability code and query time, etc.
[0072] S22: The primary traceability system authenticates the product traceability operation record through the timestamp server;
[0073] S23: The secondary traceability system sends the semi-finished product traceability information and raw material traceability information corresponding to the secondary traceability code to the third-level traceability system;
[0074] S24: The third-level traceability information sends the semi-finished product traceability information and raw material traceability information corresponding to the second-level traceability code to the user.
[0075] The beneficial effect of this embodiment is that the traceability query records made by the downstream traceability system to the upstream traceability system are all recorded through the blockchain and authenticated by the timestamp server, which ensures that the query records cannot be tampered with and have the effect of judicial evidence.
[0076] Obviously, the above embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, various changes, modifications, substitutions and improvements made to these embodiments by ordinary technicians in the field without creative work should be included in the protection scope of the present invention.
Claims
1. A hierarchical traceability system for the entire industry chain, characterized in that: The hierarchical traceability system includes multiple traceability systems; The multiple traceability systems are divided into different levels in sequence, and the traceability code of the next level traceability system is generated by encrypting the traceability code of the previous level traceability system; At least includes a primary traceability system, a secondary traceability system and a tertiary traceability system, wherein the primary traceability system generates a primary traceability code by encryption, the secondary traceability system generates a secondary traceability code by encryption according to the primary traceability code, and the tertiary traceability system generates a tertiary traceability code by encryption according to the secondary traceability code; The primary traceability system generates a primary traceability code for each or each batch of raw materials, and the primary traceability code includes multiple fields; the primary traceability system encrypts any field in the primary traceability code using an encryption algorithm; The secondary traceability system uses different encryption algorithms to encrypt any field in the primary traceability code, and generates a plurality of different secondary traceability codes corresponding to different processed products; The third-level traceability system uses different encryption algorithms to encrypt any field in the second-level traceability code, and generates a plurality of different third-level traceability codes corresponding to different processed products; The query records of the first-level traceability code, the second-level traceability code and the third-level traceability code are registered through blockchain and timestamp technology; The queried traceability code and query time are authenticated through a timestamp server; The previous level traceability code needs to apply for authorization from the next level and be verified at the next level.
2. The hierarchical traceability system for the entire industry chain according to claim 1 is characterized in that: The first-level traceability code is applied to raw materials, the second-level traceability code is applied to semi-processed products, and the third-level traceability code is applied to retail products.
3. The hierarchical traceability system for the entire industry chain according to claim 1 is characterized in that: The secondary traceability code and the tertiary traceability code are encrypted using one of the encryption algorithms of AES, RSA / ECC, Diffie-Hellman or SHA-1 / SHA-256, and the secondary traceability code and the tertiary traceability code are obtained using different encryption algorithms.
4. The hierarchical traceability system for the entire industry chain according to claim 1 is characterized in that: After the third-level traceability system decrypts the third-level traceability code to obtain the second-level traceability code, it obtains the traceability information corresponding to the second-level traceability code from the second-level traceability system. After the second-level traceability system decrypts the second-level traceability code to obtain the first-level traceability code, it obtains the traceability information corresponding to the first-level traceability code from the first-level traceability system.
5. A hierarchical traceability method for the entire industry chain, using the hierarchical traceability system for the entire industry chain as described in claims 1-4, comprising at least a primary traceability system, a secondary traceability system and a tertiary traceability system, characterized in that: The steps of the method are as follows: S01: The user scans the third-level traceability code on the product and requests product traceability information from the third-level traceability system; S02: The three-level traceability system returns product traceability information to the user; S03: The user requests the traceability information of semi-finished products and raw materials from the third-level traceability system; S04: the third-level traceability system decodes the third-level traceability code to obtain a second-level traceability code, the second-level traceability code corresponds to the semi-finished product, and transmits the second-level traceability code to the second-level traceability system; S05: The secondary traceability system verifies the secondary traceability code, decodes the secondary traceability code into a primary traceability code, and transmits the primary traceability code to the primary traceability system; S06: The primary traceability system verifies the primary traceability code and sends the raw material traceability information corresponding to the primary traceability code to the secondary traceability system; S07: The secondary traceability system sends the semi-finished product traceability information and the raw material traceability information corresponding to the secondary traceability code to the tertiary traceability system; S08: The third-level traceability information sends the semi-finished product traceability information and the raw material traceability information corresponding to the second-level traceability code to the user.
