Font Size: a A A

Design And Implementation Of Fruits And Vegetables Agricultural Products Traceability System Based On Blockchain

Posted on:2021-01-12Degree:MasterType:Thesis
Country:ChinaCandidate:M T WangFull Text:PDF
GTID:2428330611961722Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
Fresh fruits and vegetables products are part of people's daily diet and are essential for human health.Its safety has attracted widespread attention.In recent years,a series of food safety problems have not only harmed consumers' health,but food production enterprises have also suffered severe blows,triggering a crisis of trust between consumers and the food industry.The quality and safety traceability system is considered to be an effective way to solve food safety problems and an effective way to build trust between producers and consumers.However,traditional traceability systems have problems such as data centralization,easy tampering,insufficient sharing of traceability information capabilities,and difficulty in identifying responsible subjects.Blockchain technology has the characteristics of data openness,transparency,decentralization,immutability,and traceability.It provides a clear direction for the exploration of agricultural product traceability systems and opens a new era for food quality and safety supervision.This article takes fruits and vegetables as the object,applies blockchain technology to the fruit and vegetable agricultural product traceability system,and builds a set of fruits and vegetables agricultural product traceability system.based on the blockchain,realize the sharing and immutability of agricultural product traceability data,and ensure the authenticity and timeliness of the traceability information.Consumers can obtain all relevant details about the products in the entire supply chain from fruit to vegetable products through the traceability code of agricultural products or scanning the two-dimensional code on the packaging of agricultural products.Enterprise credibility and satisfaction,while improving the efficiency of government and relevant regulatory agencies,reducing management costsThe shortcomings of the traditional traditional traceability system are solved,but the blockchain traceability system also brings problems such as excessive informationand data storage load,low query efficiency,and data privacy security.Therefore,this article optimizes the storage of the blockchain traceability system,and proposes a dual storage design of "database + blockchain" on-chain and off-chain traceability information.The main research contents are as follows:(1)Explain the current progress of agricultural product traceability research from both domestic and international by tracing relevant literature from theoretical and technical applications,analyze the current situation of agricultural product traceability research,compare the problems of traditional traceability systems,and apply blockchain technology to agricultural product traceability systems.Achieve effective retrospective anti-counterfeiting.(2)Construct a blockchain network based on the Hyperledger Fabric of the alliance chain,and analyze the internal storage mechanism of the blockchain.For members of the alliance chain,each node needs to save a copy of the data of the entire alliance chain,which has a greater test on the storage load capacity of the blockchain system.According to the storage structure of the blockchain,with the increase in the number of nodes in the blockchain system and the increase in source tracing data,the query efficiency will be greatly reduced.(3)Aiming at the storage load and query efficiency of the blockchain traceability system,a storage solution was proposed.A “database + blockchain” dual storage design of on-chain and off-chain traceability information was designed.The local database stores plaintext data and the on-chain storage.The encrypted value of the retrospective data;on this basis,a query method for the index of the external database is established.The QR code is scanned and queried to query the retroactive information and block number from the local database,and the acquired retroactive information is hashed.Calculate and compare it with the hash value stored on the blockchain through the block number to achieve information security.(4)The existing blockchain traceability system stores the product traceability information directly into the blockchain system,and queries the key key or a certain attribute field of the product stored in the blockchain to query the two commonly used types.The method is compared with the external query database storage query scheme proposed in this paper.The experimental results show that the results show that when the total number of blockchain retrospective records reaches 11 × 104 and the number of batch retrospective records is 400,the query efficiency of the method in this paperimproves by 70.56% and 88.66%,respectively.The larger the total number of transactions,the more obvious the effect.(5)On the basis of the above research,It is designed agricultural product traceability system of fruits and vegetables based on the blockchain to realize the data information management of the enterprise from production,processing,logistics and other links.The data can not be tampered with and the information is transparent.Consumers can obtain relevant information about the production process of the product by scanning the QR code.The regulatory department can also quickly locate the problem link and confirm the responsible party when a food problem occurs.Taking fruits and vegetables as an example,this article designs a blockchain agricultural product traceability information storage model from the perspective of improving the efficient storage and fast query efficiency of agricultural product traceability system information.At the same time,it compares and analyzes with traditional query optimization methods.Information data storage and quick query provide reference.
Keywords/Search Tags:Blockchain, Hyperledger Fabric, Index storage, Efficient query, Traceability system
PDF Full Text Request
Related items