食品科学 ›› 2023, Vol. 44 ›› Issue (17): 1-10.doi: 10.7506/spkx1002-6630-20220930-340

• 基础研究 •    下一篇

面向果蔬供应链深度溯源的图区块链模型研究

刘孝保,杨林,易斌,阴艳超,孙海彬,顾文娟   

  1. (1.昆明理工大学机电工程学院,云南 昆明 650500;2.云南中烟工业有限责任公司技术中心,云南 昆明 650231)
  • 出版日期:2023-09-15 发布日期:2023-09-29
  • 基金资助:
    国家自然科学基金地区科学基金项目(52065033);云南省重大科技专项计划项目(202002AD080001)

Graph Blockchain Model for In-depth Traceability of the Fruit and Vegetable Supply Chain

LIU Xiaobao, YANG Lin, YI Bin, YIN Yanchao, SUN Haibin, GU Wenjuan   

  1. (1. Faculty of Mechanical and Electrical Engineering, Kunming University of Science and Technology, Kunming 650500, China;2. Technology Center of China Tobacco Yunnan Industry Co., Ltd., Kunming 650231, China)
  • Online:2023-09-15 Published:2023-09-29

摘要: 针对传统果蔬供应链区块链模型存在溯源信息深度不足、溯源数据关联性不足、查询效率低等问题,本研究提出了一种图区块链模型。首先利用图理论对传统区块链的区块数据结构进行改进,将传统区块链结构中顺序表的存储结构改变为便于深度溯源信息存储的图结构,以实现深度溯源信息的关联存储。然后通过图区块链映射模型建立物理区块数据与图区块链模型之间的映射关系,并按照果蔬供应链流程逻辑结构建立图区块数据架构。定制化设计图区块链数据存储、查询与权限管理智能合约,以确保供应链数据的可靠性。最后基于百度超级链平台开发图区块链模型,并与传统区块链进行性能对比实验。结果表明:图区块链能够实现果蔬供应链的深度溯源,同时还能大幅提升数据查询效率,该模型可为实现基于区块链的果蔬供应链追溯信息存储与快速查询提供新的方法和思路。

关键词: 果蔬供应链;图区块链模型;图结构;深度溯源;智能合约

Abstract: Given that the conventional blockchain model for the fruit and vegetable supply chain has the problems of insufficient depth of traceability information, insufficient data correlation, and low query efficiency, a graph blockchain model was proposed in this study. Firstly, the graph theory was used to improve the block data structure of the traditional blockchain and change the storage structure of the sequence table in the traditional blockchain structure into a graph structure that can facilitate the storage of in-depth traceability information for associated storage of deep traceability information. Then, the mapping relationship between physical block data and graph block chain model was established through a graph block chain mapping model, and according to the logical structure of the fruit and vegetable supply chain, the graph block data structure was established. Customized design of smart contracts for graph blockchain data storage, query and authority management was performed to ensure the reliability of supply chain data. Finally, the graph blockchain model was developed based on the XuperChain platform and its performance was experimentally compared with that of the traditional blockchain. The results showed that the graph blockchain allows deep traceability of the fruit and vegetable supply chain and greatly improves the efficiency of data query, which can provide a new method and idea for the traceability information storage and fast query of the fruit and vegetable supply chain based on blockchain.

Key words: fruit and vegetable supply chain; graph blockchain model; graph structure; in-depth traceability; smart?contract

中图分类号: