基于智能合约的果蔬区块链溯源数据存储方法研究
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

国家自然科学基金面上项目(31871525)和广东省重点研发计划项目(202103000033)


Blockchain Traceability Data Storage Method of Fruit and Vegetable Foods Supply Chain Based on Smart Contract
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    随着区块链农产品溯源技术的发展,果蔬产品质量安全得到保障。由于我国果蔬产品溯源跨度大、追溯周期长、涉及面广,并且区块链网络数据账本由全网节点共同记账备份,海量溯源数据存储压力大,同时所有数据透明共享,造成供应链溯源数据无法全部上链,引起产品数据上下游溯源企业共享不及时、追溯数据安全性难以得到保障、监管部门无法实时监管全部溯源数据,出现农产品质量安全问题时,责任无法定位、产品难以找到问题源头。基于上述问题,设计基于区块链多链架构的果蔬产品溯源框架,设计溯源数据存储模型,并通过智能合约实现溯源数据分类链上加密存储、链间授权访问、基于授权凭证解密查询,保证果蔬全供应链溯源隐私数据密文上链,减缓区块链存储压力、实现上下游溯源企业隐私数据无孤岛授权共享。基于联盟链Hyperledger Fabric通道技术实现多链溯源系统,经过扩散性测试,由对称加密与椭圆曲线混合加密的“链上加密存证、链间基于授权凭证共享、链上解密查询”智能合约方案,隐私数据密文变化率达95%以上,密钥密文变化率达94%以上,具备较高的安全性和混淆性;经过性能测试,所设计并实现的多链架构溯源系统公开溯源数据查询平均时延为56.9ms,基于授权凭证的隐私溯源数据平均解密查询时延为62.87ms,处理企业节点发起数据上链请求的平均时延为2.16s,能够满足果蔬产品追溯实际的应用需求。

    Abstract:

    With the development of blockchain agricultural foods traceability technology, the quality and safety of fruits and vegetables are guaranteed. As the traceability of fruits and vegetables in China has a large span, long traceability cycle and wide coverage, and the blockchain network data ledger is backed up by the joint network nodes, the storage of massive traceability data is under great pressure, while all traceability data are transparently shared, resulting in the data not being able to be all upstream and downstream traceability enterprises to share in a real time, the safety of data is difficult to be effectively guaranteed, and the regulatory departments cannot regular traceability data efficiently. When there is a problem of agricultural foods quality and safety, the responsibility cannot be located and the source of the problem can hardly be found. Based on the above problems, a traceability framework for fruits and vegetables was designed based on blockchain multi-chain architecture, a data storage model was designed, and encrypted storage on the chain of traceability data classification, authorized access between chains and decrypted query based on authorized credentials were realized through smart contracts to ensure the privacy of whole traceability supply chain. Data encryption on the chain can reduce the pressure of storage and realize the sharing of privacy data of upstream and downstream traceability enterprises without silo authorization. Based on the Hyperledger Fabric channel technology of consortium chain, the multi-chain traceability system was realized. After proliferation test, the smart contract scheme of on-chain encryption and evidence storage, inter-chain sharing based on authorized credentials and on-chain decryption query, which was composed of symmetric encryption and elliptic curve hybrid encryption, had a private trace-data cipher text change rate of more than 95% and a key cipher text change rate of more than 94%, which possesses high security and confusion. After performance testing, the average time delay of public traceability data query was 56.9ms, the average time delay of privacy traceability data decryption query was 62.87ms, and the average time delay of processing data upload was 2.16s, which can meet the actual application requirements of fruits and vegetables traceability system. The research result can provide a feasible reference solution for the classification and storage of traceability data of fruits and vegetables in China.

    参考文献
    相似文献
    引证文献
引用本文

孙传恒,于华竟,罗娜,徐大明,邢斌,杨信廷.基于智能合约的果蔬区块链溯源数据存储方法研究[J].农业机械学报,2022,53(8):361-370. SUN Chuanheng, YU Huajing, LUO Na, XU Daming, XING Bin, YANG Xinting. Blockchain Traceability Data Storage Method of Fruit and Vegetable Foods Supply Chain Based on Smart Contract[J]. Transactions of the Chinese Society for Agricultural Machinery,2022,53(8):361-370.

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2021-08-23
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2021-09-08
  • 出版日期: