Computer Engineering and Applications ›› 2020, Vol. 56 ›› Issue (3): 35-41.DOI: 10.3778/j.issn.1002-8331.1908-0113

Previous Articles     Next Articles

Research on Medical Anti-Counterfeiting Traceability System Based on Blockchain

YU Zhong, GUO Chang, XIE Yongbin, XUE Dong   

  1. School of Communication and Information Engineering, Xi’an University of Posts & Telecommunications, Xi’an 710121, China
  • Online:2020-02-01 Published:2020-01-20



  1. 西安邮电大学 通信与信息工程学院,西安 710121

Abstract: This paper presents a blockchain-based medical anti-counterfeiting traceability system which can solve the problems of centralization and effortlessness to falsify, incomplete information memory and information security in the current medical anti-counterfeiting traceability system. The system is created in the platform of the Hyperledger’s Fabric blockchain, and the system of computer environment is equipped with three organizations:pharmaceutical factory, dealer, and hospital. The chaincode is developed by using the Go language, combines with traceability function of the medicine in the chaincode, uses Node. js to write the client program and initiate the query request. Finally, the accounts of authenticated user can be used to query the drug information on the webpages, and the time of query response is 22?ms on average. The characters of unchangeable modification of data, time stamp and transaction traceability in blockchain can be well applied to the medical anti-counterfeiting traceability system which makes the system traceability function more complete, and consumers can get all traceability information, including production information, logistics information and use information of drugs.

Key words: blockchain, Fabric, medical, anti-counterfeiting traceability

摘要: 为了解决目前医药防伪溯源系统中存在的中心化易篡改、存储信息不全面以及信息私密性等问题,提出了一种基于区块链的医药防伪溯源系统。此系统在超级账本(Hyperledger)的Fabric区块链平台上开发,系统环境配置有医药厂、经销商、医院3个组织,通过Go语言开发链码,采用Node.js来编写客户端程序,并结合链码中的药品溯源功能发起查询请求。最终,通过证书认证的用户账号可以实现药品信息在网页的查询,且查询响应时间的平均值为22?ms。区块链所具有的数据难以篡改、时间戳以及交易可追溯的特性能很好地应用于医药防伪溯源系统,使系统溯源功能更加完善,且消费者能得到包括药品生产信息、物流信息及使用信息在内的全部溯源信息。

关键词: 区块链, Fabric, 医药, 防伪溯源