CN111401927A - Food label unique code issuing and circulation tracing method based on block chain major-minor chain technology - Google Patents

Food label unique code issuing and circulation tracing method based on block chain major-minor chain technology Download PDF

Info

Publication number
CN111401927A
CN111401927A CN202010246536.7A CN202010246536A CN111401927A CN 111401927 A CN111401927 A CN 111401927A CN 202010246536 A CN202010246536 A CN 202010246536A CN 111401927 A CN111401927 A CN 111401927A
Authority
CN
China
Prior art keywords
information
unique code
chain
food
node
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.)
Withdrawn
Application number
CN202010246536.7A
Other languages
Chinese (zh)
Inventor
綦昱钧
顾海燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202010246536.7A priority Critical patent/CN111401927A/en
Publication of CN111401927A publication Critical patent/CN111401927A/en
Withdrawn 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
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Abstract

A food label unique code issuing and circulation tracing method based on a block chain master-slave chain technology is characterized in that a public key and a private key are adopted to verify a commodity label unique code information block chain technology in pairs, a front-stage production enterprise and a back-stage production enterprise producing a certain food in a circulation chain or a sales enterprise link the food label unique code information block into a slave chain by a private key and public key verification method in pairs, the slave chain and a timestamp are used as block information and added into a main chain, so that the main chain and the slave chain information are prevented from being forged, tampered and replayed, the food label unique code network transmission and single piece food information can be independently chained and traced to the source, and a user comprises a third party organization, manufacturers at all stages, dealers and consumers which are respectively connected with the Internet; storing food tag information block chain accounts in server databases of third-party institutions, manufacturers at all levels and distributors, receiving new legality verification data issued by other parties in real time, updating local accounts in time, hanging new data blocks according to food transfer conditions, and issuing new block chain data; and when the consumer scans the codes, the latest block chain of the timestamp is acquired and compared from the plurality of enterprise servers, and the food traceability information chain is obtained through calculation.

Description

Food label unique code issuing and circulation tracing method based on block chain major-minor chain technology
Technical Field
The invention belongs to the technical field of commodity circulation anti-counterfeiting and circulation tracing, and particularly relates to a food label unique code issuing and circulation tracing method based on a block chain major-minor chain technology.
Background
The food safety problem is related to the health and life safety of the masses, and the brand reputation and economic benefits of the genuine merchants are seriously damaged by counterfeit and shoddy commodities. With increasingly developed product circulation and increasingly refined production division, forward tracing of circulation chains is increasingly difficult to realize, and illegal behaviors such as counterfeit and counterfeit, cross-regional sales and the like are increasingly difficult to distinguish and restrain. The traditional anti-counterfeiting and tracing technology comprises anti-counterfeiting marks such as two-dimensional codes, bar codes, supervision codes and certificates, measures such as two-dimensional code additional coatings and scraping and scanning codes, and the problems of origin counterfeiting, circulation link counterfeiting, counterfeit and shoddy products and the like by means of copying, counterfeiting, transferring the anti-counterfeiting marks and the like cannot be fundamentally solved. In recent years, companies such as the university of danish shipping majordomo, the domestic kyoto group, and the like attempt to adopt technologies such as block chain decentralization, distributed accounting, time stamping, and the like to enhance the non-tampering capability of the commodity label information.
For example: the application number is 201710335735.3, the application date is 2017, 05, 12 and the patent name is an anti-counterfeiting tracking verification method based on a block chain and a device using the method, and the method comprises the following steps: s1, the buyer sends a purchase request to the seller and simultaneously sends a buyer public key to the seller; s2, the seller signs the public key of the buyer and the data information by using the private key of the seller to form an anti-counterfeiting label, and the anti-counterfeiting label is recorded into the block chain; s3, the seller sends the goods to the buyer along with the anti-counterfeit label; s4, verifying the authenticity of the goods after the buyer receives the goods; the application number is 201810188411.6, the application date is 2018, 03 and 07, the patent name is a block chain-based asset tracing method, device, electronic equipment and storage medium, and the block chain-based asset tracing method comprises the following steps: receiving an asset identification for an asset; determining an abstract query pattern graph associated with the asset; generating a query pattern graph from a business model associated with the asset identifier based on the abstract query pattern graph; querying the tracing data associated with the asset identifier from a tracing database arranged in the block chain according to the query pattern diagram; the application number is 201710281043.5, the application date is 2017, 26.04.2017, the patent name is a system and a method for anti-counterfeiting tracing of agricultural material logistics, and the system belongs to the technical field of information service and comprises an anti-counterfeiting label, an anti-counterfeiting reading machine, a server and a supplier card, wherein the anti-counterfeiting label is fixedly arranged at a sealing part of an agricultural material packaging bag; the anti-counterfeiting reader is connected with the server through network data transmission, and the anti-counterfeiting reader reads the anti-counterfeiting label and the supplier card; the vendor card is a portable information card.
However, the block chain technology derived from the bitcoin depends on the powerful computing power of a great number of 'diggers' to ensure that the correct data chain is the longest chain, so that the longest chain in theory cannot be counterfeited, so that the operations of commodity information block adding, information traceability verification and the like must have powerful computing power, hardware burden is brought to manufacturers and sellers at all levels, and the consumer can hardly realize real-time commodity circulation traceability by using a handheld device.
Disclosure of Invention
The invention aims to provide a food label unique code issuing and circulation tracing method based on a block chain master-slave chain technology.
The technical scheme of the invention is realized as follows: a food label unique code issuing and circulation tracing method based on a block chain master-slave chain technology is characterized in that a user comprises a third party organization, manufacturers at all levels, dealers and consumers, and the third party organization, the manufacturers at all levels, the dealers and the consumers are respectively connected with the Internet; storing food tag information block chain accounts in server databases of third-party institutions, manufacturers at all levels and distributors, receiving new legality verification data issued by other parties in real time, updating local accounts in time, hanging new data blocks according to food transfer conditions, and issuing new block chain data; and when the consumer scans the codes, the block chain with the latest timestamp is obtained and compared from the plurality of enterprise servers, and the food traceability information chain is obtained through calculation.
Furthermore, the method adopts a main chain structure and an auxiliary chain structure,
(1) main chain: the HASH value generated by calculation of the HASH value of the previous node block, the current node block information and the HASH value of the previous node block is included; the current node block information comprises a timestamp, a sender inherent private key signature of the timestamp, a unique code array, unique code array sender information and unique code array receiver information; the HASH value of the adjacent node ensures that the block information of any node of the main chain cannot be modified or forged;
(2) and (3) secondary chain: forming a sublink by one unique code in the unique code array of the main chain node block information according to the circulation sequence of the unique code, wherein the unique code stream in the sublink passes through manufacturers and dealers at all levels; the sublink comprises unique code data, data of a one-time private key and a timestamp which are temporarily generated by the current forwarder of the unique code and encrypted by the inherent private key signature of the forwarder and a public key of a receiver, a one-time public key corresponding to the one-time private key temporarily generated by the current forwarder, a one-time private key temporarily generated by the forwarder of the unique code of a node on the sublink, and sender information.
Furthermore, the unique code information in the side chain is generated by a third party organization and is subjected to private key signature, and manufacturers, dealers and consumers at all levels can verify the authenticity of the unique code by using a public key of the third party organization;
the adjacent nodes of the sublink are connected by a public key and a private key password pair generated by the current forwarding party of the node, and are signed by the inherent private key of the current forwarding party, so that the problem that the forwarding party has multiple functions by illegal one code can be prevented;
only the receiving party in the side chain can decrypt and obtain the private key of the previous node and verify the identity of the forwarding party, and the private key is added into the current node information when the unique code is continuously forwarded, so that the hanging connection with the previous node is realized;
the first node of the sideline is a third-party organization which issues the unique code information to a certain production enterprise through network broadcasting, and any forged sideline node cannot realize the connection of the sideline node even if being added into the main chain according to the main chain generation rule, namely the forged sideline cannot be traced forward to form a complete food circulation enterprise information chain;
a large number of enterprises participate in generating side chains and add the side chains to the main chain, and each enterprise and other multi-party enterprises can possibly generate a unique code transfer relationship, so that the verified legal side chains and unique codes ensure the uniqueness of the legal main chain;
the information in the sideline node comprises a timestamp for encrypting the private key of the sender and the public key of the receiver, and the sender and the receiver cannot change any time after the information is added to the main chain;
when the sublink is constructed, a node with the time before in the timestamp is taken as a legal node, information of a certain node in the sublink is maliciously copied or forged and repeatedly sent out in the main chain, and the information is discarded, so that replay attack prevention is realized.
Furthermore, the main chain can be branched, the side chain can not be branched, the block information on the main chain branching is effective after the side chain connection verification is legal, and manufacturers and suppliers at all levels select to hook newly generated block information on the searched longest main chain according to the highest safety principle;
the main chain is forked because a plurality of enterprises can generate new block data and then are hooked to the main chain at the same time, and the fork is characterized by short fork and small fork, and the main chain always extends in one direction;
the sub-chain is a chain with front and back nodes connected one by one according to the principle that the timestamp is close to the front and the principle that the public key and the private key are verified and connected in pairs.
Furthermore, the unique code is generated by a third-party organization, the information content comprises third-party organization private key signature information of the food category code and the timestamp and MD5 summary information of the food category code and the timestamp, the third-party organization refers to an organization authorized by the government or public affairs, the food category code and the timestamp are operated by adopting an MD5 information summary algorithm, and the food tag code is generated by combining the inherent private key signature information of the food category code and the timestamp; and the production enterprises, the sales enterprises and the consumers decrypt the signature information by using the public key of the third party organization, calculate the MD5 digest of the signature information, and compare the MD5 digest with the MD5 digest data in the unique code to verify the correctness of the unique code.
Further, the inherent private key signature of the sender means that the sender generates a private key and a public key password pair by using an asymmetric cryptographic technology, and the sender stores the private key and the public key; the sender encrypts the sent information by using a private key, and the receiver decrypts the encrypted information by using a public key to verify the identity of the sender; the information of the sender and the receiver refers to the information of the enterprise name, the social credit number, the address and the like.
Furthermore, the sideline node connection means that two transfers of the same unique code are used as nodes adjacent to each other before and after the sideline, a disposable public key in the previous point and a disposable private key in the next node form a group of key pairs in an asymmetric cryptosystem, wherein the first node of the sideline is generated by a third party organization broadcasting and issuing the unique code, and the disposable private key can be null.
Furthermore, the sidelines are connected with the verification through a one-time public key and a private key;
the receiving party or the consumer can trace back the food circulation in turn according to the public key, the private key association and the sender information, and the specific method comprises the following steps:
s1, for a unique code, a receiver or a consumer handheld device reversely searches a node for sending data by a sender from a main chain according to sender information corresponding to the unique code;
s2, for the nodes belonging to the sender, checking the unique codes in the unique code array of the block information, retrieving the items of the same unique code and the corresponding sender information, and for the items of two or more same unique codes of the same sender, reserving the earlier timestamp time in the main chain block information;
s3, sequentially tracing the sender until the sender of the unique code is a third party organization;
and S4, analyzing and calculating the sender and the time of the unique code.
By adopting the technical scheme, the invention has the following beneficial effects: the unique code information block chain technology of the commodity label verified in pairs by a public key and a private key is adopted, a front-stage production enterprise and a back-stage production enterprise producing a certain piece of food in a circulation chain or a sales enterprise link the unique code information block of the food label into a sublink by a private key and public key verification method in pairs, the sublink and a timestamp are used as block information and added into a main chain, so that the counterfeiting prevention, the tampering prevention and the replay prevention of the main chain and sublink information are realized, the unique code network propagation of the food label and the independent chaining and the fast traceability of the single piece of food information can be realized, the calculation amount is greatly reduced, the hardware burden is reduced for manufacturers and sellers at all levels, and a consumer can easily perform the real-time commodity circulation.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without unique creative efforts.
FIG. 1 is a system diagram of the present invention;
FIG. 2 is a main chain constitution diagram of the present invention;
FIG. 3 is a main chain block information composition diagram of the present invention;
FIG. 4 is a diagram of unique code information construction of the present invention;
FIG. 5 is a diagram of unique code array information construction according to the present invention;
FIG. 6 is a diagram showing a sub-chain structure of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments 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 drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 1:
as shown in fig. 1, a method for issuing unique codes of food tags and tracing circulation based on a blockchain major-minor chain technology, wherein a user comprises a third-party institution, manufacturers at all levels, distributors and consumers, which are respectively connected with the internet; storing food tag information block chain accounts in server databases of third-party institutions, manufacturers at all levels and distributors, receiving new legality verification data issued by other parties in real time, updating local accounts in time, hanging new data blocks according to food transfer conditions, and issuing new block chain data; and when the consumer scans the codes, the latest block chain of the timestamp is acquired and compared from the plurality of enterprise servers, and the food traceability information chain is obtained through calculation.
As shown in fig. 2, the backbone is formed by concatenation of block HASH values. A node block includes a HASH value of a previous node block and also includes a HASH value calculated from the block information data and the HASH value of the previous node block. Third-party institutions, all levels of production enterprises, sales enterprises and consumer terminal equipment firstly select the longest main chain according to the highest security principle to carry out reverse node-by-node verification, including verification of a branch chain, and verify the accuracy and integrity of the node block information by calculating the HASH value of a node block and comparing the HASH value with the current block HASH value stored in the block; and calculating and comparing the HASH value of the previous block stored in the current block with the HASH value of the current block stored in the previous block by node, and verifying the connection accuracy and integrity of each node of the main chain. If the longest main chain has nodes for modifying and forging block information, other shorter main chains are sequentially selected for validity verification. For nodes with legal association of the previous and subsequent HASH values and invalid block information, such as nodes repeatedly hooking block data, nodes forging unique code data and the like, which are hung on the main chain, because the sideline information cannot be connected, the block information does not play a role in tracing the source, and only the length of the main chain is increased. For chains with the same longest length but different information of one or more node blocks at the tail end and HASH values of the node blocks, selecting the chain with legal verification and the smallest HASH value as a main chain; the other nodes will become forked. Since the validated backbone can be traced back to the same node, each enterprise establishes a fork from the same node when updating the local server database. And the enterprise to which the node block data on the branch belongs repeatedly hooks the block data on the main chain so as to prevent the branch data from being deleted or tampered maliciously.
As shown in fig. 3, the block information includes a timestamp, a sender-specific private key signature of the timestamp, a unique code array, sender information, and receiver information. The receiver traverses the information of the main chain receiver, searches the data received by the receiver, decrypts the inherent private key signature of the time stamp by using the public key of the sender, verifies the identity of the sender and stores the legal data.
As shown in fig. 4, the third party organization performs an inherent private key signature on the food category code and the time stamp, and attaches MD5 digest data of the category code and the time stamp to constitute a unique code. And the third-party organization, the production enterprises at all levels, the sales enterprises and the consumer terminal equipment decrypt the private key signature by using the public key of the third-party organization and then compare the decrypted private key signature with the MD5 digest data to verify the validity of the unique code.
As shown in fig. 5, the unique code array is composed of a large number of unique codes and corresponding one-time public key and private key peer-to-peer information generated by the sender. A group of unique code arrays are the unique codes of the label batch provided by a sender to a next link of enterprise food. After receiving the unique code array, the receiving party can disassemble and recombine the unique code array according to the condition of food dispersive circulation to form a new unique code array.
As shown in fig. 6, the sideline links the verification by the one-time public key and private key;
the receiving party or the consumer can trace back the food circulation in turn according to the public key, the private key association and the sender information, and the specific method comprises the following steps:
s1, for a unique code, a receiver or a consumer handheld device reversely searches a node for sending data by a sender from a main chain according to sender information corresponding to the unique code;
s2, for the nodes belonging to the sender, checking the unique codes in the unique code array of the block information, retrieving the items of the same unique code and the corresponding sender information, and for the items of two or more same unique codes of the same sender, reserving the earlier timestamp time in the main chain block information;
s3, sequentially tracing the sender until the sender of the unique code is a third party organization;
and S4, analyzing and calculating the sender and the time of the unique code.
The invention adopts the technology of commodity label unique code information block chain verified by a public key and a private key in pair, and front and back production enterprises or sales enterprises which produce a certain piece of food in a circulation chain link the food label unique code information blocks into a secondary chain by a method of verifying the private key and the public key in pair, and the secondary chain and a timestamp are used as block information and added into a main chain, so that the counterfeiting prevention, the tampering prevention and the replay prevention of the main chain and the secondary chain information are realized, the network transmission of the food label unique code and the independent chaining and the rapid traceability of the single piece of food information are realized.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1. A food label unique code issuing and circulation tracing method based on a block chain major-minor chain technology is characterized in that: the user comprises a third party organization, manufacturers at all levels, dealers and consumers, which are respectively connected with the Internet; storing food tag information block chain accounts in server databases of third-party institutions, manufacturers at all levels and distributors, receiving new legality verification data issued by other parties in real time, updating local accounts in time, hanging new data blocks according to food transfer conditions, and issuing new block chain data; and when the consumer scans the codes, the latest block chain of the timestamp is acquired and compared from the plurality of enterprise servers, and the food traceability information chain is obtained through calculation.
2. The method for releasing the unique code of the food label and tracing the circulation based on the blockchain major-minor chain technology as claimed in claim 1, wherein: the method adopts a main chain structure and an auxiliary chain structure.
(1) Main chain: the HASH value generated by calculation of the HASH value of the previous node block, the current node block information and the HASH value of the previous node block is included; the current node block information comprises a timestamp, a sender inherent private key signature of the timestamp, a unique code array, unique code array sender information and unique code array receiver information; the HASH value of the adjacent node ensures that the block information of any node of the main chain cannot be modified or forged;
(2) and (3) secondary chain: forming a sublink by one unique code in the unique code array of the main chain node block information according to the flow process, wherein the unique code flow in the sublink passes through manufacturers and dealers at all levels; the sublink comprises unique code data, data of a one-time private key and a timestamp which are temporarily generated by the current forwarder of the unique code and encrypted by the inherent private key signature of the forwarder and a public key of a receiver, a one-time public key corresponding to the one-time private key temporarily generated by the current forwarder, a one-time private key temporarily generated by the forwarder of the unique code of a node on the sublink, and sender information.
3. The method for releasing the unique code of the food label and tracing the circulation based on the blockchain major-minor chain technology as claimed in claim 2, wherein: the unique code information in the side chain is generated by a third party organization and is subjected to private key signature, and manufacturers, dealers and consumers at all levels can verify the authenticity of the unique code by using a public key of the third party organization;
the adjacent nodes of the sublink are connected by a public key and a private key password pair generated by the current forwarding party of the node, and are signed by the inherent private key of the current forwarding party, so that the problem that the forwarding party has multiple functions by illegal one code can be prevented;
only the receiving party in the side chain can decrypt and obtain the private key of the previous node and verify the identity of the forwarding party, and the private key is added into the current node information when the unique code is continuously forwarded, so that the hanging connection with the previous node is realized;
the first node of the sideline is a third-party organization which issues the unique code information to a certain production enterprise through network broadcasting, and any forged sideline node cannot realize the connection of the sideline node even if being added into the main chain according to the main chain generation rule, namely the forged sideline cannot be traced forward to form a complete food circulation enterprise information chain;
a large number of enterprises participate in generating side chains and add the side chains to the main chain, and each enterprise and other multi-party enterprises can possibly generate a unique code transfer relationship, so that the verified legal side chains and unique codes ensure the uniqueness of the legal main chain;
the information in the sideline node comprises a timestamp for encrypting the private key of the sender and the public key of the receiver, and the sender and the receiver cannot change any time after the information is added to the main chain;
when the sublink is constructed, a node with the time before in the timestamp is taken as a legal node, information of a certain node in the sublink is maliciously copied or forged and repeatedly sent out in the main chain, and the information is discarded, so that replay attack prevention is realized.
4. The food tag unique code issuing and circulation visa method based on the blockchain major-minor chain technology as claimed in claim 2, wherein: the main chain can be branched, the side chain can not be branched, the block information on the main chain branching can be effective after the side chain connection verification is legal, and manufacturers and suppliers at all levels select to hook newly generated block information on the searched longest main chain according to the highest safety principle;
the main chain is forked because a plurality of enterprises can generate new block data and then are hooked to the main chain at the same time, and the fork is characterized by short fork and small fork, and the main chain always extends in one direction;
the sub-chain is a chain with front and back nodes connected one by one according to the principle that the timestamp is close to the front and the principle that the public key and the private key are verified and connected in pairs.
5. The method for releasing the unique code of the food label and tracing the circulation based on the blockchain major-minor chain technology as claimed in claim 2, wherein: the unique code is generated by a third-party organization, the information content comprises third-party organization private key signature information of the food category code and the timestamp and MD5 summary information of the food category code and the timestamp, the third-party organization is an organization authorized by the government or a public society, the food category code and the timestamp are calculated by adopting an MD5 information summary algorithm, and the food tag code is generated by combining the inherent private key signature information of the food category code and the timestamp; and the production enterprises, the sales enterprises and the consumers decrypt the signature information by using the public key of the third party organization, calculate the MD5 digest of the signature information, and compare the MD5 digest with the MD5 digest data in the unique code to verify the validity of the unique code.
6. The method for releasing the unique code of the food label and tracing the circulation based on the blockchain major-minor chain technology as claimed in claim 2, wherein: the inherent private key signature of the sender means that the sender generates a private key and a public key password pair by using an asymmetric cryptographic technology, and the sender stores the private key and the public key; the sender encrypts the sent information by using a private key, and the receiver decrypts the encrypted information by using a public key to verify the identity of the sender; the information of the sender and the receiver refers to the information of the enterprise name, the social credit number, the address and the like.
7. The method for releasing the unique code of the food label and tracing the circulation based on the blockchain major-minor chain technology as claimed in claim 3, wherein: the sub-link node connection means that two times of forward and backward transfer of the same unique code are used as nodes adjacent to the front and the back of the sub-link, a disposable public key in the front point and a disposable private key in the back node form a group of key pairs in an asymmetric cryptosystem, wherein the first node of the sub-link is generated by a third party organization broadcasting and issuing the unique code, and the disposable private key can be null.
8. The method for issuing the unique code of the food label and tracing the circulation based on the blockchain major-minor chain technology as claimed in claim 2 or 3, wherein: the secondary chain links verification through a one-time public key and a private key;
the receiving party or the consumer can trace back the food circulation in turn according to the public key, the private key association and the sender information, and the specific method comprises the following steps:
s1, for a unique code, a receiver or a consumer handheld device reversely searches a node for sending data by a sender from a main chain according to sender information corresponding to the unique code;
s2, for the nodes belonging to the sender, checking the unique codes in the unique code array of the block information, retrieving the items of the same unique code and the corresponding sender information, and for the items of two or more same unique codes of the same sender, reserving the earlier timestamp time in the main chain block information;
s3, sequentially tracing the sender until the sender of the unique code is a third party organization;
and S4, analyzing and calculating the sender and the time of the unique code.
CN202010246536.7A 2020-03-31 2020-03-31 Food label unique code issuing and circulation tracing method based on block chain major-minor chain technology Withdrawn CN111401927A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010246536.7A CN111401927A (en) 2020-03-31 2020-03-31 Food label unique code issuing and circulation tracing method based on block chain major-minor chain technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010246536.7A CN111401927A (en) 2020-03-31 2020-03-31 Food label unique code issuing and circulation tracing method based on block chain major-minor chain technology

Publications (1)

Publication Number Publication Date
CN111401927A true CN111401927A (en) 2020-07-10

Family

ID=71431428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010246536.7A Withdrawn CN111401927A (en) 2020-03-31 2020-03-31 Food label unique code issuing and circulation tracing method based on block chain major-minor chain technology

Country Status (1)

Country Link
CN (1) CN111401927A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112435038A (en) * 2020-10-13 2021-03-02 申聪 Food safety monitoring system based on block chain network
CN114915428A (en) * 2022-07-18 2022-08-16 江苏数一科技服务有限公司 Alliance chain suitable for circulation steel is traceed to source
CN115643292A (en) * 2022-12-21 2023-01-24 中科航迈数控软件(深圳)有限公司 Machine tool energy consumption data tracking method and device based on double-layer block chain

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112435038A (en) * 2020-10-13 2021-03-02 申聪 Food safety monitoring system based on block chain network
CN114915428A (en) * 2022-07-18 2022-08-16 江苏数一科技服务有限公司 Alliance chain suitable for circulation steel is traceed to source
CN114915428B (en) * 2022-07-18 2022-11-18 江苏数一科技服务有限公司 Alliance chain suitable for circulation steel is traced to source
CN115643292A (en) * 2022-12-21 2023-01-24 中科航迈数控软件(深圳)有限公司 Machine tool energy consumption data tracking method and device based on double-layer block chain

Similar Documents

Publication Publication Date Title
CN110335051B (en) Food tag unique code release and circulation tracing method based on block chain main and auxiliary chain technology
CN110807641A (en) Pet food traceability system
CN106779737B (en) Product traceability verification method based on block chain technology
CN109191003A (en) Fruits and vegetables agricultural product quality safety traceability system based on block chain
CN111401927A (en) Food label unique code issuing and circulation tracing method based on block chain major-minor chain technology
CN107409002A (en) Method and apparatus of the repeatable encryption key of general certainty to expression are provided for all SKU, canister and article
CN107292629A (en) Anti-counterfeit tracking verification method based on block chain and the device using this method
CN107704493A (en) It is a kind of to be used to provide the method and system that product is traced to the source
Zanetti et al. Privacy-preserving clone detection for RFID-enabled supply chains
CN110910150B (en) Correlation method and device for tracing source based on Internet of things technology and combined block chain
CN113469716A (en) Product tracing method and system based on block chain and identification analysis
WO2019246399A1 (en) Digital ledger for unique item ids with ownership
CN102063633A (en) Anti-counterfeiting method based on radio frequency identification technology
Jayaprasanna et al. A block chain based management system for detecting counterfeit product in supply chain
Lam et al. Textile and apparel supply chain with distributed ledger technology (DLT)
CN110766421A (en) Commodity anti-counterfeiting method and device based on block chain
CN111740841A (en) Method and device for generating and verifying tracing code
CN113763168A (en) Block chain-based carbon asset transaction method and system
Mhatre et al. BCPIS: Blockchain-based counterfeit product identification system
Loke et al. Food traceability and prevention of location fraud using blockchain
CN109377248A (en) Method for anti-counterfeit and system
Bhatnagar et al. Product traceability using blockchain
CN112597545A (en) Medical electronic contract evidence storing method based on block chain technology
CN107590669A (en) A kind of combined ciphering joint supervision method for anti-counterfeit of Quick Response Code
Hao et al. Multi-agent system for e-commerce security transaction with block chain technology

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20200710

WW01 Invention patent application withdrawn after publication