| Medical data sharing can help improve the accuracy of doctor’s diagnosis and promote the progress of medical research.However,because medical data contains a large amount of highly sensitive personal information.Therefore,how to realize the safe storage and sharing of medical data is of great research value.As a decentralized and tamper-proof distributed architecture,blockchain provides a new idea for the safe storage and sharing of medical data.This paper mainly studies the application of blockchain technology in the sharing of personal health records.The main research results are as follows.1.A blockchain-based personal health records sharing scheme with data integrity verifiable is proposed.Aiming at the problems of privacy leaks,limited keyword search capabilities,and lack of control rights during the sharing of personal health records,the searchable symmetric encryption technology and attribute-based encryption technology are used to realize privacy protection,keyword search and fine-grained access control.Compared with existing similar schemes,this scheme allows patients to distribute attribute private keys for users,avoiding many security problems caused by the introduction of attribute authority in the scheme.Further,the scheme uses the blockchain to manage the keys in the scheme,effectively solving the single point of failure problem in the centralized key management mode.In particular,the scheme stores the hashes of encrypted personal health records into the blockchain,and the associated keyword indexes into the smart contract,further improving the efficiency of data integrity verification.Finally,performance evaluation and security analysis show that our solution is safe and reasonable.2.A secure storage and access scheme for health records based on blockchain and IPFS is proposed.In the traditional cloud-based health records storage system,due to the single point of failure of the cloud server,data loss and limited access to resources occur frequently.In view of this situation,the scheme replaces the cloud server with the distributed file storage system IPFS,and designs a trusted access control mechanism based on the smart contract technology,which effectively realizes the functions of secure data storage,fine-grained access control,access policy update,access history query and so on.In addition,the use of tree hierarchical storage structure ensures efficient key management.Finally,the access control mechanism is implemented by using online compiler Remix,the effectiveness of its access control is verified by simulation experiments,and the security and function of the scheme are analyzed. |