With the continuous development of our country’s economic level,people are also pursuing better medical services.However,the data islands between medical institutions are an obstacle to the further development of medical services.At the same time,data leakage incidents occur from time to time because of the high value and vulnerability of medical data.In view of the current situation,this thesis proposes a blockchain-based Medical data sharing system to solve the above problems.The core of this system mainly adopts the Hyperledger Fabric alliance chain framework and combines with the IPFS interplanetary storage file system to form a storage mode of "index on chain,storage off chain".This model stores the index information of electronic medical records on the blockchain and encrypts them with the user’s public key.Because it is stored on the chain,the index has the characteristics of secure decentralized storage,tamper-proof and traceability,etc.In addition,the model uses IPFS distributed storage technology to effectively reduce the communication and storage pressure of the blockchain system by storing the ciphertext of the medical records under the chain.At the same time,in order to realize the secure sharing of electronic medical records,the user grants the decryption authority to other users through the proxy re-encryption algorithm,and only authorized users can decrypt the ciphertext of the medical record to ensure the safe and credible sharing of the medical record.According to the concrete realization of the system,this thesis gives the system test plan,and carries on the function test and the system test to the system,and finally analyzes the test results and the safety of the system to confirm that the system achieves the expected effect. |