CN114841720A - Tracing anti-counterfeiting method, device and storage medium - Google Patents

Tracing anti-counterfeiting method, device and storage medium Download PDF

Info

Publication number
CN114841720A
CN114841720A CN202210603547.5A CN202210603547A CN114841720A CN 114841720 A CN114841720 A CN 114841720A CN 202210603547 A CN202210603547 A CN 202210603547A CN 114841720 A CN114841720 A CN 114841720A
Authority
CN
China
Prior art keywords
product
value
circulated
traced
information
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
CN202210603547.5A
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.)
China United Network Communications Group Co Ltd
Unicom Digital Technology Co Ltd
China Unicom Heilongjiang Industrial Internet Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Unicom Digital Technology Co Ltd
China Unicom Heilongjiang Industrial Internet 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 China United Network Communications Group Co Ltd, Unicom Digital Technology Co Ltd, China Unicom Heilongjiang Industrial Internet Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202210603547.5A priority Critical patent/CN114841720A/en
Publication of CN114841720A publication Critical patent/CN114841720A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06Q30/0185Product, service or business identity fraud
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Accounting & Taxation (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Computing Systems (AREA)
  • Finance (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a tracing anti-counterfeiting method, equipment and a storage medium. The method comprises the following steps: obtaining a product to be circulated; generating a code value of a product to be circulated, attaching the code value of the product to be circulated to the product to be circulated, wherein the code value represents the traceability anti-counterfeiting information of the product to be circulated; generating a release value of the product to be circulated according to the code value of the product to be circulated, and storing the release value into a block chain, wherein the release value is information disclosed by the product to be circulated in the circulating process; and in the circulation process of the product to be circulated, storing the release value of the product to be circulated and the circulation information of each circulation node into the block chain. According to the method, each circulation node of the product to be circulated can be stored in the block chain, and effective traceability verification is conducted on circulation information of the product. Through storing the issued value obtained by calculation according to the code value attached to the product to be circulated in the block chain, the traceability anti-counterfeiting information leakage of the product to be circulated is avoided, and the anti-counterfeiting traceability security is further improved.

Description

Tracing anti-counterfeiting method, device and storage medium
Technical Field
The present application relates to the field of anti-counterfeiting technologies, and in particular, to a tracing anti-counterfeiting method, device, and storage medium.
Background
With the improvement of living standard, the quality requirements of consumers on commodities are gradually improved in the aspects of agricultural products, food, industrial products and the like, so that the traceability and anti-counterfeiting requirements on the commodities are also gradually improved.
In the prior art, various plain codes, secret codes, anti-counterfeiting marks, electronic tags and the like on product packages are mainly used as identifiers, namely 'one product and one code', and are matched with a code number inquiry library of an enterprise to provide anti-counterfeiting or tracing services.
However, "one-product-one-code" is generally capable of inquiring about the origin of the manufacturer of the goods and the location of the retail terminal, losing the intermediate circulation process of the goods, resulting in low anti-counterfeiting capability.
Disclosure of Invention
The application provides a tracing anti-counterfeiting method, equipment and a storage medium, which are used for solving the problem of low anti-counterfeiting capability in the prior art.
In a first aspect, the present application provides a tracing anti-counterfeiting method, including:
obtaining a product to be circulated;
generating a code value of a product to be circulated, attaching the code value of the product to be circulated to the product to be circulated, wherein the code value represents the traceability anti-counterfeiting information of the product to be circulated;
generating a release value of the product to be circulated according to the code value of the product to be circulated, and storing the release value into a block chain, wherein the release value is information disclosed by the product to be circulated in the circulating process;
and in the circulation process of the product to be circulated, storing the release value of the product to be circulated and the circulation information of each circulation node into the block chain.
In a second aspect, the present application provides a tracing anti-counterfeiting method, including:
obtaining a code value attached to a product to be traced, wherein the code value represents tracing anti-counterfeiting information of the product to be traced;
generating a calculation value and a release value of the product to be traced according to the code value of the product to be traced, wherein the release value is information disclosed by the product to be traced in the circulation process, and the calculation value is intermediate information of the release value generated by the code value of the product to be traced;
and inquiring circulation information corresponding to the product to be traced in the block chain according to the code value, the calculated value and the issued value of the product to be traced.
In a third aspect, the present application provides a tracing anti-counterfeiting device, including:
the acquisition module is used for acquiring products to be circulated;
the generating module is used for generating code values of the products to be circulated and attaching the code values of the products to be circulated to the products to be circulated, and the code values represent the traceability anti-counterfeiting information of the products to be circulated;
the generating module is also used for generating a release value of the product to be circulated according to the code value of the product to be circulated, wherein the release value is information disclosed by the product to be circulated in the circulating process;
the storage module is used for storing the issued value into the block chain;
the storage module is further used for storing the release value of the product to be circulated and the circulation information of each circulation node into the block chain in the circulation process of the product to be circulated.
In a fourth aspect, the present application provides a tracing anti-counterfeiting device, including:
the obtaining module is used for obtaining a code value attached to the product to be traced, and the code value represents tracing anti-counterfeiting information of the product to be traced;
the generating module is used for generating a calculated value and a release value of the product to be traced according to the code value of the product to be traced, wherein the release value is information disclosed by the product to be traced in the circulation process, and the calculated value is intermediate information of the release value generated by the code value of the product to be traced;
and the query module is used for querying the circulation information corresponding to the product to be traced in the block chain according to the code value, the calculated value and the issued value of the product to be traced.
In a fifth aspect, the present application provides a tracing anti-counterfeiting device, including: the source tracing anti-counterfeiting method comprises a processor and a memory, wherein codes are stored in the memory, and the processor runs the codes stored in the memory to execute the source tracing anti-counterfeiting method according to any one of the first aspect.
In a sixth aspect, the present application provides a tracing anti-counterfeiting device, including: the processor and the memory, wherein the memory stores codes, and the processor executes the codes stored in the memory to execute the tracing anti-counterfeiting method according to any one of the second aspect.
In a seventh aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the tracing anti-counterfeiting method according to any one of the first aspect is implemented.
In an eighth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are executed by a processor to implement the tracing anti-counterfeiting method according to any one of the second aspects.
The application provides a traceability anti-counterfeiting method, equipment and a storage medium, wherein a product to be circulated is obtained, a code value of the product to be circulated is generated, the code value is attached to the corresponding product to be circulated, and the code value represents traceability anti-counterfeiting information of the product to be circulated. And generating a corresponding release value according to the code value of the product to be transferred, and storing the release value into the block chain. In the circulation process of the product to be circulated, the issued value of the product to be circulated and the circulation information of each circulation node are stored in the block chain and are published, and the complete circulation process of the product to be circulated is recorded. According to the method, the information of each transfer node of the product to be transferred is stored in the block chain, the transfer information of the product can be effectively traced and verified, and the anti-counterfeiting capacity is improved. Meanwhile, the issued value obtained by calculation according to the code value attached to the product to be circulated is stored in the block chain, so that the leakage of the traceability anti-counterfeiting information of the product to be circulated is avoided, and the anti-counterfeiting traceability security is further improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic view of a tracing anti-counterfeiting scene provided in an embodiment of the present application;
fig. 2 is a first flowchart of a source tracing anti-counterfeiting method provided in the embodiment of the present application;
fig. 3 is a flowchart of a source tracing anti-counterfeiting method according to an embodiment of the present application;
fig. 4 is a flow chart of a source tracing anti-counterfeiting method provided in the embodiment of the present application;
fig. 5 is a fourth flowchart of a source tracing anti-counterfeiting method provided in the embodiment of the present application;
FIG. 6 is a schematic illustration of a product being packaged and unpacked according to an embodiment of the present disclosure;
fig. 7 is a schematic view of a tracing anti-counterfeiting device provided in an embodiment of the present application;
fig. 8 is a schematic diagram of a tracing anti-counterfeiting device provided in an embodiment of the present application;
fig. 9 is a schematic diagram of a tracing anti-counterfeiting device provided in the embodiment of the present application;
fig. 10 is a schematic view of a source tracing anti-counterfeiting device provided in an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
In the aspects of agricultural products, food, industrial products and the like, the quality requirements of consumers on commodities are gradually improved, so that stricter traceability and anti-counterfeiting requirements are brought. In the prior art, a 'one object one code' and a 'one article one code' are taken as representatives, various plain codes, secret codes, anti-counterfeiting marks, electronic tags and the like on product packages are taken as identifiers, and a code number inquiry library special for enterprises is matched to provide services focusing on anti-counterfeiting or tracing.
When a manufacturer starts to produce a product, the counterfeit product can imitate the same traceability code package due to the leakage of traceability code information of the product, and can be put on the market more quickly than a regular product by using the logistics time difference. Meanwhile, the tracing path of the product is limited by the problems of scanning management equipment cost, trace-remaining operation workload and the like in the turnover process, so that the complete tracking of bulk commodities such as consumer goods and the like is difficult, the origin and retail terminal positions of manufacturers can only be inquired, the intermediate process is lost, and the anti-counterfeiting capability is low.
The application provides a traceability anti-counterfeiting method, after a product to be circulated is obtained, a code value of the product to be circulated can be generated according to relevant information such as a production batch number and a product serial number of the product to be circulated, the code value represents traceability anti-counterfeiting information of the product to be circulated, and then the code value of the product to be circulated is attached to the product to be circulated. And generating a release value of the product to be circulated according to the code value of the product to be circulated, wherein the release value is the information disclosed by the product to be circulated in the circulating process, and storing the release value into the block chain. In the circulation process of the product to be circulated, the issued value of the product to be circulated and the circulation information of each circulation node are stored in the block chain, each circulation node of the product to be circulated can be recorded, the chance that a forged product borrows a regular product is effectively reduced, the issued value of the product to be circulated is simultaneously disclosed, the traceability anti-counterfeiting information leakage of the product to be circulated is avoided, and the anti-counterfeiting capacity is improved.
Fig. 1 is a schematic view of a traceability anti-counterfeiting scene provided in an embodiment of the present application, and as shown in fig. 1, a manufacturer produces a product, the product is circulated between a multi-level buyer and a multi-level seller, and finally a consumer purchases the product from the seller. In order to avoid early leakage of the traceability anti-counterfeiting information of the product, the product stores a release value obtained by calculating a code value attached to the product into a block chain and publishes the release value in the circulation process of a manufacturer, a multi-level buyer and a multi-level seller, and a consumer can obtain the code value of the product when purchasing the product. The code value is tracing anti-counterfeiting information attached to the product, and is processed according to the code value to obtain a release value.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a first flowchart of a source tracing anti-counterfeiting method implemented and provided by the present application, where an execution main body of the method may be a source tracing anti-counterfeiting device, and may be any device with a data processing function, such as a computer. The method in this embodiment may be implemented by software, hardware, or a combination of software and hardware. As shown in fig. 2, the tracing anti-counterfeiting method provided by the present application may include:
s201: and obtaining the product to be circulated.
The product to be circulated comprises a single commodity or a packaged assembly formed by a plurality of commodities. When the product to be circulated is a packaging set formed by a plurality of commodities, the commodities can be packaged.
The packaging of a plurality of articles may be a physical operation, such as the loading of a number of products into a larger carton, or a virtual packaging operation, such as the placing of a batch of products into a container.
S202: generating code values of the products to be circulated, attaching the code values of the products to be circulated to the products to be circulated, wherein the code values represent the traceability anti-counterfeiting information of the products to be circulated.
The tracing anti-counterfeiting information can be printed characters, bar codes, two-dimensional codes and the like, and can also be digital information stored in a contact type or non-contact type chip.
The code value of the product is the traceability anti-counterfeiting information of the product to be circulated and can be defined by a production enterprise. The code value of the product to be circulated may include one or more of the following information: production batch number, product serial number, timestamp, random value and digital signature. The random value may be a NanoID random value or a GUID random value, which can prevent a counterfeiter from calculating similar code values. The digital signature is a signature for the enterprise to confirm the relevant information such as the production batch number, the product serial number, the time stamp and the like, and can be the name of a confirmer.
When the code value of the product to be circulated is attached to the product to be circulated, the code value can be attached through modes such as label printing or chip writing.
S203: and generating a release value of the product to be circulated according to the code value of the product to be circulated, and storing the release value into the block chain, wherein the release value is the information disclosed by the product to be circulated in the circulating process.
The issued value may be generated from the code value via various computational means. In a possible implementation manner, the code value of the product to be transferred may be hashed to generate a calculation value of the product to be transferred, and the calculation value is intermediate information of a release value generated for the code value of the product to be transferred. And the calculated value of the product to be circulated is hashed at least once to generate the issued value of the product to be circulated.
Compare and to wait to circulate the code value of product and store to the block chain, can avoid waiting to circulate the revealing of product anti-fake information of tracing to the source in storing the release value to the block chain to anti-fake ability has been improved.
The release value of the product to be traced can be stored in the block chain for disclosure, and can also be stored in a database for tracing and anti-counterfeiting.
S204: and in the circulation process of the product to be circulated, storing the release value of the product to be circulated and the circulation information of each circulation node into the block chain.
The circulation can include a plurality of circulation nodes such as warehouse-out, warehouse-in and transportation, and the circulation information can include personnel information, time, place and the like of circulation work. Because the circulation information of each circulation node is different, the circulation path of the product to be traced can be represented by the circulation information of the circulation node.
The embodiment of the application provides a traceability anti-counterfeiting method, which comprises the steps of firstly obtaining a product to be circulated, generating a code value of the product to be circulated according to relevant information such as a production batch number and a product serial number of the product to be circulated, and attaching the code value of the product to be circulated to the product to be circulated. And generating a release value of the product to be circulated according to the code value of the product to be circulated, and storing the release value into the block chain. In the circulation process of the product to be circulated, the release value of the product to be circulated and the circulation information of each circulation node are stored in the block chain and are disclosed. The traceability method can store the information of each circulation node of the product to be circulated in the block chain, so that effective traceability verification is carried out on the circulation information of the product, and the anti-counterfeiting capacity is improved. Meanwhile, the issued value obtained by calculation according to the code value attached to the product to be circulated is stored in the block chain, so that the leakage of the traceability anti-counterfeiting information of the product to be circulated is avoided, and the anti-counterfeiting traceability security is further improved.
On the basis of the above embodiment, an embodiment is provided below, and a process of tracing and anti-counterfeiting a product to be traced is described in detail.
Fig. 3 is a flowchart of a source tracing anti-counterfeiting method provided in an embodiment of the present application, where the method provided in the present application describes a verification process of a product, and may include:
s301: and acquiring a code value attached to the product to be traced, wherein the code value represents the tracing anti-counterfeiting information of the product to be traced.
The product to be traced may be a product purchased by a consumer. For a purchased product, a consumer may obtain a code value attached to the product to be traced.
The code value on the product to be traced can be tracing anti-counterfeiting information defined by a production enterprise, and can include information such as a production batch number, a product serial number, a timestamp, a random value, a digital signature and the like of the product to be traced. The tracing anti-counterfeiting information can be printed characters, bar codes, two-dimensional codes and the like, and can also be digital information stored in a contact type or non-contact type chip.
S302: and generating a calculation value and a release value of the product to be traced according to the code value of the product to be traced, wherein the release value is the information of the product to be traced disclosed in the circulation process, and the calculation value is the intermediate information of the release value generated by the code value of the product to be traced.
In a possible implementation manner, the code value of the product to be traced is hashed to generate a calculated value of the product to be traced, and the calculated value of the product to be traced is hashed at least once to generate a release value of the product to be circulated.
S303: and inquiring circulation information corresponding to the product to be traced in the block chain according to the code value, the calculated value and the issued value of the product to be traced.
Because each circulation node of the product to be traced can store the issued value and the circulation information of the product in the circulation process into the block chain, the corresponding circulation information can be inquired in the block chain according to the code value, the calculated value and the issued value of the product to be traced, and whether the product to be traced is a regular product can be verified according to the circulation information.
The embodiment of the application provides a tracing anti-counterfeiting method, which is used for acquiring code values attached to a product to be traced, wherein the code values represent tracing anti-counterfeiting information of the product to be traced. And generating a calculation value and a release value of the product to be traced according to the code value of the product to be traced. And inquiring circulation information corresponding to the product to be traced in the block chain according to the code value, the calculated value and the issued value of the product to be traced. The method provided by the application can store the information of each circulation node of the product to be traced in the block chain, so that the circulation information of the product is effectively traced and verified, and the anti-counterfeiting capability is improved.
On the basis of the above embodiment, an embodiment is provided below, which describes in detail a process of verifying whether a to-be-traced product is a regular product according to circulation information.
Fig. 4 is a flow chart of a source tracing anti-counterfeiting method provided in the embodiment of the present application, which specifically includes the following steps:
s401: and acquiring the circulation information of the product to be traced.
The circulation information of the product to be traced can be obtained in the block chain according to the code value, the calculated value and the issued value of the product to be traced.
The circulation information may include: the information of related personnel who carries out the circulation work and the description information of time, place and environment, etc. which carry out the circulation.
S402: and if the flow information of the product to be traced is complete, successfully tracing and verifying the product to be traced.
In an implementation scene, the product to be traced is a counterfeit product, but because the circulation information of the product is complete, the circulation record can be provided for tracing the counterfeit product, so that the anti-counterfeiting effect is achieved.
In an implementation scenario, if the circulation information of the product to be traced is missing, the tracing verification of the product to be traced fails, which indicates that the product to be traced may be a counterfeit product.
S403: and verifying the quantity of the products to be traced according to the quantity of the products from the same circulation source as the products to be traced and the total quantity of the products of the circulation source, which are stored in the block chain.
In an implementation scenario, if the sum of the number of products from the same circulation source and the number of products to be traced is less than or equal to the total number of products from the circulation source, the products to be traced are regular products, and at this time, information such as consumer information, circulation source information, calculated values and numbers of products to be traced can be stored in a block chain.
For example, when the circulation source is a certain seller, the product is a bag of 25kg of rice, the total amount of rice owned by the dealer is 100 bags, the amount of rice to be traced is 2 bags, and a certain amount of rice from the same seller as the rice to be traced is stored in the block chain. The amount of rice to be sourced and stored in the blockchain from the dealer at this time is less than or equal to 100 bags in the dealer's possession.
In another implementation scenario, if the sum of the number of products from the same circulation source and the number of products to be traced is greater than the total number of products from the circulation source, there is a possibility that the products to be traced are counterfeit products.
The embodiment of the application provides a traceability anti-counterfeiting method, which is used for obtaining circulation information of a product to be traced, and if the circulation information is complete, the traceability verification of the product to be traced is successful. In order to further verify whether the product to be traced is a normal product or not, the number of the products to be traced is verified according to the number of the products from the same circulation source and the total number of the products from the circulation source, which are stored in the block chain, of the product to be traced. And if the sum of the product quantity from the same circulation source and the quantity of the product to be traced is less than or equal to the total quantity of the product of the circulation source, indicating that the product to be traced is a regular product. According to the method provided by the embodiment of the application, whether the product to be traced is a regular product or not is checked in terms of the number of the products, so that the security of anti-counterfeiting tracing is improved.
On the basis of the above embodiment, a specific embodiment is provided below, which introduces details of the process of tracing and anti-counterfeiting when the product to be circulated is a package set formed by a plurality of commodities.
Fig. 5 is a fourth flowchart of a source tracing anti-counterfeiting method provided in the embodiment of the present application. In the embodiment of the present application, a product is set as a minimum unit manufactured and distributed by an enterprise, and a package set obtained by combining and packaging the products is referred to as a package. As shown in fig. 5, the tracing anti-counterfeiting method provided by the present application specifically includes:
s501: and acquiring code values and the number of the products to be circulated, and packaging the products to generate the packages.
The product is the smallest unit manufactured and sold by enterprises, such as a bag of 5kg flour, or a bottle of 250ml soy sauce.
The code value is tracing anti-counterfeiting information of a product to be circulated, can be printed characters, bar codes, two-dimensional codes and the like, and can also be digital information stored in a contact type or non-contact type chip. The code value of the product can be defined by a manufacturing enterprise and can comprise information such as a production batch number, a product serial number, a timestamp, a random value, a digital signature and the like of the product. The random value may be a NanoID random value or a GUID random value, which can prevent a counterfeiter from calculating similar code values. The digital signature is a signature for the enterprise to confirm the relevant information such as the production batch number, the product serial number, the time stamp and the like, and can be the name of a confirmer.
The packaging process of the products may be a practical operation, for example, packing several products into larger cartons, or packing several larger cartons into larger wooden boxes. The packaging process for the product may also be a virtual packaging operation, such as placing a batch of product into a container, warehouse, or train car for transportation.
In addition to packaging the product, the package may be repackaged to create a new package. At this time, the packet on which the wrapping operation is performed may be referred to as a sub-packet. When a packet is generated, overall management and operation are maintained in units of the packet, and products or sub-packets within the packet cannot be individually operated.
S502: and generating a calculated value and a release value of the product and a code value of the package according to the code value of the product, and attaching the code value of the package to the package.
The calculated value of the product may be obtained by hashing the code value of the product, such as the SHA256 algorithm and the SM3 algorithm.
The issued value of the product may be obtained by hashing the calculated value of the product one or more times. The process of generating the issued value according to the code value is irreversible, so that the anti-counterfeiting capability is improved to a certain extent.
The code value of the package may contain a list of issued values and quantities of products within the package, a timestamp, a random value, and a digital signature of the above information by the packager.
The code value of the packet is attached to the packet, and can be printed by a label or written in a chip mode or the like. It should be noted that the process of attaching the code value to the bag is as irreversible as possible, for example, using a fragile sticker to print, using a chip that is not removable or rewritable, thereby increasing security.
S503: an issue value for the packet is generated from the code value of the packet, and the issue value for the packet is stored in the blockchain along with the issue values for all products within the packet.
The issued value of the packet is the information disclosed by the product in the circulation process, and can be obtained by hashing the code value to obtain a calculated value and hashing the calculated value one or more times.
The information stored to the blockchain may contain the digital signature of the packager in addition to the release value of the package and the release values of all products within the package.
S504: and in the process of packet circulation, storing the distribution value of the packet and the circulation information of each circulation node into the block chain.
In the process of packet circulation, for example, each link of warehousing, ex-warehouse and transportation, there are corresponding senders and receivers. The sender and the recipient may be the same entity or may be different entities.
When the package is circulated, a packager of the package initiates the circulation of the package for the first time, and a receiver of the package continues the circulation.
The flow information of each node may include: the distribution value of the sender, the receiver and the package, and the description information of time, place, environment and the like.
Because the flow is carried out in the form of the packet in the flow process, only the issuing value of the packet and the flow information of each flow node are required to be stored in the block chain, and the processing efficiency is improved.
S505: and when the package can not maintain the overall management and operation, performing at least one splitting treatment on the package to obtain the product to be traced.
A schematic of the packaging and unpacking of a product is shown in fig. 6. When the package is unable to maintain overall management and operation, it may be a portion of the product within the shipping or sales package, i.e., the package is broken up. The unpacker that splits the packet is the last receiver of the packet in the flow process.
To record this process of splitting a packet, corresponding information needs to be stored in the blockchain, for example: unpacking person, distribution value of the package, calculation value and quantity list of products in the package, and description information of time, place and the like. Since the distribution value and quantity lists of all products in the package are already stored and published in the blockchain, in order to avoid directly adopting this information, the calculation value and quantity lists of all products in the package are stored in the blockchain during the process of splitting the package.
Since the products in the packet may be lost or lost during the streaming process, when the packet is split, the number and quantity of all product calculation values in the packet may be less than or equal to the number and quantity of all product distribution values disclosed before the packet is streamed.
It should be noted that, after the bag is split, the products in the bag can continue to circulate, or can be packaged again to generate a new bag and then continue to circulate.
S506: and acquiring a code value attached to the product to be traced, and generating a calculated value and a release value of the product to be traced according to the code value.
After the bag is circulated and split for many times, the consumer purchases a product from the dealer, and the product is a product to be traced. Because the code value is attached to the product, the code value of the product to be traced can be acquired, and the calculated value and the issued value of the product to be traced are generated.
S507: and inquiring circulation information corresponding to the product to be traced in the block chain according to the code value, the calculated value and the issued value of the product to be traced so as to perform tracing verification on the product to be traced.
Because the release value or the calculated value of each link of the product in the circulation process is stored in the block chain, the circulation information of the product can be inquired in the block chain according to the code value, the calculated value and the release value of the product to be traced.
If the circulation information of the product to be traced is complete, the product tracing verification is successful.
After the to-be-traced product is successfully traced, the number of the to-be-traced products can be verified according to the number of the products from the same circulation source and the total number of the products from the same circulation source, which are stored in the block chain, of the to-be-traced products.
And if the sum of the number of the normal products and the number of the products from the same circulation source with the product to be traced is less than or equal to the total number of the products owned by the circulation source, the product to be traced is the normal product.
In an implementation scenario, if the information of the flow path of the product is missing, tracing the source of the product to be traced fails, and the product to be traced may be a counterfeit product.
In another implementation scenario, if the sum of the number of products from the same circulation source and the number of products to be traced is greater than the total number of products from the circulation source, there is a possibility that the products to be traced are counterfeit products.
Besides tracing and counterfeiting the product according to the code value, the calculated value and the issued value of the product, production enterprises can additionally provide inquiry and verification of the associated secret code hidden in the product, and more multimedia data information for verifying authenticity such as the production place, raw materials, processing process, packaging specification, appearance characteristics, packaging process and the like of the product. When the product is successfully verified, information related to the consumer, the distributor, the calculated value and quantity of the product, and the like, can be stored in the blockchain.
The embodiment of the application provides a source tracing anti-counterfeiting method, which comprises the steps of firstly obtaining code values and the number of products to be transferred, and packaging the products to generate packages. And generating a calculated value and a release value of the product and a code value of the package according to the code value of the product, and attaching the code value of the package to the package. And generating an issuing value of the packet according to the code value of the packet, storing the issuing value of the packet and issuing values of all products in the packet into the blockchain, and circulating the packet at the moment. And in the process of transferring the packet, storing the distribution value of the packet and the transfer information of each transfer node in the block chain. And when the package can not maintain the overall management and operation, the package is subjected to at least one splitting treatment to obtain a product. Aiming at a product to be traced in the hands of a final consumer, a code value attached to the product to be traced can be acquired, a calculation value and a release value of the product to be traced are generated, and circulation information of the product to be traced is inquired in a block chain according to the code value, the calculation value and the release value of the product to be traced. According to the traceability method, the product is circulated for many times from production, and the complete circulation information reaching the consumer is stored in the block chain, so that effective traceability verification can be performed on the circulation information of the product. By storing the release value obtained by calculation according to the code value attached to the product to be circulated in the block chain, the early leakage of the traceability anti-counterfeiting information of the product to be circulated is avoided, and the anti-counterfeiting traceability security is further improved.
Fig. 7 is a schematic view of a first tracing anti-counterfeiting device provided in an embodiment of the present application, and as shown in fig. 7, a tracing anti-counterfeiting device 700 provided in an embodiment of the present application includes an obtaining module 701, a generating module 702, and a storage module 703.
An obtaining module 701, configured to obtain a product to be circulated;
the generating module 702 is configured to generate a code value of the product to be circulated, attach the code value of the product to be circulated to the product to be circulated, where the code value represents traceability anti-counterfeiting information of the product to be circulated;
the generating module 702 is further configured to generate a release value of the product to be circulated according to the code value of the product to be circulated;
the storage module 703 is configured to store an issued value into the block chain, where the issued value is information disclosed by a product to be circulated in a circulation process;
the storage module 703 is further configured to store, in the process of transferring the product to be transferred, the release value of the product to be transferred and the transfer information of each transfer node into the block chain.
The apparatus of this embodiment may be used to implement the method embodiment shown in fig. 2, and the implementation principle and technical effect are similar, which are not described herein again.
Fig. 8 is a schematic view of a tracing anti-counterfeiting device 800 provided in this embodiment of the present application, and as shown in fig. 8, the tracing anti-counterfeiting device 800 provided in this embodiment of the present application includes an obtaining module 801, a generating module 802, and an inquiring module 803.
An obtaining module 801, configured to obtain a code value attached to a product to be traced, where the code value represents tracing anti-counterfeit information of the product to be traced;
the generating module 802 is configured to generate a calculated value and a release value of a product to be traced according to a code value of the product to be traced, where the release value is information disclosed by the product to be traced in a circulation process, and the calculated value is intermediate information of the release value generated by the code value of the product to be traced;
the query module 803 is configured to query the circulation information corresponding to the product to be traced in the block chain according to the code value, the calculated value, and the release value of the product to be traced.
The apparatus of this embodiment may be used to implement the method embodiment shown in fig. 3, and the implementation principle and technical effects are similar, which are not described herein again.
Fig. 9 is a schematic diagram of a tracing anti-counterfeiting device provided in the embodiment of the present application. As shown in fig. 9, the tracing anti-counterfeiting device 900 provided by the embodiment of the present application includes a processor 901 and a memory 902, where the processor 901 and the memory 902 are connected by a bus 903.
In a specific implementation process, the memory 902 stores codes, and the processor 901 executes the codes stored in the memory 902 to execute the source tracing anti-counterfeiting method of the foregoing method embodiment.
For a specific implementation process of the processor 901, reference may be made to the above method embodiments, which implement principles and technical effects are similar, and details of this embodiment are not described herein again.
In the embodiment shown in fig. 9, it should be understood that the Processor 901 may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory 902 may comprise high-speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus 903 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus 903 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, the bus 903 in the figures of this application is not limited to only one bus or one type of bus.
The apparatus of this embodiment may be used to implement the method embodiment shown in fig. 2, and the implementation principle and technical effect are similar, which are not described herein again.
Fig. 10 is a schematic view of a source tracing anti-counterfeiting device provided in an embodiment of the present application. As shown in fig. 10, the tracing anti-counterfeiting device 1000 according to the embodiment of the present application includes a processor 1001 and a memory 1002, where the processor 1001 and the memory 1002 are connected through a bus 1003.
The apparatus of this embodiment may be used to implement the method embodiment shown in fig. 3, and the implementation principle and technical effect are similar, which are not described herein again.
The embodiment of the present application provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, the computer-executable instructions are used to implement the traceability anti-counterfeit method provided in any of the above method embodiments.
The computer-readable storage medium described above may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
The embodiment of the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the traceability anti-counterfeit method provided in any embodiment of the present application is implemented.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (13)

1. A tracing anti-counterfeiting method is characterized by comprising the following steps:
obtaining a product to be circulated;
generating a code value of the product to be circulated, and attaching the code value of the product to be circulated to the product to be circulated, wherein the code value represents the traceability anti-counterfeiting information of the product to be circulated;
generating a release value of the product to be circulated according to the code value of the product to be circulated, and storing the release value into a block chain, wherein the release value is information disclosed by the product to be circulated in the circulation process;
and in the circulation process of the product to be circulated, storing the release value of the product to be circulated and the circulation information of each circulation node into the block chain.
2. The method according to claim 1, wherein the generating the release value of the product to be circulated according to the code value of the product to be circulated comprises:
hashing the code values of the products to be transferred to generate calculation values of the products to be transferred, wherein the calculation values are intermediate information of the release values generated by the code values of the products to be transferred;
and carrying out at least one hash processing on the calculated value of the product to be circulated to generate the release value of the product to be circulated.
3. The method of claim 2, wherein the code value of the product to be circulated comprises one or more of the following information: production batch number, product serial number, timestamp, random value and digital signature.
4. The method according to any one of claims 1 to 3, wherein the product to be circulated comprises a single commodity or a packaged collection of commodities.
5. A tracing anti-counterfeiting method is characterized by comprising the following steps:
acquiring a code value attached to a product to be traced, wherein the code value represents tracing anti-counterfeiting information of the product to be traced;
generating a calculation value and a release value of the product to be traced according to the code value of the product to be traced, wherein the release value is information disclosed by the product to be traced in the circulation process, and the calculation value is intermediate information of the release value generated by the code value of the product to be traced;
and inquiring circulation information corresponding to the product to be traced in the block chain according to the code value, the calculated value and the issued value of the product to be traced.
6. The method according to claim 5, wherein after querying the circulation information corresponding to the product to be traced in the blockchain according to the code value, the calculated value and the release value of the product to be traced, the method further comprises:
if the circulation information of the product to be traced is complete, the tracing verification of the product to be traced is successful;
and if the circulation information of the product to be traced is missing, the tracing verification of the product to be traced fails.
7. The method according to claim 6, wherein if the circulation information of the product to be traced is complete, after the verification of the product to be traced, the method further comprises:
verifying the number of the products to be traced according to the number of the products from the same circulation source as the products to be traced and the total number of the products of the circulation source, which are stored in the block chain;
and if the sum of the product quantity from the same circulation source and the quantity of the product to be traced is less than or equal to the total quantity of the product to be traced, determining that the product to be traced is a normal product.
8. A traceable anti-counterfeiting device is characterized by comprising:
the acquisition module is used for acquiring products to be circulated;
the generating module is used for generating code values of the products to be circulated and attaching the code values of the products to be circulated to the products to be circulated, wherein the code values represent traceability anti-counterfeiting information of the products to be circulated;
the generating module is further used for generating the release value of the product to be circulated according to the code value of the product to be circulated;
the storage module is used for storing the release value into a block chain, wherein the release value is the information disclosed by the product to be circulated in the circulation process;
the storage module is further configured to store, in the process of transferring the product to be transferred, the release value of the product to be transferred and the transfer information of each transfer node into the block chain.
9. A traceable anti-counterfeiting device is characterized by comprising:
the code value represents the tracing anti-counterfeiting information of the product to be traced;
the generating module is used for generating a calculated value and a release value of the product to be traced according to the code value of the product to be traced, wherein the release value is information disclosed by the product to be traced in the circulation process, and the calculated value is intermediate information of the release value generated by the code value of the product to be traced;
and the query module is used for querying the circulation information corresponding to the product to be traced in the block chain according to the code value, the calculated value and the issued value of the product to be traced.
10. A traceable anti-counterfeiting device comprising: a processor and a memory, wherein the memory stores codes, and the processor executes the codes stored in the memory to execute the tracing anti-counterfeiting method according to any one of claims 1 to 4.
11. A traceable anti-counterfeiting device comprising: a processor, a memory, wherein the memory stores codes, and the processor executes the codes stored in the memory to execute the tracing anti-counterfeiting method according to any one of claims 5 to 7.
12. A computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when executed by a processor, the computer-executable instructions are used for implementing the traceability anti-counterfeiting method according to any one of claims 1 to 4.
13. A computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when executed by a processor, the computer-executable instructions are used for implementing the traceability anti-counterfeiting method according to any one of claims 5 to 7.
CN202210603547.5A 2022-05-30 2022-05-30 Tracing anti-counterfeiting method, device and storage medium Pending CN114841720A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210603547.5A CN114841720A (en) 2022-05-30 2022-05-30 Tracing anti-counterfeiting method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210603547.5A CN114841720A (en) 2022-05-30 2022-05-30 Tracing anti-counterfeiting method, device and storage medium

Publications (1)

Publication Number Publication Date
CN114841720A true CN114841720A (en) 2022-08-02

Family

ID=82571657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210603547.5A Pending CN114841720A (en) 2022-05-30 2022-05-30 Tracing anti-counterfeiting method, device and storage medium

Country Status (1)

Country Link
CN (1) CN114841720A (en)

Similar Documents

Publication Publication Date Title
JP6026888B2 (en) Method and apparatus for defining a manufactured item and storing data relating to the manufactured item
JP6189454B2 (en) Unlicensed product detection techniques
US20170270467A1 (en) Method and Apparatus for Identifying, Authenticating, Tracking and Tracing Manufactured Items
US6547137B1 (en) System for distribution and control of merchandise
CN109478305A (en) Information system for item authentication
JP6280564B2 (en) Method and apparatus for storing data for tracking of manufactured items
WO2018102528A1 (en) Process for rfid certification of carton content
JP2007519584A (en) Method and apparatus for aggregation and coordination via hierarchical tag checksums
CN106296228A (en) A kind of product product control source tracing method
US20200111555A2 (en) Synchronization of hierarchical data
CN110766421A (en) Commodity anti-counterfeiting method and device based on block chain
US10482417B2 (en) Item identifier assignment
US10089600B2 (en) Method for manufacturing a group of packaging media
CN104484847A (en) A food production and circulation whole process traceability system based on trusted electronic archives, abstract encryption and two-dimension codes
US11017279B2 (en) Product diversion management
WO2011084988A1 (en) System and method for monitoring products in a distribution chain
KR102069681B1 (en) System and method for product history management
CN114841720A (en) Tracing anti-counterfeiting method, device and storage medium
CN105069634A (en) Packaging box, anti-counterfeiting method, anti-counterfeiting device, anti-counterfeiting authentication method and device
CN111275455A (en) NFC anti-counterfeiting chip, commodity anti-counterfeiting tracing method and equipment based on block chain, and medium
CN114140133B (en) Method for processing tracing data
US7730797B1 (en) Authenticating a package using noise level
CN114021682A (en) Composite verification code system with calibration function
JP6688699B2 (en) Printable and writable items for tracking counterfeit and diverted products
US9183533B2 (en) Providing a path-based identifier

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