| With the continuous development of computer technology,on the one hand,medicine safety management makes the management of medicine production and sales more formal,on the other hand,it also provides a reliable basis for tracing the source and destination of medicine.Since the information input process of the medicine safety management system contains a large amount of medicine production,transportation and sales information,the process of sharing medicine-related information among various participating agencies is susceptible to various external attacks or internal leaks,which greatly hinders the medicine further development of management.The existing medicine safety management system has the disadvantages of centralized data storage mode and the data is easy to be tampered.The combination of blockchain and medicine safety management has attracted more and more attention.In view of the shortcomings of the current research,this thesis studies the use of blockchain to achieve medicine safety management.Firstly,this thesis compares the more typical consensus mechanisms in terms of performance efficiency,decentralization degree,and fault tolerance rate for Po X consensus mechanism,BFT consensus mechanism and DAG consensus mechanism.Compared with the existing research indicators,this thesis makes a more detailed comparative analysis of the three types of consensus mechanisms from the aspects of security threats and consistency.On this basis,the advantages and disadvantages of various consensus mechanisms are summarized.Secondly,based on the above analysis and comparison of the consensus mechanism,from the perspective of participating institutions,consensus reaching mechanism,etc.,the DBFT consensus mechanism is used as the basis for the improvement plan,and a blockchain-based consensus improvement scheme for the Medicine safety management system is designed.Combined with cryptographic algorithms,for node key generation,the use of distributed key generation and distribution makes node keys no longer depend on third-party institutions.For the verification and signature of messages by the nodes in the consensus process,the identity-based aggregation signature algorithm is used to integrate the messages that need to be verified one by one to realize the aggregation verification of signatures.The improved scheme has a great improvement in safety and efficiency,and has high applicability. |