| Jujube is an important economic crop in China.China is the largest exporter of jujube.Jujube industry is a pillar industry in many provinces and cities.The quality assurance of jujube is the requirement of the sustainable development of jujube industry,and traceability can greatly improve the quality level of jujube products.However,the traditional agricultural product traceability technology and related platforms store the traceability data in the local centralized database.It has many problems such as easy tampering of the traceability data,opaque information sharing,and easy failure of single point storage.The island of traceable data also brings inconvenience to the supervision of regulatory authorities,and the credibility of traceable data is low.The blockchain technology has the characteristics of decentralization,tamper-proof,transparent ledger data and so on,which naturally adapts to the traceability scenario of agricultural product supply chain.In view of the prominent problems of current agricultural product traceability,this thesis proposes a blockchain-based jujube supply chain traceability scheme.The main contents and conclusion of this thesis are as follows.(1)This thesis proposes an easy-to-manage optimized jujube traceability blockchain network.Aiming at the problems existing in the existing agricultural product traceability platform,combined with the analysis of the characteristics of the jujube supply chain,a jujube supply chain traceability network based on the Hyperledger Fabric framework is proposed.This scheme optimizes the number of nodes participating in the distributed ledger consensus,and realizes the openness,transparency and credibility of jujube traceability information while ensuring the high efficiency of the blockchain network.(2)This thesis proposes a jujube traceability smart contract algorithm based on dual workflow.The algorithm conceptualizes the transaction and divides the transaction process into common transaction workflow and private transaction workflow.The common transaction workflow is used for the traditional linear supply chain traceability data uplink.The private transaction workflow builds a proprietary communication channel to isolate the middlemen with price monopoly advantage in the supply chain.Farmers isolate middlemen through private transactions to improve their bargaining power,and finally let them pay attention to the quality of red dates,so as to achieve the purpose of jujube traceability in another way.The algorithm combines the IPFS(Inter Planetary File System)to form a storage mode of "on-chain index,off-chain storage".It reduces the communication and storage pressure of the blockchain network and improves the scalability of the entire platform.Through the benchmark test analysis of Hyperledger Caliper,it is confirmed that the read and write performance and resource consumption of the smart contract algorithm of the dual workflow are in line with the current date supply chain traceability scenario.(3)A visual platform for front and rear end separation based on go-gin and Vue framework is implemented.This thesis synthesizes the above research results.It analyzes the demand of the key nodes of the jujube supply chain,and completes the outline design on this basis.Secondly,the visualization platform is implemented.Finally,the availability and integrity of the functional modules of the jujube traceability platform are verified through the black-box test.The results show that the platform breaks the barriers of the jujube data circulation,eliminates the dependence on centralized entities.It also reduces the difficulty of the jujube supply chain participants’ on-chain operation,and can improve consumers’ confidence in the jujube quality. |