| Due to frequent food safety accidents in recent years,consumers have questioned the safety of the entire food industry.As the largest beverage in China,tea has entered the world trade market,because of the lacking of tea information,pesticide residues and adulterate,it poses a great threat to the interests of consumers.In addition,in the traditional tea industry chain traceability system,there is information centralized management,and the data is susceptible to tampering,opaque and other phenomena,leading to the quality of tea and food safety issues cannot be fundamentally solved.The features of blockchain technology,such as decentralization and tamper-proof,can well make up for the defects in traditional traceability system,and this thesis will combine these features with all links in the tea industry chain to design an open and fair tea traceability scheme.The main work of this thesis is as follows:1)This thesis has conducted the research and analyzed on the traditional tea industry chain.Combined with the research on quality traceability in the postgraduate stage,I found the consensus problem arising from the application of blockchain technology to the actual tea traceability project and the problem of organizational node joining,and I analyzed the mainstream advantages and disadvantages of the blockchain platform,and found that Ethereum was selected as the experimental platform of this thesis,providing theoretical basis and basic environment for the later research work.2)Combined with the characteristics of tea traceability,this thesis analyzes the traditional consensus mechanism and finds that it has the disadvantages of waste of computational power and unsuccessful voting.It proposes an improved strategy for dBFT algorithm.By adding the credit reward and punishment strategy in the voting mechanism,this thesis stimulates the voting of each node in the tea,balances the fairness of the node election,and uses the analytic hierarchy process in the node selection stage to better select the primary node and the backup node in the consensus node through the index quantization.To make the tea traceability consensus more efficient.3)This thesis analyzes the steps for adding nodes.Combined with the node change situation in the tea traceability system,based on the improvement of the Smart Contract,the node is dynamically added,the new configuration information is written into the contract transaction,and the contract information is submitted through the master node and a consensus is reached to update the configuration information.The newly added nodes will join the tea traceability system more efficiently without affecting the overall performance of the platform,and better participate in the consensus of the block.4)In order to reduce the disadvantages of consumers in the case of opaque tea industry chain,and to ensure the quality of tea,this thesis will use blockchain technology to track the information in the tea industry chain.The tea data is traced from the source,and the information involved in the tea from the picking to the packaging and sales is packaged and stored,and introduced into the supervision of the government supervision department.According to the characteristics of the actual tea industry chain,the tea traceability scheme based on blockchain technology is designed,which greatly ensures the accuracy of the traceability information. |