首页 | 官方网站   微博 | 高级检索  
     

基于区块链的粮食防伪溯源系统的设计与实现
引用本文:王莉,任健荣,王涛,牛群峰,惠延波,桂冉冉.基于区块链的粮食防伪溯源系统的设计与实现[J].科学技术与工程,2023,23(4):1625-1634.
作者姓名:王莉  任健荣  王涛  牛群峰  惠延波  桂冉冉
作者单位:河南工业大学电气工程学院;北京中电智网科技有限公司;河南工业大学机电工程学院
基金项目:河南省重大科技专项(201300210100);郑州市科技协同创新专项(21ZZXTCX10)
摘    要:针对粮食溯源系统的安全问题,传统的中心化存储数据在各企业之间存在着信任问题,消费者在进行溯源查询时同时存在着安全问题。以大米为研究对象,构建粮食供应链溯源模型,搭建基于Hyperledger Fabric的防伪溯源系统,设计数据上链以及查询的智能合约。组织节点添加作物生成编号并关联溯源ID,将二维码、溯源ID与区块链相结合实现防伪溯源,设计本地及链上双存储方式并进行数据校验后返回信息。为保障二维码的安全性,应用改进RSA加密算法生成密钥对,使用公钥加密,私钥解密的形式对溯源ID生成加密二维码,消费者解密时从链上获取私钥对密文解密获取溯源ID。设计小程序并验证改进RSA算法的有效性,将小程序运用在区块链溯源并进行测试应用。测试结果表明,具有防篡改功能的区块链网络与小程序结合可以满足消费者溯源查询的基本需求,可以实现更安全快捷的溯源模式,保障了粮食信息的安全性。

关 键 词:二维码  RSA算法  区块链  防伪溯源
收稿时间:2022/5/16 0:00:00
修稿时间:2022/11/18 0:00:00

Design and Implementation of Food Security Traceability System Based on Blockchain
Wang li,Ren Jianrong,Wang Tao,Niu Qunfeng,Hui Yanbo,Gui Ranran.Design and Implementation of Food Security Traceability System Based on Blockchain[J].Science Technology and Engineering,2023,23(4):1625-1634.
Authors:Wang li  Ren Jianrong  Wang Tao  Niu Qunfeng  Hui Yanbo  Gui Ranran
Affiliation:School of Electrical Engineering,He''nan University of Technology
Abstract:In view of the security problem of food traceability system, the traditional centralized data storage has the trust problem among enterprises, and consumers also have the security problem when conducting traceability query. Taking rice as the research object, this paper constructs a grain supply chain traceability model, builds an anti-counterfeiting traceability system based on Hyperledger Fabric, and designs a smart contract for data up-link and query. Organize nodes to add crop generation number and associate traceability ID, combine two-dimensional code, traceability ID and blockchain to achieve anti-counterfeiting traceability, design local and on-chain dual storage methods, and return information after data verification. In order to ensure the security of the QR code, the improved RSA encryption algorithm is used to generate a key pair, and the form of public key encryption and private key decryption is used to generate an encrypted QR code for the traceability ID. The consumer obtains the private key from the chain to decrypt the ciphertext. Design small program and verify the effectiveness of improved RSA algorithm, apply small program in blockchain traceability and test application. The test results show that the combination of blockchain network with tamper-proof function and small program can meet the basic demand of consumer traceability query, realize a safer and faster traceability mode, and ensure the security of food information.
Keywords:QR code      RSA algorithm      Blockchain      Security traceability
点击此处可从《科学技术与工程》浏览原始摘要信息
点击此处可从《科学技术与工程》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号