| In recent years,the informatization construction of the medical service system has received widespread attention at home and abroad,and a large number of government agencies and enterprises have developed in the field of digital medicine.Among them,electronic health records have gradually become the mainstream form of medical data storage,which can not only enable medical institutions to better manage patient data in a unified manner,but also facilitate physicians to carry out follow-up treatment.However,at present,the information systems of most medical institutions adopt independent centralized storage methods,which makes it difficult for medical institutions to carry out efficient data interconnection and interconnection,which brings inconvenience to patients across institutions.On the other hand,such information systems are also highly vulnerable to hacking and data leakage,which in turn leads to problems such as illegal sales,which seriously compromises the privacy of patients.Therefore,the core problem of this paper is how to achieve safe and reliable data sharing between medical institutions under the premise of protecting medical data privacy.In order to solve the above problems,this paper proposes a medical data privacy protection model,which is based on blockchain technology,and its decentralization,tamper-proof,and traceability characteristics can ensure that the system has good robustness and data security to achieve reliable data sharing among medical institutions.There are three innovations in this paper:(1)By analyzing the needs of medical scenarios,the consortium chain is selected for data sharing.Combined with the ideas of delegated proof-of-stake algorithm and probabilistic proof-of-stake algorithm,the consensus algorithm is improved,and a consensus scheme suitable for medical institutions is proposed.The analysis shows that the consensus scheme has the characteristics of fair distribution of accounting rights,resource saving,high efficiency,decentralization,scalability,and antiattack required for medical privacy data sharing,and the experimental simulation shows that the scheme has good throughput and scalability.(2)In order to solve the problems of bribery,poor voting enthusiasm and weak centralization caused by node solidification in the election process of the entrusted proof-of-stake algorithm,the multi-point collaboration algorithm and the ring signature algorithm were introduced to improve the election-related problems.Experimental simulations show that the improved algorithm has better attack resistance and better stability in the presence of malicious nodes.(3)Based on the analysis of the actual needs,based on the above two algorithm innovations,a medical privacy data sharing system was designed.Under the premise that the data will inevitably be leaked,the data is segmented and processed separately,and the SHA256 algorithm is used to calculate the identity hash instead of the identity information,which is irreversible and easy to verify to ensure the anonymity of the data.This solution can prevent attackers from obtaining valid sensitive data even in the case of partial data leakage. |