欢迎您访问《智慧农业(中英文)》官方网站! English

Smart Agriculture

• •    

基于PQ-ECIES的蔬菜物联网区块链防伪追溯系统

齐培杨1,2, 孙传恒2, 谭昌伟3, 王俊4, 罗娜2(), 邢斌2()   

  1. 1. 上海海洋大学 信息学院,上海 201306,中国
    2. 国家农业信息化工程技术研究中心,北京 100097,中国
    3. 扬州大学 农学院,江苏 扬州 225009,中国
    4. 江苏立卓信息技术有限公司,江苏 常州 213000,中国
  • 收稿日期:2025-07-11 出版日期:2025-10-09
  • 基金项目:
    江苏省科技计划(重点研发计划现代农业)项目(BE2023315)
  • 作者简介:

    齐培杨,硕士,研究方向为农业信息化技术研究。E-mail:

  • 通信作者:
    邢 斌,硕士,副研究员,研究方向为农业信息化技术研究。E-mail:
    邢 斌,硕士,副研究员,研究方向为农业信息化技术研究。E-mail:

Vegetable IoT Blockchain Anti Counterfeiting Traceability System Based on PQ-ECIES

QI Peiyang1,2, SUN Chuanheng2, TAN Changwei3, WANG Jun4, XING Bin2()   

  1. 1. School of Information, Shanghai Ocean University, Shanghai 201306, China
    2. National Engineering Laboratory for Agri-product Quality Traceability, Beijing 100097, China
    3. Agricultural College of Yangzhou University, Yangzhou 225009, China
    4. Jiangsu Legeous Information Technology Co. , Ltd, Changzhou 213000, China
  • Received:2025-07-11 Online:2025-10-09
  • Foundation items:Jiangsu Provincial Science and Technology Program-Key R&D Program (Modern Agriculture) Project(BE2023315)
  • About author:

    QI Peiyang, E-mail:

  • Corresponding author:
    XING Bin, E-mail:

摘要:

【目的/意义】 蔬菜供应链具有生产主体类别多、产品品种多、流通环节复杂等特点,针对传统追溯过程中数据采集准确率低、追溯标签易伪造、数据易篡改、供应链信息断链等问题,通过分析蔬菜生产、加工、储运、销售等流程,利用蓝牙,区块链,物联网(Internet of Things, IoT)等手段,创建数据可信共享、全链溯源区块链平台。 【方法】 集成气象站、农残检测仪、标签打印机等物联网设备,通过硬件标识与企业主体绑定机制建立设备-主体可信映射;融合椭圆曲线综合加密方案(Elliptic Curve Integrated Encryption Scheme, ECIES)与后量子密码中的Kyber算法,研发抗量子混合加密方案,实现物联网数据量子安全加密,阻断伪造篡改行为。 【结果和讨论】 在此基础上研发基于物联网和区块链的蔬菜防伪追溯系统并进行实验测试,对信息采集准确率、数据上链、数据查询进行了测试分析,实验结果表明物联网方式能够提高数据录入的准确率,数据上传至蔬菜防伪溯源区块链系统时延为2 879 ms,查询数据时延为122 ms。提出的蔬菜供应链后量子增强型椭圆曲线综合加密方案(Post-Quantum Enhanced ECIES, PQ-ECIES)对128 B明文的加密与解密时间总开销大约在10 ms,相比于传统加密方法RSA(Rivest-Shamir-Adleman)非对称加密的50~80 ms表现出较高效率,相较于对称加密的高级加密标准(Advanced Encryption Standard, AES)时间开销大,但抗量子安全性高。 【结论】 系统的数据上链和数据查询效率较高,可以满足的系统应用需求,能够有效解决传统追溯存在的漏填或错填追溯信息、追溯数据造假等问题,实现蔬菜的可信溯源。

关键词: 物联网, 区块链, 蔬菜溯源系统, 防伪追溯, 后量子加密

Abstract:

[Objective] The vegetable supply chain is characterized by multiple production entities, diverse product varieties, and complex circulation processes, which often result in low data accuracy, label forgery, data tampering, and difficulties in cross-enterprise collaboration in traditional traceability systems. Furthermore, the rapid development of quantum computing poses significant threats to existing cryptographic foundations, by enabling efficient factorization or discrete logarithm attacks. This study aimed to design and implement a vegetable supply chain anti-counterfeiting and traceability system that integrates the Internet of Things (IoT), blockchain technology, and a post-quantum enhanced elliptic curve integrated encryption scheme (PQ-ECIES). The system seeks to enhance the trustworthiness, privacy protection, and collaborative efficiency of supply chain data management, while maintaining practical performance for IoT devices and high-frequency data uploading scenarios. [Methods] The proposed system was constructed on an IoT framework incorporating nine categories of devices. A registration and admission mechanism was developed to establish a trusted mapping between "device–enterprise–data", effectively preventing unauthorized entities from uploading forged data. At the data layer, collected information was divided into public and private categories: public data were uploaded directly to the blockchain, while private data were encrypted using PQ-ECIES before being stored on-chain. Smart contracts automated processes such as data classification, permission verification, and encrypted data querying, thus reducing human intervention and ensuring compliance. PQ-ECIES was designed by combining elliptic curve cryptography (ECC) and the Kyber algorithm from lattice-based post-quantum cryptography. A dual-key mechanism was employed to generate session keys, where an ECC-derived shared secret was combined with a Kyber-derived shared secret through SHA3-256 hashing, followed by key derivation for encryption and authentication. This design provided resilience against Shor's algorithm and other quantum attacks while maintaining efficiency compatible with IoT devices. The blockchain system was implemented using Hyperledger Fabric 1.4.4, with seven organizational nodes and the Raft consensus mechanism. Performance testing included evaluations of data collection accuracy, on-chain latency, query latency, and encryption performance across RSA, advanced encryption standard (AES), and PQ-ECIES. [Results and Discussions] The IoT-based data collection achieved significantly higher accuracy than manual input, particularly in large-scale sample scenarios such as pesticide residue testing. The average latency for data uploading to the blockchain was 2 879 ms, while data query latency averaged 122 ms, both of which met the practical requirements of vegetable supply chain applications. In cryptographic performance testing, PQ-ECIES achieved encryption and decryption of 128 B plaintext in approximately 10–30 ms, outperforming RSA (50–80 ms) and only slightly slower than AES (<10 ms). This result indicates that PQ-ECIES achieved an optimal trade-off between efficiency and security, offering asymmetric encryption benefits such as key distribution and identity verification, along with strong post-quantum resistance. Simulation under quantum attack models confirmed that traditional ECC and AES could be compromised within hours using Shor's and Grover's algorithms, whereas PQ-ECIES maintained resilience due to the lattice-based hardness assumptions of Kyber. From a system-level perspective, three major contributions were identified. First, trustworthiness was enhanced by binding IoT devices to enterprises through Bluetooth-based verification and blockchain's immutable ledger, ensuring data authenticity at the source. Second, privacy protection was achieved by adopting graded visibility: consumers accessed only public data such as testing results and logistics status, while regulators could decrypt private information (e.g., production location and batch details) via authorized keys, balancing transparency with confidentiality. Third, collaboration across enterprises was improved through the consortium blockchain structure and Fabric channel mechanisms, which eliminated information silos and enabled selective data sharing in real time, reducing inter-organizational access time from weeks to minutes. [Conclusions] This study proposed and implemented a vegetable supply chain traceability system that integrates IoT, blockchain, and PQ-ECIES. By deploying nine categories of IoT devices, establishing trusted device–enterprise mappings, and incorporating blockchain's decentralized and tamper-proof ledger, the system ensured reliable data collection and storage. The integration of PQ-ECIES provided dual cryptographic protection, balancing efficiency with long-term quantum security. Experimental validation confirmed that IoT-based collection significantly improved accuracy, blockchain integration achieved acceptable on-chain and query latency, and PQ-ECIES outperformed RSA while offering post-quantum resistance not available in AES. Beyond technical performance, the system enhanced trust, privacy, and collaboration across the vegetable supply chain, effectively addressing common issues of data forgery, tampering, and cross-enterprise coordination.Overall, the proposed framework demonstrates high potential for real-world deployment in agricultural supply chains, offering a secure, efficient, and future-proof solution to ensure authenticity, reliability, and transparency in vegetable traceability. The study also provides a reference model for extending post-quantum blockchain-based traceability to other agri-food sectors facing similar challenges.

Key words: Internet of things, blockchain, vegetable, anti-counterfeiting traceability, Post Quantum encryption

中图分类号: