The invention discloses a food
label unique code publishing and circulation tracing method based on a
blockchain main and auxiliary chain technology. The method comprises the steps: employing the commodity
label unique code information
blockchain technology based on public and private key
pairing verification; enabling a front-stage production enterprise and a rear-stage production enterprise or asales enterprise for producing a certain piece of food in a circulation chain to link unique code information blocks of food labels into a secondary chain through a private key and public key pairedverification method, and adding the auxiliary chain and the
timestamp into the main chain as block information, so the counterfeiting prevention, tampering prevention and replay prevention of the mainchain and the auxiliary chain information are realized, and network propagation of the unique code of the food
label and independent chaining and rapid tracing of single food information can be realized, wherein users comprise a third-party mechanism, manufacturers at all levels, dealers and consumers which are connected with
the Internet respectively; the
server databases of the third-party mechanism, manufacturers and dealers at all levels are used for storing food label information
blockchain account books, receiving new legal
verification data issued by other parties in real time, updating local account books in time,
hooking new data blocks according to food transfer conditions, and issuing new blockchain data; and enabling a
consumer to obtain the latest
timestamp blockchain from aplurality of enterprise servers during code scanning, and performing calculation to obtain the food
traceability information chain by comparing the latest
timestamp blockchain.