Font Size: a A A

Design And Implementation Of Blockchain Traceability System For Smart Pasture

Posted on:2022-11-06Degree:MasterType:Thesis
Country:ChinaCandidate:X L LinFull Text:PDF
GTID:2493306764977019Subject:Computer Software and Application of Computer
Abstract/Summary:PDF Full Text Request
With the rapid development of Chinese society in new era and pasture food quality problems often arise in current years,consumers are increasingly concerned about pasture food safety issues.Traceability of pasture food can enable consumers to understand the process of food from production to retail.It requires trust and cooperation between enterprises and ensures that traceability data is tamper-resistant.Essentially,blockchain is a truly decentralized,immutable and distributed ledger.So,blockchain technology is applied to pasture food traceability system to store distributed data generated in each link of pasture food,so as to ensure the authenticity and imtamability of traceability information,improve consumers’ trust in traceability information,and promote long-term development of the traceability system.Thesis designs and develops a blockchain traceability system for smart pasture,and conducts functional and non-functional tests on the system.The main contents are as follows:(1)A traceability system model suitable for smart ranch application scenario is proposed,the system architecture and blockchain network application are designed,the system functions are divided into blockchain business functions and system basic functions for modular design,and this part conducts normative data modeling for the system.(2)This part conducts performance research and scheme selection on blockchain network,and summarizes configurable options involved in reaching transaction consensus in Hyperledger Fabric,so as to do comparative tests on several configuration items and analyze the impact of each configuration item on system performance.Then,thesis summarizes the test results.According to the results,thesis selects configuration items suitable for smart pasture scenario and applies them to develop blockchaisn network.(3)An on-chain and off-chain collaborative file storage scheme based on interplanetary file system is designed.The original file data of quality inspection reports and quarantine reports are actually stored in interplanetary file system to reduce the pressure on blockchain to store files.(4)The key classes in each business function module are designed,and The blockchain business logic is written in chaincode.Then,the chaincode is installed in blockchain network,realizing the business function of data on-chain and query based on alliance chain.According to the above main contents,thesis designs and develops a blockchain traceability system for smart pasture.Chaincode in the system is implemented based on Golang language;front-end uses the React framework to develop and React Hooks to manage the page life cycle;server uses the Spring Boot framework and My SQL database to realize function modules and chaincode invoking of the traceability system.The system test results show that the traceability system can meet the functional requirements of data management and storage,traceability query and display in all links of smart pasture traceability.
Keywords/Search Tags:Consortium Blockchain, Traceability of Pasture Food, Hyperledger Fabric, IPFS
PDF Full Text Request
Related items