摘 要:传统农产品溯源系统中心化管理模式存在系统容易受到攻击、数据容易被篡改等问题。通过对传统农产品溯源状态与问题进行分析,结合区块链去中心化、分布式存储、安全性高以及以太坊可编程特性,文章设计并实现一种基于以太坊的农产品溯源系统。探讨了基于以太坊的农产品溯源系统设计与实现,阐述了需求分析、关键技术、架构设计、智能合约设计和功能实现等内容。该系统能够对农产品进行可信溯源以确保农产品供应安全。
关键词:农产品;溯源系统;以太坊;智能合约
DOI:10.19850/j.cnki.2096-4706.2022.18.011
基金项目:嘉兴市公益性研究计划项目(2019AD32029)
中图分类号:TP311 文献标识码:A 文章编号:2096-4706(2022)18-0044-04
Design and Implementation of Agricultural Product Traceability System Based on Ethereum Technology
LAN Jianping
(Jiaxing Vocational & Technical College, Jiaxing 314036, China)
Abstract: The centralized management mode of traditional agricultural product traceability system has problems such as the system is vulnerable to attacks and data is easily tampered. By analyzing the state and problems of traditional agricultural product traceability, and combining the decentralization, distributed storage, high security of blockchain and programmable features of Ethereum, this paper designs and implements an agricultural product traceability system based on Ethereum, discusses the design and implementation of an agricultural product traceability system based on Ethereum, and describes the requirement analysis, key technologies, architecture design, smart contract design and function implementation and other content. The system provides trusted traceability for agricultural products to ensure the safety of agricultural supply.
Keywords: agriculture product; traceability system; Ethereum; smart contract
参考文献:
[1] 闫莺,郑凯,郭众鑫 . 以太坊技术详解与实战 [M]. 北京:机械工业出版社,2018.
[2] 夏秀绿,王晓乔 . 基于 Web 的农产品溯源系统设计 [J].软件工程,2019,22(7):28-30.
[3] 林冠宏 . 区块链以太坊 DApp 开发实战 [M]. 北京:清华大学出版社,2018.
[4] 张慧,张雅琼,林基艳 . 基于区块链的农产品溯源系统设计 [J]. 电子测试,2020(18):74-75.
[5] 蹇念 . 农产品溯源在智慧农业中的应用研究 [J]. 智慧农业导刊,2021,1(4):16-18.
作者简介:蓝建平(1975—),男,畲族,浙江丽水人,副教授,本科,研究方向:大数据、移动应用开发。