| With the development of agricultural science and technology,people have already solved the problem of food and clothing and pursue a higher quality of life.Therefore,how to ensure green,pollution-free,and safe food is the main problem at present,especially the source of food for major international events or conferences.It should be safe.However,most of the current food traceability systems mainly include four shortcomings: 1.The integrity of food traceability information is not enough;2.The traceability system is mostly centralized,which makes the traceability information easy to tamper,delete,and forge;3.The transmission of traceability information is low in security.Information is easily intercepted and leaked;4.It is difficult for most foods to trace a single food,and the traceability efficiency is low.As a result,the safety of the food supplied cannot be guaranteed,and when food safety issues arise,it is difficult to determine the responsible party.Therefore,in order to solve the problems of poor information integrity,centralization,low information transmission security,and low efficiency of single traceability of the traceability system,this article The research of food traceability system based on blockchain technology is proposed.The main research contents are as follows:(1)Based on the Internet of Things technology to realize the traceability of the food growth environment.Aiming at the problem of insufficient traceability information in most current food traceability systems,this paper proposes to trace all food information,including food environmental information and "transaction" information.Environmental information includes: temperature,humidity,rainfall and other information;"transaction" information includes: transportation,storage,testing,processing,to achieve the traceability of the entire chain of food information,to ensure the integrity of the information.(2)Realize the storage of food traceability information based on blockchain.Compared with the traditional centralized traceability system,the blockchain decentralized storage method effectively solves the shortcomings of easy data tampering,easy forgery,and easy deletion,and can quickly and effectively integrate multi-source data and reuse blocks The division of chain permissions enables organizations to query corresponding data,avoid data leakage,and ensure the integrity and security of traceability information.(3)Based on AES(Advanced Encryption Standard)encryption technology to realize the encrypted transmission and storage of traceability information.At present,most traceability systems store traceability information in plaintext,which may easily lead to the leakage of traceability information.In order to ensure data security,this article proposes to encrypt and store traceability information.In order to prevent the leakage of fixed passwords,this article uses random key periodic updates.In order to prevent the leakage of the key,the storage of the key is realized by using the blockchain to ensure the security of the traceability information.(4)Achieve one-code one-item traceability of food based on QR-Code.Aiming at the traditional one-code multi-object traceability method,it is difficult to achieve precise positioning of individual foods.This article constructs an exclusive code for each food design to realize the traceability and traceability of individual food information,and improve the traceability efficiency of food. |