| Rice is an important food crop,accounting for the third largest total production of food crops in the world,and about half of the world’s population eats rice as a staple food.In daily life,the rice circulation link is more complex.In order to solve the he problem of quality and safety in the link of the circulation,quality traceability system is developed to guarantee the rice quality safety.However,due to the information asymmetry between the nodes of the traditional traceability system,the information sharing efficiency is low,the cost of retrospective accountability for rice is high,and the traditional traceability system relies on centralized databases,which has the problem of data loss and easy tampering after attack.Combining rice traceability with blockchain,the use of the characteristics of blockchain that can be shared,decentralized,and cannot be tampered with can solve the problem of information asymmetry between various nodes and improve the credibility of rice traceability information.As an emerging technology,blockchain’s immutability and traceability make it possible to apply to rice traceability to improve the credibility of rice traceability information,but blockchain still faces the challenge of privacy security brought about by massive data storage pressure and data transparency in rice traceability,and if the onchain information contains private information,it may affect rice sales and may bring about personal privacy information leakage problems.Therefore,in this paper,the following research is carried out on the problems of low reliability of rice traceability and privacy data security in traceability information:(1)Aiming at the quality and safety of rice,combined with the demand analysis of the rice circulation link of a regional agricultural product company,a blockchain-based rice traceability model was designed.Since each node in the blockchain needs to synchronize the ledger data,when the amount of data is large,it will bring greater storage pressure to the nodes,and an on-chain-off-chain storage scheme combining the blockchain with IPFS(Inter Planetary File System)is proposed to put it on-chain-Compared with direct on-chain,the off-chain storage scheme is compared with direct on-chain,and the experimental results show that the on-chain-off-chain storage scheme can effectively alleviate the pressure of node storage compared with direct on-chain.(2)Aiming at the security problems on the privacy data chain,a hierarchical encryption data protection model according to the privacy level is proposed,and the data is divided into three levels according to the nature of privacy from high to low: privacy level I involving commercial privacy,privacy level II involving personal privacy and disclosure level,and different hierarchical encryption algorithms are adopted according to the characteristics of different privacy data.At the same time,a node authorization algorithm is proposed,that is,only the nodes with access rights are issued to realize the authorization and sharing of private data in the blockchain network.The privacy data protection model has been stress-tested,and the results show that its performance can meet the actual production needs of rice traceability.(3)According to the actual needs of rice production enterprises in a certain area,the rice traceability system based on the blockchain is designed and realized,and the privacy data protection model proposed above is applied in the system,which can be applied to the actual rice traceability scenario after functional testing,and the operation status of the blockchain can be monitored through the blockchain visual interface. |