With the rapid development of the Internet and the medical industry,a variety of new drugs are emerging on the market and sold through online pharmacies,which also include many counterfeit drugs.The problem of counterfeit drugs has become a key issue that needs to be resolved.Establishing a complete drug traceability system is an effective way to solve the current drug safety supervision problems.However,there are still some problems.On the one hand,most of the existing drug traceability platform solutions are centralized traceability systems built by each pharmaceutical company,which is not conducive to the unified management of the drug administration;at the same time,centralized data storage will still exist for pharmaceutical companies or platforms.To evade responsibility for privately tampering with drug data and other issues,how to ensure the authenticity of drug data in the drug traceability supervision system is a difficult problem that needs to be resolved at present.On the other hand,even if a third-party drug traceability platform such as "Ali Health" is used,the privacy and security of data is another major issue that needs to be considered.As the core secret of drug companies,drug data should be secured.And privacy is not leaked.Based on the above and the problems existing in the actual scenario of drug traceability,this article proposes a drug safety supervision program based on blockchain.In this solution,the block chain is used to store the drug data of pharmaceutical companies,and all drug data will be packaged and uploaded to the block chain to ensure the authenticity and traceability of the drug data.At the same time,corresponding improvements are made to the blockchain structure and smart contracts to improve the system’s supervisability and efficiency.Finally,in order to ensure the security of drug data,this solution uses attribute-based encryption technology to encrypt data in the chain to ensure the privacy and security of drug data and access control.Specifically,the contributions made by this thesis are as follows:1)Based on the characteristics and actual scenarios of the pharmaceutical supply chain,a new type of blockchain structured drug traceability system model is designed.The new blockchain structure of the main chain and the branch chain is adopted to realize multiple drug enterprise nodes.Supervision improves the traceability efficiency of the system.2)Ensure data privacy security.This solution combines encryption(CP-ABE)technology based on ciphertext policy attributes with smart contracts to achieve fine-grained access for users at all levels and ensure data privacy and security.3)Improved system security.In MB-BC,each branch chain can publish its own smart contract,which can effectively prevent attacks caused by smart contract vulnerabilities.4)According to the proposed scheme,a blockchain-based drug traceability supervision platform has been constructed,which has certain theoretical and practical value for future practical applications. |