Font Size: a A A

Research And Implementation Of Agricultural And Sideline Product Traceability System Based On Blockchain

Posted on:2023-08-29Degree:MasterType:Thesis
Country:ChinaCandidate:L LiuFull Text:PDF
GTID:2558306914470754Subject:Computer technology
Abstract/Summary:PDF Full Text Request
The agricultural and sideline product traceability system based on blockchain aims to provide a blockchain-based decentralized and trusted traceability system for agricultural and sideline products,and to provide a reliable and transparent solution to food safety issues.At the same time,it solves a series of loopholes and problems caused by the centralization of data storage encountered in the process of centralized traceability.Through the research on the development status of traditional traceability at home and abroad and the development status of blockchain traceability,it is found that there is a problem of centralized storage in traditional traceability.At the same time,it is found that the blockchain traceability system is generally relatively simple and does not support the on-chain storage of large files.Aiming at the current problems,this paper has carried out research and carried out the following work:1.The existing consensus algorithms are studied,with emphasis on the clique algorithm based on PoA.Combined with the main idea of clique,a dynamic selection algorithm of authoritative nodes based on PoA consensus is designed.By dynamically changing the authoritative nodes,it ensures that the authoritative nodes participating in the block production remain online as much as possible,thus making the system block production more stable.The effect of the algorithm is verified and tested.2.The demand for the agricultural and sideline product traceability system based on blockchain is analyzed,and the design of the overall structure and functional modules of the system is completed on this basis.The blockchain traceability process,the storage of large files on the chain,the page display and database of traceability data are designed.3.Completed the detailed design and implementation of the agricultural and sideline product traceability system based on blockchain,used the solidity language to write smart contracts and built a blockchain environment,implemented the contract deployment through the truffle framework,and obtained contracts through the api provided by web3 and truffle Instance to realize the interaction between the system and Ethereum.The system combines webgis and echarts to perform intuitive chart statistics and map display for the traceability query results.4.Finally,the system effect is demonstrated and the system is tested,and the system is implemented in the actual smart community project to complete the application of the system.
Keywords/Search Tags:blockchain, Ethereum, smart contract, traceability, PoA
PDF Full Text Request
Related items