The invention relates to the technical field of cross-border logistics, and discloses a cross-border e-commerce commodity
traceability method and
system based on a block chain, and the method comprises the following steps: generating a unique
traceability code for each cross-border e-commerce commodity, extracting an original
information field of the cross-border e-commerce commodity, and calculating an anti-counterfeiting hash value; performing structured packaging on the original
information field and the anti-counterfeiting hash value according to a preset template, confirming a transaction through a
consensus mechanism, writing the transaction into a block chain, and generating a block hash value; operation information of all logistics nodes is collected, abnormity is recognized through an abnormity detection
algorithm, and data fingerprints obtained after abnormity recognition are encrypted and stored; the encrypted and signed operation information is submitted to a block
chain network, and a block chain node verifies the validity of a
digital signature through a public key of a producer and verifies the legality through a
consensus mechanism; and proving an aggregation
verification result by using zero knowledge. According to the invention, a complete
traceability path is displayed, and full-chain transparent management from production to consumption is realized.