CN107657460B - Tobacco anti-counterfeiting and tracing method and system based on block chain - Google Patents

Tobacco anti-counterfeiting and tracing method and system based on block chain Download PDF

Info

Publication number
CN107657460B
CN107657460B CN201710806194.8A CN201710806194A CN107657460B CN 107657460 B CN107657460 B CN 107657460B CN 201710806194 A CN201710806194 A CN 201710806194A CN 107657460 B CN107657460 B CN 107657460B
Authority
CN
China
Prior art keywords
hash value
cigarette
identification code
tobacco
box
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.)
Active
Application number
CN201710806194.8A
Other languages
Chinese (zh)
Other versions
CN107657460A (en
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.)
Shanghai Zhongan Information Technology Service Co ltd
Original Assignee
Zhongan Information Technology Service 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 Zhongan Information Technology Service Co Ltd filed Critical Zhongan Information Technology Service Co Ltd
Priority to CN201710806194.8A priority Critical patent/CN107657460B/en
Publication of CN107657460A publication Critical patent/CN107657460A/en
Application granted granted Critical
Publication of CN107657460B publication Critical patent/CN107657460B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Packaging Of Annular Or Rod-Shaped Articles, Wearing Apparel, Cassettes, Or The Like (AREA)

Abstract

The invention discloses a tobacco anti-counterfeiting and tracing method and system based on a block chain, and belongs to the technical field of anti-counterfeiting and tracing. The method comprises the following steps: s1, generating a hash value for each cigarette, and generating a first identification code according to the hash value of each cigarette to be printed on each cigarette; s2, calculating a first tree root hash value according to the hash value of each cigarette in a packet of cigarettes, and generating a second identification code to print on a corresponding packet of cigarette packaging box; s3, calculating a hash value of a second tree root according to the hash value of each cigarette pack in one cigarette, generating a third identification code and printing the third identification code on a packaging box of one cigarette; s4, calculating a hash value of a third root according to the hash value of each cigarette in a box of cigarettes, generating a fourth identification code and printing the fourth identification code on a packaging box of the box of cigarettes; s5, calculating a hash value of a fourth tree root according to the hash value of each box of cigarettes in a batch; and writing the hash values of tobacco from each branch to each bag, strip, box and batch into the block chain merkle tree. Therefore, each cigarette is managed by adopting the stacked merkle trees after reaching the package, the carton and the box and then reaching the batch, and the anti-counterfeiting and traceability of the tobacco are realized through the irreversibility and the non-tamper property of the block chain hash value.

Description

Tobacco anti-counterfeiting and tracing method and system based on block chain
Technical Field
The invention relates to the technical field of anti-counterfeiting and tracing, in particular to a tobacco anti-counterfeiting and tracing method and system based on a block chain.
Background
China always consumes tobacco in a large country, and tobacco consumption is increased along with improvement of living standard of people. The report of the 2015 Chinese adult tobacco survey report shows that the smoking rate of the population in China is 27.7% which is not obviously changed compared with that of the population before five years. Wherein, the smoking rate of the male is 52.1 percent, and the smoking rate of the female is 2.7 percent. As the population is increased, the number of current smokers in China is increased by 1500 ten thousands to 3.16 hundred million five years ago according to the current smoking rate. Smokers smoked an average of 15.2 cigarettes per day, which was increased by 1 cigarette compared to five years ago. In 2016, 1 month, cigarette sales in the whole country are 478 ten thousand boxes, the average price of single box sales is 3.41 trillions, the total value is about 1630 hundred million, and the total year is estimated to be not lower than 1.956 trillions. However, those skilled in the art indicate that the sale of the fake cigarette is about 15% of the normal sale amount in the past year, and the market size of the fake cigarette reaches 2934 hundred million according to the total budget value of the year; the national loss tax exceeds 900 hundred million. In the 11 th late ten days of 2015 to the 3 rd early ten days of 2016, the national tobacco agency carries out special treatment for cigarette holiday and privacy in key areas such as Guangdong, Guangxi, Fujian and Henan. The report shows that 2.16 pieces of fake cigarettes (1 ten thousand in each standard part and 1.36 hundred million in total value) are checked out in 4 key provinces (areas), 1.18 pieces of private cigarettes are checked out, 873.1 tons of tobacco leaves are checked out, and 279 cases with more than 5 ten thousand yuan are detected out; therefore, the number of illegal tobacco specials is greatly increased, the number of fake cigarettes obtained by Fujian and Guangdong research is increased by 40% and 31% respectively, the number of private cigarettes obtained by Fujian and Guangxi research is increased by 213% and 186% respectively, and the number of tobacco leaves in tobacco shreds obtained by Guangxi and Fujian research is increased by 211% and 77% respectively.
Aiming at tobacco counterfeiting, the anti-counterfeiting technology of tobacco is a key technology concerned by the tobacco industry all the year round, and the traditional anti-counterfeiting methods comprise three-dimensional holographic films, fluorescent secret code anti-counterfeiting, variable frequency ink anti-counterfeiting, light variable ink anti-counterfeiting, package printing process anti-counterfeiting, tipping paper decoration anti-counterfeiting and the like; high-grade cigarettes even use multiple anti-counterfeiting technologies; however, the traditional anti-counterfeiting technology has high cost, for example, the cloud smoke 2016 estimates the goods volume to be calculated in 118 hundred million boxes, and only one three-dimensional holographic film is manufactured, so that the cost is close to 1.2 hundred million, and the cost is very high; meanwhile, most manufacturers do not report the information to the outside and do not know the information, so that the anti-counterfeiting effect is low; in addition, the anti-counterfeiting technology has multiple visual layers, high reproducibility, difficult memory and identification, so that a more reliable and efficient anti-counterfeiting and tracing method is required to be provided for the current anti-counterfeiting technology of the tobacco industry.
Disclosure of Invention
In order to provide a more reliable and efficient tobacco anti-counterfeiting and tracing method, the embodiment of the invention provides a tobacco anti-counterfeiting and tracing method and system based on a block chain. The technical scheme is as follows:
in a first aspect, a tobacco anti-counterfeiting and tracing method based on a block chain is provided, the method comprising:
s1, generating a hash value for each cigarette, respectively generating corresponding first identification codes according to the hash value of each cigarette, printing the first identification codes on the corresponding cigarettes, and writing the hash value of each cigarette into a merkle tree of a block chain;
s2, calculating a first tree root hash value according to the hash value of each cigarette in a cigarette packet, generating a second identification code according to the first tree root hash value, printing the second identification code on a corresponding packaging box of the cigarette packet, and writing the calculated first tree root hash value corresponding to each cigarette packet into a merkle tree of a block chain;
s3, calculating a second tree root hash value according to the hash value of each cigarette pack in one cigarette, generating a third identification code according to the second tree root hash value, printing the third identification code on a packaging box of the one cigarette, and writing the calculated second tree root hash value corresponding to each cigarette into a merkle tree of a block chain;
s4, calculating a third root hash value according to the hash value of each cigarette in a box of cigarettes, generating a fourth identification code according to the third root hash value, printing the fourth identification code on a packaging box of the box of cigarettes, and writing the calculated third root hash value corresponding to each box of cigarettes into a merkle tree of a block chain;
s5, calculating a fourth tree root hash value according to the hash value of each box of cigarettes in a batch, and writing the fourth tree root hash value into a blockchain merkle tree;
s6, in the transportation process of a carrier, by identifying the identification code on each box of tobacco, recording transportation node information and time information, writing the transportation node information and the time information into a block chain, and identifying the authenticity of the tobacco according to the identification code;
and S7, after the retailer and the consumer obtain the tobacco, identifying the authenticity of the tobacco according to the identification code.
With reference to the first aspect, in a first possible implementation manner, the step S2 is executed by writing tobacco information in a blockchain;
the tobacco information comprises manufacturers, production dates, production addresses and production batch numbers.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, after the retailer and the consumer obtain the tobacco, the identifying the authenticity of the tobacco according to the identification code includes:
after the retailers and consumers acquire the tobacco, acquiring corresponding hash values by identifying the fourth identification code on the packaging box of a box of tobacco, and acquiring corresponding hash values by identifying the third identification code on the packaging box of a cigarette in the box;
calculating a hash value corresponding to the acquired fourth identification code and a hash value corresponding to the third identification code, and determining whether the cigarette belongs to the box; and/or
Acquiring a corresponding hash value by identifying the third identification code on a packing box of a cigarette, and acquiring a corresponding hash value by identifying the second identification code on a packing box of a pack of cigarettes in the cigarette;
calculating a hash value corresponding to the acquired third identification code and a hash value corresponding to the second identification code, and determining whether the cigarette packet belongs to the cigarette; and/or
Acquiring a corresponding hash value by identifying the second identification code on a packaging box of a cigarette, and acquiring a corresponding hash value by identifying the first identification code on one cigarette in the cigarette;
calculating the hash value of the acquired second identification code and the hash value corresponding to the first identification code, and determining whether the cigarette belongs to the cigarette packet;
the tobacco information is written into the block chain and then shared in the block chain, and the tobacco information is acquired by identifying a fourth identification code of a box of cigarettes, a third identification code of a cigarette, a second identification code of a cigarette pack and a first identification code of a cigarette.
With reference to the first aspect, in a third possible implementation manner, during transportation by the carrier, the identifying the authenticity of the tobacco according to the identification code includes:
acquiring a hash value corresponding to a fourth identification code by identifying the fourth identification code on the checked box tobacco;
and calculating according to the obtained hash value and the hash value of the batch of the goods, and determining whether the checked box tobacco belongs to the batch.
With reference to the first aspect, in a fourth possible implementation manner, the identification code includes a two-dimensional code, a barcode, or an RFID code.
In a second aspect, a tobacco anti-counterfeiting and tracing system based on a block chain is provided, the system comprises a first terminal device, an identification device and a second terminal device, wherein,
the first terminal device includes:
the hash value generation module of each cigarette is used for generating a hash value for each cigarette;
the identification code generation module is used for respectively generating corresponding first identification codes according to the hash value of each cigarette;
the printing module is used for printing the first identification code on each corresponding cigarette;
a first writing module, configured to write the hash value of each cigarette into a merkle tree of a block chain;
the first tree root hash value calculating module is used for calculating a first tree root hash value according to the hash value of each cigarette in a pack of cigarettes;
the identification code generation module is further used for generating a second identification code according to the hash value of the first tree root;
the printing module is also used for printing the second identification code on the corresponding packaging box of the cigarette pack;
the first writing module is further used for writing the calculated first tree root hash value corresponding to each cigarette packet into a merkle tree of the block chain;
the second tree root hash value calculation module is used for calculating a second tree root hash value according to the hash value of each cigarette pack in one cigarette;
the identification code generation module is further used for generating a third identification code according to the hash value of the second tree root;
the printing module is also used for printing the third identification code on the packaging box of the cigarette;
the first writing module is further configured to write the calculated second tree root hash value corresponding to each cigarette into the merkle tree of the block chain;
the third root hash value generation module is used for calculating a third root hash value according to the hash value of each cigarette in a box of cigarettes;
the identification code generation module is further used for generating a fourth identification code according to the hash value of the third root;
the printing module is also used for printing the fourth identification code on the packaging box of the box of cigarettes;
the first writing module is further used for writing the calculated third root hash value corresponding to each box of cigarettes into the merkle tree of the block chain;
the fourth tree root hash value calculating module is used for calculating a fourth tree root hash value according to the hash value of each box of cigarettes in a batch;
the first writing module is further configured to write the fourth tree root hash value into a blockchain merkle tree;
the identification device includes:
the first identification code recognition module is used for recognizing the identification code on each box of tobacco in the transportation process of a transport provider;
the recording module is used for recording the transport node information and the time information by identifying the identification code on each box of tobacco;
the second writing module is used for writing the transport node information and the time information into a block chain;
the first identifying module is used for identifying the authenticity of the tobacco according to the identification code;
the second terminal device includes:
and the second identification module is used for identifying the authenticity of the tobacco according to the identification code after the retailer and the consumer obtain the tobacco.
With reference to the second aspect, in a first possible implementation manner, the first writing module is further configured to write tobacco information in a blockchain;
the tobacco information comprises manufacturers, production dates, production addresses and production batch numbers.
With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner, the second authentication module includes:
the second identification code recognition unit is used for recognizing the fourth identification code on the packaging box of the box of tobacco after the retailer and the consumer obtain the tobacco;
the first hash value acquisition unit is used for acquiring a corresponding hash value by identifying the fourth identification code on the packaging box of the box of tobacco;
the second identification code recognition unit is also used for recognizing the third identification code on the packaging box of one cigarette in the box;
the first hash value acquisition unit is further used for acquiring a corresponding hash value by identifying the third identification code on the packaging box of one cigarette in the box;
a first determining unit, configured to calculate a hash value corresponding to the acquired fourth identification code and a hash value corresponding to the third identification code, and determine whether the cigarette belongs to the bin; and/or
The first hash value acquisition unit is further used for acquiring a corresponding hash value by identifying the third identification code on the packaging box of one cigarette;
the second identification code recognition unit is also used for recognizing the second identification code on a packing box of a cigarette in the cigarette;
the first hash value acquisition unit is further used for acquiring a corresponding hash value by identifying the second identification code on the packaging box of one cigarette in the one cigarette;
the first determining unit is further configured to calculate a hash value corresponding to the acquired third identification code and a hash value corresponding to the second identification code, and determine whether the cigarette packet belongs to the cigarette; and/or
The first hash value acquisition unit is further used for acquiring a corresponding hash value by identifying the second identification code on the packaging box of a cigarette;
the second identification code identification unit is also used for identifying a first identification code on one cigarette in the cigarette pack;
the first hash value acquisition unit is further used for acquiring a corresponding hash value by identifying a first identification code on one cigarette in the pack of cigarettes;
the first determining unit is further configured to calculate a hash value of the acquired second identification code and a hash value corresponding to the first identification code, and determine whether the cigarette belongs to the cigarette packet;
the first writing module writes tobacco information into the block chain and shares the tobacco information in the block chain, and the second identification code recognition unit obtains the tobacco information through a fourth identification code for recognizing a box cigarette, a third identification code for a cigarette, a second identification code for a cigarette pack and a first identification code for a cigarette.
With reference to the second aspect, in a third possible implementation manner, the first authentication module includes:
the second hash value acquisition unit is used for acquiring a hash value corresponding to a fourth identification code by identifying the fourth identification code on the checked box tobacco;
and the second determining unit is used for calculating according to the obtained hash value and the hash value of the batch of the goods, and determining whether the checked box tobacco belongs to the batch.
With reference to the second aspect, in a fourth possible implementation manner, the identification code includes a two-dimensional code, a barcode, or an RFID code.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a tobacco anti-counterfeiting and tracing method and a system based on a block chain, wherein a hash value is generated for each cigarette, the hash value of each cigarette respectively generates a corresponding first identification code to be printed on each corresponding cigarette, a first root hash value is calculated according to the hash value of each cigarette in a cigarette pack, and a second identification code is generated to be printed on a corresponding cigarette pack box; calculating the hash value of a second tree root according to the hash value of each cigarette pack in one cigarette, generating a third identification code and printing the third identification code on a packaging box of one cigarette; calculating a hash value of a third root according to the hash value of each cigarette in a box of cigarettes, generating a fourth identification code and printing the fourth identification code on a packaging box of the box of cigarettes; calculating the hash value of the fourth tree root according to the hash value of each box of cigarettes in a batch; writing the hash value of tobacco from each branch to each packet, strip, box and batch into a block chain merkle tree; so that the tobacco has a unique corresponding hash value from the batch to all the cases of tobacco contained in the batch, to each pack of tobacco contained in each case, and finally to each piece of tobacco contained in each pack of tobacco, the hash value of each pack of tobacco is calculated from the hash value of each pack of tobacco contained therein, the hash value of each box of tobacco is calculated from the hash value of each box of tobacco contained therein, the hash values of a batch of tobacco are calculated from the hash values of each box of tobacco contained therein, in this way, the management of the tobacco from branch, pack, strip to box and batch is realized by the stacked merkle trees, which are stored in the block chain, each cigarette is bound with a cigarette packet, each cigarette packet is bound with a cigarette carton package, and each cigarette carton package is bound with a case package, so that the authenticity and traceability of tobacco in a block chain can be guaranteed; meanwhile, in the transportation process of a transport provider, the transport node information and the time information are recorded by identifying the identification code on each box of tobacco, the transport node information and the time information are written into a block chain, and the authenticity of the tobacco is identified according to the identification code; after the retailers and consumers acquire the tobacco, identifying the authenticity of the tobacco according to the identification codes; when the transport company or other departments check the tobacco, the corresponding hash value is obtained by identifying the identification code on the box package, the hash value is calculated by matching with the hash value of the batch of tobacco, and the box tobacco is determined to belong to the batch, so that the authenticity of the box of tobacco is ensured; after a retailer acquires tobacco, the retailer can identify an identification code or a corresponding hash value on a strip package, calculate the hash value of the tobacco in the box through the hash value and determine that the strip package tobacco belongs to the box if the hash value is matched with the hash value, so that the retailer can determine the authenticity of the tobacco, after a consumer acquires a packet of tobacco, identify the identification code on a cigarette to acquire the hash value, calculate the hash value of the tobacco through the hash value and determine that the branch tobacco belongs to the packet if the hash value is matched with the hash value, so that each link can verify the authenticity of the tobacco and inquire tobacco information such as production place, production time and the like, and each node of a supply chain can also verify the authenticity of the product, so that the tobacco anti-counterfeiting and tracing method provided by the embodiment of the invention improves the recognition degree of the verification, and is convenient to recognize and efficient; in addition, the generated identification code only needs to be printed on the package, and compared with the three-dimensional holographic mold, the fluorescent code anti-counterfeiting, the variable frequency ink anti-counterfeiting, the light variable ink anti-counterfeiting and the like in the prior art, the cost is low, the printing process is convenient, and other cost or anti-counterfeiting materials are not needed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a tobacco anti-counterfeiting and tracing method based on a block chain according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a tobacco anti-counterfeiting and tracing system based on a block chain according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
The embodiment of the invention provides a tobacco anti-counterfeiting and tracing method based on a block chain, which is shown in figure 1 and comprises the following steps:
s1, generating a hash value for each cigarette, respectively generating corresponding first identification codes according to the hash value of each cigarette, printing the first identification codes on each corresponding cigarette, and writing the hash value of each cigarette into the merkle tree of the block chain.
The identification code comprises a two-dimensional code, a bar code or an RFID code, and can also be other identification codes suitable for being printed or attached on tobacco or other commodities.
Specifically, the process of generating a hash value for each cigarette may include:
a. assigning a marker code to each cigarette;
the marker code includes using an ASCII code arrangement as the marker code.
For example, each cigarette is marked with an ASCII code, and the 7-bit ASCII code may not be repeated in the mark 1287Smoke is detected; other numbers, symbols or letters can also be used as the mark code of each cigarette, which is not limited in the embodiment of the present invention.
b. Generating a hash value corresponding to each cigarette according to the mark code of each cigarette;
specifically, according to the mark code allocated to each cigarette, a corresponding hash value is calculated through a hash algorithm.
If the first identification code is a two-dimensional code, the hash value of each cigarette is respectively generated into a corresponding two-dimensional code, then the two-dimensional code of each cigarette is printed on the outer packaging paper of the cigarette, and the hash value of each cigarette is written into a merkle tree (a tree in a data structure) of the block chain for recording.
The method comprises the steps of distributing a mark code for each cigarette to generate a corresponding hash value, generating an identification code according to the hash value of each cigarette, printing the identification code on each corresponding cigarette, writing the hash value of each cigarette into a merkle tree of a block chain, recording each cigarette through the block chain, and if the cigarette is fake, not obtaining the corresponding hash value in the block chain, so that each cigarette is guaranteed not to be fake and can be traced to the source.
S2, calculating a first tree root hash value according to the hash value of each cigarette in a cigarette packet, generating a second identification code according to the first tree root hash value, printing the second identification code on a corresponding cigarette packet packaging box, and writing the calculated first tree root hash value corresponding to each cigarette packet into the merkle tree of the block chain.
Wherein, also include writing into the tobacco information in the block chain;
the tobacco information comprises manufacturers, production dates, production addresses and production batch numbers; besides, other tobacco information, such as the tobacco producing area, the content of each component of the tobacco, etc., may also be included, and the embodiment of the present invention does not limit the specific written tobacco information.
Specifically, when the first root hash value corresponding to each cigarette packet is written into merkle of the block chain, the tobacco information is written into the block chain along with each cigarette packet, so as to share the tobacco information in the block chain.
Through writing into tobacco information into the block chain along with every packet of cigarette, made things convenient for other people to acquire tobacco information, simultaneously, because the tobacco information of writing into the block chain can share to when other people discernment cigarette, a packet of cigarette or a cigarette etc. all can obtain tobacco information, made things convenient for the user to look over in order to realize tracing to the source to the tobacco.
S3, calculating a second tree root hash value according to the hash value of each cigarette pack in one cigarette, generating a third identification code according to the second tree root hash value, printing the third identification code on a packaging box of one cigarette, and writing the calculated second tree root hash value corresponding to each cigarette into the merkle tree of the block chain.
S4, calculating a hash value of a third tree root according to the hash value of each cigarette in one box of cigarettes, generating a fourth identification code according to the hash value of the third tree root, printing the fourth identification code on a packaging box of one box of cigarettes, and writing the calculated hash value of the third tree root corresponding to each box of cigarettes into the merkle tree of the block chain.
And S5, calculating a fourth tree root hash value according to the hash value of each box of cigarettes in a batch, and writing the fourth tree root hash value into the blockchain merkle tree.
Specifically, still include:
writing the corresponding fourth root hash value for each batch of tobacco to the merkle tree of the blockchain.
S6, during transportation by a carrier, the transport node information and the time information are recorded by identifying the identification code on each box of tobacco, the transport node information and the time information are written into the block chain, and the authenticity of the tobacco is identified according to the identification code.
Specifically, in the transportation process of the carrier, the process of identifying the authenticity of the tobacco according to the identification code may include:
acquiring a hash value corresponding to a fourth identification code by identifying the fourth identification code on the checked box tobacco;
and calculating according to the obtained hash value and the hash value of the batch of the goods, and determining whether the box tobacco subjected to the drawing test belongs to the batch.
And S7, after the retailers and the consumers acquire the tobacco, identifying the authenticity of the tobacco according to the identification codes.
The retailer and the consumer may obtain the case-packed tobacco, the strip-packed tobacco, the packet-packed tobacco and each piece of tobacco in each packet, and can verify the authenticity of the tobacco from each piece, packet, strip to packet, the preferred retailer verifies the authenticity of the tobacco by verifying whether each piece of tobacco belongs to the packet and whether each packet of tobacco belongs to the strip, and the consumer preferably verifies the authenticity of the tobacco by verifying whether each piece of tobacco belongs to the packet;
specifically, the process may include:
after the retailers and consumers acquire the tobacco, acquiring corresponding hash values by identifying the fourth identification code on the packaging box of a box of tobacco, and acquiring corresponding hash values by identifying the third identification code on the packaging box of a cigarette in the box;
calculating a hash value corresponding to the acquired fourth identification code and a hash value corresponding to the third identification code to determine whether a cigarette belongs to a box; and/or
Acquiring a corresponding hash value by identifying a third identification code on a packaging box of a cigarette, and acquiring a corresponding hash value by identifying a second identification code on a packaging box of a pack of cigarettes in the cigarette;
calculating a hash value corresponding to the acquired third identification code and a hash value corresponding to the second identification code to determine whether a packet of cigarettes belongs to a cigarette; and/or
Acquiring a corresponding hash value by identifying a second identification code on a packaging box of a cigarette, and acquiring a corresponding hash value by identifying a first identification code on one cigarette in the cigarette;
calculating the hash value of the acquired second identification code and the hash value corresponding to the first identification code to determine whether a cigarette belongs to a pack of cigarettes;
the tobacco information is written into the block chain and then shared in the block chain, and the tobacco information is acquired by identifying a fourth identification code of a box of cigarettes, a third identification code of a cigarette, a second identification code of a cigarette pack and a first identification code of a cigarette.
Optionally, the method provided by the embodiment of the invention can also be applied to anti-counterfeiting and tracing in the fields of medicines, foods, vaccines, branded goods, luxury goods and the like, and if the anti-counterfeiting and tracing method adopted in the fields and the anti-counterfeiting and tracing method related to tobacco belong to the same idea, the method is within the protection scope of the invention.
Optionally, the method provided by the embodiment of the present invention can be applied to any one of a common chain, a federation chain, and a private chain in a block chain.
The embodiment of the invention provides a tobacco anti-counterfeiting and tracing method based on a block chain, which comprises the steps of generating a hash value for each cigarette, respectively generating a corresponding first identification code for each cigarette, printing the corresponding first identification code on each cigarette, calculating a first root hash value according to the hash value of each cigarette in a cigarette packet, and generating a second identification code, and printing the second identification code on a corresponding cigarette packet packaging box; calculating the hash value of a second tree root according to the hash value of each cigarette pack in one cigarette, generating a third identification code and printing the third identification code on a packaging box of one cigarette; calculating a hash value of a third root according to the hash value of each cigarette in a box of cigarettes, generating a fourth identification code and printing the fourth identification code on a packaging box of the box of cigarettes; calculating the hash value of the fourth tree root according to the hash value of each box of cigarettes in a batch; writing the hash value of tobacco from each branch to each packet, strip, box and batch into a block chain merkle tree; so that the tobacco has a unique corresponding hash value from the batch to all the cases of tobacco contained in the batch, to each pack of tobacco contained in each case, and finally to each piece of tobacco contained in each pack of tobacco, the hash value of each pack of tobacco is calculated from the hash value of each pack of tobacco contained therein, the hash value of each box of tobacco is calculated from the hash value of each box of tobacco contained therein, the hash values of a batch of tobacco are calculated from the hash values of each box of tobacco contained therein, in this way, the management of the tobacco from branch, pack, strip to box and batch is realized by the stacked merkle trees, which are stored in the block chain, each cigarette is bound with a cigarette packet, each cigarette packet is bound with a cigarette carton package, and each cigarette carton package is bound with a case package, so that the authenticity and traceability of tobacco in a block chain can be guaranteed; meanwhile, in the transportation process of a carrier, the transportation node information and the time information are recorded by identifying the identification code on each box of tobacco, the transportation node information and the time information are written into a block chain, and the authenticity of the tobacco is identified according to the identification code; after the retailers and consumers acquire the tobacco, identifying the authenticity of the tobacco according to the identification codes; when the transport company or other departments check the tobacco, the corresponding hash value is obtained by identifying the identification code on the box package, the hash value is calculated by matching with the hash value of the batch of tobacco, and the box tobacco is determined to belong to the batch, so that the authenticity of the box of tobacco is ensured; after a retailer acquires tobacco, the retailer can identify an identification code or a corresponding hash value on a strip package, calculate the hash value of the tobacco in the box through the hash value and determine that the strip package tobacco belongs to the box if the hash value is matched with the hash value, so that the retailer can determine the authenticity of the tobacco, after a consumer acquires a packet of tobacco, identify the identification code on a cigarette to acquire the hash value, calculate the hash value of the tobacco through the hash value and determine that the branch tobacco belongs to the packet if the hash value is matched with the hash value, so that each link can verify the authenticity of the tobacco and inquire tobacco information such as production place, production time and the like, and each node of a supply chain can also verify the authenticity of the product, so that the tobacco anti-counterfeiting and tracing method provided by the embodiment of the invention improves the recognition degree of the verification, and is convenient to recognize and efficient; in addition, the generated identification code only needs to be printed on the package, and compared with the three-dimensional holographic mold, the fluorescent code anti-counterfeiting, the variable frequency ink anti-counterfeiting, the light variable ink anti-counterfeiting and the like in the prior art, the cost is low, the printing process is convenient, and other cost or anti-counterfeiting materials are not needed.
Example two
An embodiment of the present invention provides a tobacco anti-counterfeiting and tracing system based on a block chain, and as shown in fig. 2, the system 2 includes a first terminal device 21, an identification device 22, and a second terminal device 23, wherein,
the first terminal device 21 includes:
a hash value generation module 211 for each cigarette, configured to generate a hash value for each cigarette;
the identification code generating module 212 is used for respectively generating corresponding first identification codes according to the hash value of each cigarette;
a printing module 213, configured to print the first identification code on each corresponding cigarette;
a first writing module 214, configured to write the hash value of each cigarette into a merkle tree of the blockchain;
a first tree root hash value calculation module 215, configured to calculate a first tree root hash value according to a hash value of each cigarette in a pack of cigarettes;
the identification code generating module 212 is further configured to generate a second identification code according to the hash value of the first tree root;
the printing module 213 is further configured to print the second identification code on a corresponding cigarette packing box;
the first writing module 214 is further configured to write the calculated first root hash value corresponding to each cigarette packet into the merkle tree of the blockchain;
a second root hash value calculation module 216, configured to calculate a second root hash value according to a hash value of each cigarette pack in a cigarette;
the identification code generating module 212 is further configured to generate a third identification code according to the hash value of the second tree root;
the printing module 213 is further configured to print a third identification code on the packaging box of a cigarette;
the first writing module 214 is further configured to write the calculated second root hash value corresponding to each cigarette into the merkle tree of the blockchain;
a third root hash value generation module 217, configured to calculate a third root hash value according to the hash value of each cigarette in a box of cigarettes;
the identification code generating module 212 is further configured to generate a fourth identification code according to the hash value of the third root;
the printing module 213 is further configured to print a fourth identification code on a packing box of a box of cigarettes;
the first writing module 214 is further configured to write the calculated third root hash value corresponding to each box of smoke into the merkle tree of the blockchain;
a fourth root hash value calculation module 218, configured to calculate a fourth root hash value according to the hash value of each box of cigarettes in a batch;
the first writing module 214 is further configured to write the fourth tree root hash value into the blockchain merkle tree;
the identification device 22 includes:
the first identification code recognition module 221 is used for recognizing the identification code on each box of tobacco in the transportation process of a carrier;
a recording module 222, configured to record transportation node information and time information by identifying an identification code on each box of tobacco;
a second writing module 223, configured to write the transportation node information and the time information into the block chain;
the first identifying module 224 is used for identifying the authenticity of the tobacco according to the identification code;
the second terminal device 23 includes:
and the second identification module 231 is used for identifying the authenticity of the tobacco according to the identification code after the retailer and the consumer acquire the tobacco.
Optionally, the first writing module 214 is further configured to write tobacco information in the blockchain;
the tobacco information comprises manufacturers, production dates, production addresses and production batch numbers.
Optionally, the second authentication module 231 includes:
a second identification code recognition unit 2311 for recognizing a fourth identification code on a package of a pack of tobacco after the retailer and the consumer have acquired the tobacco;
a first hash value obtaining unit 2312, configured to obtain a corresponding hash value by identifying a fourth identification code on a packing box of a box of tobacco;
the second identification code recognition unit 2311 is also used for recognizing a third identification code on a packing box of a cigarette in the box;
the first hash value obtaining unit 2312 is further configured to obtain a corresponding hash value by identifying a third identification code on a packing box of a cigarette in the carton;
a first determining unit 2313, configured to calculate a hash value corresponding to the acquired fourth identifier and a hash value corresponding to the third identifier, and determine whether a cigarette belongs to a carton; and/or
The first hash value obtaining unit 2312 is further configured to obtain a corresponding hash value by identifying a third identification code on a packing box of a cigarette;
the second identification code recognition unit 2311 is also used for recognizing a second identification code on a pack of a cigarette in a strip of cigarettes;
the first hash value obtaining unit 2312 is further configured to obtain a corresponding hash value by identifying a second identification code on a packing box of a pack of cigarettes in a cigarette;
the first determining unit 2313 is further configured to calculate a hash value corresponding to the acquired third identification code and a hash value corresponding to the second identification code, and determine whether a packet of cigarettes belongs to a cigarette; and/or
The first hash value obtaining unit 2312 is further configured to obtain a corresponding hash value by recognizing a second identification code on a packing box of a pack of cigarettes;
the second identification code recognition unit 2311 is also used for recognizing the first identification code on one cigarette in one pack of cigarettes;
the first hash value obtaining unit 2312 is further configured to obtain a corresponding hash value by identifying a first identification code on one cigarette in a pack of cigarettes;
the first determining unit 2313 is further configured to calculate a hash value of the obtained second identification code and a hash value corresponding to the first identification code, and determine whether a cigarette belongs to a pack of cigarettes;
after the first writing module 214 writes the tobacco information into the blockchain, the tobacco information is shared in the blockchain, and the second identification code recognition unit 2311 acquires the tobacco information by recognizing the fourth identification code of a cigarette carton, the third identification code of a cigarette, the second identification code of a cigarette pack and the first identification code of a cigarette.
Optionally, the first authentication module 224 includes:
a second hash value obtaining unit 2241, configured to obtain a hash value corresponding to the fourth identification code by identifying the fourth identification code on the checked box tobacco;
and the second determining unit 2242 is configured to calculate according to the obtained hash value and the hash value of the batch of the goods, and determine whether the checked box tobacco belongs to the batch.
Optionally, the identification code comprises a two-dimensional code, a barcode or an RFID code.
The embodiment of the invention provides a tobacco anti-counterfeiting and tracing system based on a block chain, which generates a hash value for each cigarette, respectively generates a corresponding first identification code for each cigarette, prints the corresponding first identification code on each cigarette, calculates a first root hash value according to the hash value of each cigarette in a cigarette pack, generates a second identification code, and prints the second identification code on a corresponding cigarette pack box; calculating the hash value of a second tree root according to the hash value of each cigarette pack in one cigarette, generating a third identification code and printing the third identification code on a packaging box of one cigarette; calculating a hash value of a third root according to the hash value of each cigarette in a box of cigarettes, and generating a fourth identification code printed on a packaging box of the box of cigarettes; calculating the hash value of the fourth tree root according to the hash value of each box of cigarettes in a batch; writing the hash value of tobacco from each branch to each packet, strip, box and batch into a block chain merkle tree; so that the tobacco has a unique corresponding hash value from the batch to all the cases of tobacco contained in the batch, to each pack of tobacco contained in each case, and finally to each piece of tobacco contained in each pack of tobacco, and the hash value of each package of tobacco is calculated from the hash value of each package of tobacco contained therein, the hash value of each box of tobacco is calculated from the hash value of each package of tobacco contained therein, the hash values of a batch of tobacco are calculated from the hash values of each box of tobacco contained therein, in this way, the management of the tobacco from branch, pack, strip to box and batch is realized by the stacked merkle trees, which are stored in the block chain, each cigarette is bound with a cigarette packet, each cigarette packet is bound with a cigarette carton package, and each cigarette carton package is bound with a case package, so that the authenticity and traceability of tobacco in a block chain can be guaranteed; meanwhile, in the transportation process of a carrier, the transportation node information and the time information are recorded by identifying the identification code on each box of tobacco, the transportation node information and the time information are written into a block chain, and the authenticity of the tobacco is identified according to the identification code; after the retailers and consumers acquire the tobacco, identifying the authenticity of the tobacco according to the identification codes; when the transport company or other departments check the tobacco, the corresponding hash value is obtained by identifying the identification code on the box package, the hash value is calculated by matching with the hash value of the batch of tobacco, and the box tobacco is determined to belong to the batch, so that the authenticity of the box of tobacco is ensured; after a retailer acquires tobacco, the retailer can identify an identification code or a corresponding hash value on a strip package, calculate the hash value of the tobacco in the box through the hash value and determine that the strip package tobacco belongs to the box if the hash value is matched with the hash value, so that the retailer can determine the authenticity of the tobacco, after a consumer acquires a packet of tobacco, identify the identification code on a cigarette to acquire the hash value, calculate the hash value of the tobacco through the hash value and determine that the branch tobacco belongs to the packet if the hash value is matched with the hash value, so that each link can verify the authenticity of the tobacco and inquire tobacco information such as production place, production time and the like, and each node of a supply chain can also verify the authenticity of the product, so that the tobacco anti-counterfeiting and tracing method provided by the embodiment of the invention improves the recognition degree of the verification, and is convenient to recognize and efficient; in addition, the generated identification code only needs to be printed on the package, and compared with the three-dimensional holographic mold, the fluorescent code anti-counterfeiting, the variable frequency ink anti-counterfeiting, the light variable ink anti-counterfeiting and the like in the prior art, the cost is low, the printing process is convenient, and other cost or anti-counterfeiting materials are not needed.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
It should be noted that: in the tobacco anti-counterfeiting and tracing system based on the block chain provided by the embodiment, when the tobacco anti-counterfeiting and tracing method based on the block chain is executed, only the division of the functional modules is taken as an example, and in practical application, the function distribution can be completed by different functional modules according to needs, that is, the internal structure of the system is divided into different functional modules so as to complete all or part of the functions described above. In addition, the block chain-based tobacco anti-counterfeiting and tracing system provided by the embodiment and the block chain-based tobacco anti-counterfeiting and tracing method embodiment belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment and is not repeated herein.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (6)

1. A tobacco anti-counterfeiting and tracing method based on a block chain is characterized by comprising the following steps:
s1, distributing a mark code for each cigarette, generating a hash value of each cigarette according to the mark code, respectively generating corresponding first identification codes according to the hash value of each cigarette, printing the first identification codes on the corresponding cigarettes, and writing the hash value of each cigarette into a merkle tree of a block chain;
s2, calculating a first tree root hash value according to the hash value of each cigarette in a cigarette packet, generating a second identification code according to the first tree root hash value, printing the second identification code on a corresponding packaging box of the cigarette packet, and writing the calculated first tree root hash value corresponding to each cigarette packet into a merkle tree of a block chain;
s3, calculating a second tree root hash value according to the hash value of each cigarette pack in one cigarette, generating a third identification code according to the second tree root hash value, printing the third identification code on a packaging box of the one cigarette, and writing the calculated second tree root hash value corresponding to each cigarette into a merkle tree of a block chain;
s4, calculating a third root hash value according to the hash value of each cigarette in a box of cigarettes, generating a fourth identification code according to the third root hash value, printing the fourth identification code on a packaging box of the box of cigarettes, and writing the calculated third root hash value corresponding to each box of cigarettes into a merkle tree of a block chain;
s5, calculating a fourth tree root hash value according to the hash value of each box of cigarettes in a batch, and writing the fourth tree root hash value into a blockchain merkle tree;
s6, in the transportation process of a carrier, by identifying the identification code on each box of tobacco, recording transportation node information and time information, writing the transportation node information and the time information into a block chain, and identifying the authenticity of the tobacco according to the identification code;
s7, after the retailer and the consumer obtain the tobacco, the retailer and the consumer identify the authenticity of the tobacco according to the identification code,
after the retailers and consumers acquire the tobacco, identifying the authenticity of the tobacco according to the identification codes comprises the following steps:
after the retailers and consumers acquire the tobacco, acquiring corresponding hash values by identifying the fourth identification codes on the packaging boxes of a box of tobacco, and acquiring corresponding hash values by identifying the third identification codes on the packaging boxes of each cigarette in the box;
calculating a hash value corresponding to the acquired fourth identification code and a hash value corresponding to the third identification code, and determining whether each cigarette in the box belongs to the box; and/or
Acquiring a corresponding hash value by identifying the third identification code on the packaging box of one cigarette, and acquiring a corresponding hash value by identifying the second identification code on the packaging box of each packet of cigarettes in the one cigarette;
calculating a hash value corresponding to the acquired third identification code and a hash value corresponding to the second identification code, and determining whether each cigarette packet in the cigarette belongs to the cigarette; and/or
Acquiring a corresponding hash value by identifying the second identification code on a packaging box of a cigarette pack, and acquiring a corresponding hash value by identifying the first identification code on each cigarette in the cigarette pack;
calculating the hash value of the obtained second identification code and the hash value corresponding to the first identification code, and determining whether each cigarette in the cigarette packet belongs to the cigarette packet;
the tobacco information is written into the block chain and then shared in the block chain, and the tobacco information is acquired by identifying a fourth identification code of a box of cigarettes, a third identification code of a cigarette, a second identification code of a cigarette pack and a first identification code of a cigarette.
2. The method of claim 1, further comprising writing tobacco information in a blockchain when performing step S2;
the tobacco information comprises manufacturers, production dates, production addresses and production batch numbers.
3. The method of claim 1 or 2, wherein the identification code comprises a two-dimensional code, a barcode or an RFID code.
4. A tobacco anti-counterfeiting and tracing system based on a block chain is characterized by comprising a first terminal device, an identification device and a second terminal device, wherein,
the first terminal device includes:
the hash value generation module of each cigarette is used for generating a hash value for each cigarette;
the identification code generation module is used for respectively generating corresponding first identification codes according to the hash value of each cigarette;
the printing module is used for printing the first identification code on each corresponding cigarette;
a first writing module, configured to write the hash value of each cigarette into a merkle tree of a block chain;
the first tree root hash value calculating module is used for calculating a first tree root hash value according to the hash value of each cigarette in a pack of cigarettes;
the identification code generation module is further used for generating a second identification code according to the hash value of the first tree root;
the printing module is also used for printing the second identification code on the corresponding packaging box of the cigarette pack;
the first writing module is further used for writing the calculated first tree root hash value corresponding to each cigarette packet into a merkle tree of the block chain;
the second tree root hash value calculation module is used for calculating a second tree root hash value according to the hash value of each cigarette pack in one cigarette;
the identification code generation module is further used for generating a third identification code according to the hash value of the second tree root;
the printing module is also used for printing the third identification code on the packaging box of the cigarette;
the first writing module is further configured to write the calculated second tree root hash value corresponding to each cigarette into the merkle tree of the block chain;
the third root hash value generation module is used for calculating a third root hash value according to the hash value of each cigarette in a box of cigarettes;
the identification code generation module is further used for generating a fourth identification code according to the hash value of the third root;
the printing module is also used for printing the fourth identification code on the packaging box of the box of cigarettes;
the first writing module is further used for writing the calculated third root hash value corresponding to each box of cigarettes into the merkle tree of the block chain;
the fourth tree root hash value calculating module is used for calculating a fourth tree root hash value according to the hash value of each box of cigarettes in a batch;
the first writing module is further configured to write the fourth tree root hash value into a blockchain merkle tree;
the identification device includes:
the first identification code recognition module is used for recognizing the identification code on each box of tobacco in the transportation process of a transport provider;
the recording module is used for recording the transport node information and the time information by identifying the identification code on each box of tobacco;
the second writing module is used for writing the transport node information and the time information into a block chain;
the first identifying module is used for identifying the authenticity of the tobacco according to the identification code;
the second terminal device includes:
the second identification module is used for identifying the authenticity of the tobacco according to the identification code after the retailer and the consumer obtain the tobacco, and the second identification module comprises:
the second identification code recognition unit is used for recognizing the fourth identification code on the packaging box of the box of tobacco after the retailer and the consumer obtain the tobacco;
the first hash value acquisition unit is used for acquiring a corresponding hash value by identifying the fourth identification code on the packaging box of the box of tobacco;
the second identification code recognition unit is also used for recognizing the third identification code on the packaging box of each cigarette in the box;
the first hash value acquisition unit is further used for acquiring a corresponding hash value by identifying the third identification code on the packaging box of each cigarette in the box;
the first determining unit is used for calculating a hash value corresponding to the acquired fourth identification code and a hash value corresponding to the acquired third identification code, and determining whether each cigarette in the box belongs to the box; and/or
The first hash value acquisition unit is further used for acquiring a corresponding hash value by identifying the third identification code on the packaging box of one cigarette;
the second identification code recognition unit is also used for recognizing the second identification code on the packing box of each cigarette in the cigarette;
the first hash value acquisition unit is further used for acquiring a corresponding hash value by identifying the second identification code on the packing box of each cigarette in the cigarette;
the first determining unit is further configured to calculate a hash value corresponding to the acquired third identification code and a hash value corresponding to the second identification code, and determine whether each cigarette pack in the cigarette belongs to the cigarette; and/or
The first hash value acquisition unit is further used for acquiring a corresponding hash value by identifying the second identification code on the packaging box of a cigarette;
the second identification code identification unit is also used for identifying a first identification code on each cigarette in the pack of cigarettes;
the first hash value acquisition unit is further used for acquiring a corresponding hash value by identifying a first identification code on each cigarette in the pack of cigarettes;
the first determining unit is further configured to calculate a hash value of the acquired second identification code and a hash value corresponding to the first identification code, and determine whether each cigarette in the pack of cigarettes belongs to the pack of cigarettes;
the first writing module writes tobacco information into the block chain and shares the tobacco information in the block chain, and the second identification code recognition unit obtains the tobacco information through a fourth identification code for recognizing a box cigarette, a third identification code for a cigarette, a second identification code for a cigarette pack and a first identification code for a cigarette.
5. The system of claim 4, wherein the first writing module is further configured to write tobacco information in a blockchain;
the tobacco information comprises manufacturers, production dates, production addresses and production batch numbers.
6. The system of any one of claims 4 or 5, wherein the identification code comprises a two-dimensional code, a barcode or an RFID code.
CN201710806194.8A 2017-09-08 2017-09-08 Tobacco anti-counterfeiting and tracing method and system based on block chain Active CN107657460B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710806194.8A CN107657460B (en) 2017-09-08 2017-09-08 Tobacco anti-counterfeiting and tracing method and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710806194.8A CN107657460B (en) 2017-09-08 2017-09-08 Tobacco anti-counterfeiting and tracing method and system based on block chain

Publications (2)

Publication Number Publication Date
CN107657460A CN107657460A (en) 2018-02-02
CN107657460B true CN107657460B (en) 2021-08-03

Family

ID=61129450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710806194.8A Active CN107657460B (en) 2017-09-08 2017-09-08 Tobacco anti-counterfeiting and tracing method and system based on block chain

Country Status (1)

Country Link
CN (1) CN107657460B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108595980B (en) * 2018-05-02 2023-01-24 广州品唯软件有限公司 Method and device for protecting commodity traceability information
CN108764941A (en) * 2018-05-24 2018-11-06 朱世昕 A kind of block chain anti-counterfeiting system
CN109299757A (en) * 2018-07-20 2019-02-01 深圳市易恒信科技有限公司 Two dimensional code setting method, setting system and its two dimensional code based on block chain
CN109214829B (en) * 2018-08-02 2021-09-17 河北同福健康产业有限公司 Food safety tracing method and device
CN109102305B (en) * 2018-08-06 2022-03-29 程昔恩 Article anti-counterfeiting and tracing method realized by block chain and intelligent contract thereof
DE102018006211A1 (en) * 2018-08-07 2020-02-13 Bundesdruckerei Gmbh Process for logging product identifiers
CN109784944B (en) * 2018-12-26 2022-09-20 成都健数科技有限公司 First-level approval method for medicine information acquisition
CN109615404A (en) * 2019-01-08 2019-04-12 广东工业大学 Based on hard-wired block chain data encryption strengthening design
CN109949047A (en) * 2019-01-28 2019-06-28 北京科程电子商务有限责任公司 A kind of anti-fake source tracing method of tobacco based on block chain and system
CN109934598B (en) * 2019-03-07 2023-10-27 重庆市千将软件有限公司 Block chain tobacco traceability anti-counterfeiting system
CN110070368A (en) * 2019-04-23 2019-07-30 成都四方伟业软件股份有限公司 Anti-counterfeit authentication method, device, production method, product and the system of product
CN110503438A (en) * 2019-07-10 2019-11-26 王伟林 A kind of production anti-fake traceability system and method based on block chain
CN110598470B (en) * 2019-09-17 2023-12-15 腾讯科技(深圳)有限公司 Block chain-based commodity information storage method, device and system and storage medium
CN111827001A (en) * 2020-08-04 2020-10-27 安徽天翔高新特种包装材料集团有限公司 Cigarette tipping paper with variable two-dimensional code
CN112632060B (en) * 2020-08-31 2022-10-11 上海墨珩网络科技有限公司 Block chain based hierarchical traceability batch information recording method and device
CN113673657A (en) * 2021-09-07 2021-11-19 四川中烟工业有限责任公司 Automatic cigar tracing system
CN116976919B (en) * 2023-09-25 2024-01-02 国品优选(北京)品牌管理有限公司 Block chain-based anti-counterfeiting traceability method and system for oral liquid

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105608146A (en) * 2015-12-17 2016-05-25 布比(北京)网络技术有限公司 Block chain tracing method
CN107122985A (en) * 2017-05-09 2017-09-01 广东工业大学 A kind of agricultural-product supply-chain traceability system based on Internet of Things and block chain

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9858569B2 (en) * 2014-03-21 2018-01-02 Ramanan Navaratnam Systems and methods in support of authentication of an item

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105608146A (en) * 2015-12-17 2016-05-25 布比(北京)网络技术有限公司 Block chain tracing method
CN107122985A (en) * 2017-05-09 2017-09-01 广东工业大学 A kind of agricultural-product supply-chain traceability system based on Internet of Things and block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
中兴通讯田江磊:基于区块链的烟草防伪溯源;本站收录;《http://news.rfidworld.com.cn/2017_08/c2c8b8e8e3ae157f.html》;20170830;正文第2-4页 *

Also Published As

Publication number Publication date
CN107657460A (en) 2018-02-02

Similar Documents

Publication Publication Date Title
CN107657460B (en) Tobacco anti-counterfeiting and tracing method and system based on block chain
CN106779737B (en) Product traceability verification method based on block chain technology
CN108874890B (en) Block chain system with public bibliographic mechanism
CN109726780B (en) Block chain-based packaging material verification method, device and system
CN105894307B (en) Holographic anti-fake inquiry system and its anti-fake technology inquiry application method
CN105550732A (en) Combined-type source tracing label and commodity source tracing method and system
CN104835045B (en) A kind of commodity antifake check method and system based on Internet of Things mark service
KR20150103029A (en) Method and apparatus for marking manufactured items using physical characteristic
CN107431622A (en) The blocking tracking in supply chain occurs
CN106296228A (en) A kind of product product control source tracing method
CN102567806A (en) Biological characteristic-based agricultural product anti-counterfeit label system and method thereof
CN109951427B (en) Product tracing method and system and cloud tracing platform
CN105701673A (en) Watch anti-fake traceablility method and system based on two-dimensional codes
CN102663590A (en) System and method of commodity anti-counterfeiting authentication based on restriction of authentication frequency
CN104616150A (en) Tracking, managing and authentic identification system and method for circulation goods
CN104951952A (en) Certified product Internet of things cloud management authentication system for brand products
CN107169777A (en) A kind of system of overlay code anti-counterfeiting method and application this method
US20090006255A1 (en) Method of Authentication of the Items Put Into Circulation
CN111159458A (en) Agricultural product image processing and block chain interactive identification method and system
CN109919280B (en) Anti-counterfeiting electronic code label, commodity with anti-counterfeiting electronic code and anti-counterfeiting method
CN109036101A (en) Antifalsification label, Antiforge inquiry system and method
CN202422202U (en) Agricultural product anti-counterfeiting mark system based on biological characteristics
CN108875875A (en) A kind of label and method for anti-counterfeit
CN104408634A (en) Product anti-counterfeiting method, product anti-counterfeiting system and product bar code inquiring method
CN104091258A (en) Dicode anti-counterfeiting anti-channel conflict method for tubular products

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
CB03 Change of inventor or designer information

Inventor after: Kan Haibin

Inventor after: Tan Bin

Inventor after: Wen Jie

Inventor after: Liu Qiushan

Inventor before: Liu Qiushan

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240306

Address after: Room 1179, W Zone, 11th Floor, Building 1, No. 158 Shuanglian Road, Qingpu District, Shanghai, 201702

Patentee after: Shanghai Zhongan Information Technology Service Co.,Ltd.

Country or region after: China

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee before: ZHONGAN INFORMATION TECHNOLOGY SERVICE Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240415

Address after: Room 1179, W Zone, 11th Floor, Building 1, No. 158 Shuanglian Road, Qingpu District, Shanghai, 201702

Patentee after: Shanghai Zhongan Information Technology Service Co.,Ltd.

Country or region after: China

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee before: ZHONGAN INFORMATION TECHNOLOGY SERVICE Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right