| Traceability of agricultural products is an important means for regulatory authorities and consumers to obtain a series of information on the agricultural products sold,including planting,processing,transportation and so on.At present,it is difficult to trace the quality and safety problems that occurred in the planting,picking,processing and transportation of milk grapes.To solve this problem,the traceability system is an effective solution.However,most traceability systems on the market today use centralized data storage.However,this traceability system has the characteristics of being easy to be modified,resulting in low user trust in the traditional traceability system and poor use effect.The combination of blockchain technology and traceability technology can ensure the authenticity of traceability data,providing a solution for the grape traceability system.Therefore,according to the research and application of blockchain-based traceability system at home and abroad in recent years,this paper takes Xuanhua milk grapes as the research object,combines blockchain technology with grape traceability system,and designs a blockchain-based system scheme suitable for Xuanhua milk grape traceability,so as to improve the authenticity and security of Xuanhua milk grape traceability system.Through the research progress of the current traceability system at home and abroad,we can understand the characteristics of the existing traceability system,as well as the data encryption logic and design difficulties of the traceability system based on blockchain technology.Through on-site investigation and addition,we understand the factors that may affect the safety and quality of Xuanhua milk grapes,and use this to analyze the user’s needs,traceability process,economic and technical feasibility.According to the overall design of the system according to the demand analysis,the overall framework is designed with a three-layer overall framework structure based on the B/S framework,users do not need to download APP,the learning cost is lower,and the later upgrade and maintenance are more convenient.In terms of database,SQL Server and Ethereum dual database are used,SQL Server is used to store user information,and blockchain is used to store traceability data,which can achieve lower economic cost of development and more efficient users at the same time.Finally,according to the design of the above traceability system,software development is implemented and tested,and the Fabric environment is built for system testing.Including blockchain network creation and deployment test,traceability platform organization query test,traceability platform user query test.The test results operate normally as expected and are correspondingly fast,which can ensure the authenticity of the traceability data. |