摘要
为了解决现阶段食品溯源系统大多依托于超级账本、以太坊等由国外厂商或团体主导的区块链平台,存在数字基础设施安全隐患的问题,贯彻“安全自主可控”的“信创”理念,在麒麟操作系统之上搭建了多节点FISCO BCOS国产联盟链,引入面向对象程序设计模式编写食品溯源智能合约,并提出区块链服务中间件设计,研发了跨平台溯源App应用,面向食品生产商、分销商、零售商、消费者等多个角色,实现数据上链、信息追溯等食品溯源核心功能。经过测试,溯源数据查询及上链操作平均耗时分别为159、538 ms,食品溯源系统性能和稳定性较高,具备一定的市场应用推广价值。
In order to solve the problem of digital infrastructure security risks that most of the current food traceability systems rely on Hyperledger,Ethereum and other blockchain platforms led by foreign manufacturers or groups,this paper tries to build a multi-node FISCO BCOS on the Kylin operating system.In the alliance chain,an object-oriented programming model was introduced to write food traceability smart contracts,and a blockchain service middleware design was proposed,and cross-platform traceability applications were developed.The food traceability system proposed in this paper can be oriented to multiple roles such as food producers,distributors,retailers,consumers,etc.,and realize the core functions of food traceability such as data on-chain and information traceability.After testing,the average time for traceability data query and chain operation was 159 and 538 ms respectively.The food traceability system has high performance and stability and has certain market application promotion value.
作者
林峰
LIN Feng(Fuzhou Polytechnic,Fuzhou,Fujian 350108,China)
出处
《龙岩学院学报》
2022年第2期7-13,共7页
Journal of Longyan University
基金
中国职业技术教育学会课题(2020A0104)
福建省中青年教师教育科研项目(JAT210813)。
关键词
区块链
食品溯源
智能合约
blockchain
food traceability
smart contract