| Food safety issues are related to the people’s livelihood of the country,and accurate and fast traceability technology for agricultural products is of great significance to improve the whole process of food safety management.Traditional methods implement information traceability for agricultural products by storing information data in a central database and tracing information by accessing the database.However,the information storage of the traditional traceability method is centralized storage,which leads to easy data tampering,weak information traceability,and difficulty in providing accurate and effective traceability information.The essence of blockchain is distributed ledger technology with typical decentralized characteristics,which can ensure that data are open and transparent and cannot be changed,effectively making up for the shortcomings of the traditional traceability method and providing security for agricultural product information traceability.In this paper,we use blockchain technology as the underlying technology to build an agricultural products traceability system with blockchain as the underlying technology to achieve tamper-proof and true transparency of traceability information and effectively guarantee the quality and safety of edible agricultural products.The main contents of this paper are as follows.(1)The principle and characteristics of the blockchain technology used in the agricultural product traceability system are analyzed,the underlying algorithm of the blockchain technology is analyzed and the PBFT consensus algorithm most suitable for this paper’s system is adopted,and Hyperledger Fabric is used as the underlying framework to build.(2)The scheme design and model construction of the blockchain-based agricultural product traceability system.Firstly,the system architecture and system process are constructed,and the system architecture includes the design of the main functional modules,database and smart contract.Then the decentralized blockchain traceability model is constructed to ensure the authenticity and stability of information traceability.(3)Analyze the performance advantages and disadvantages of PBFT algorithm in this system and improve its algorithm performance by proposing V-PBFT algorithm with node point voting system.By adding alternate nodes,introducing the point election system and optimizing the consistency protocol,we reduce the communication overhead and transaction delay of the system,improve the system throughput and save the system energy consumption.(4)Complete the construction of Hyperledger Fabric platform,build Web applications based on the scheme design and model of the traceability system,implement and debug each functional module of the system,and complete the information traceability of agricultural products.In this paper,a blockchain-based agricultural products traceability information system is constructed by designing a traceability scheme,using the optimized and improved PBFT algorithm as the underlying technology and developing web applications,which is of great practical significance for strengthening the whole process management of agricultural products and promoting food safety. |