Research Article
A Controllable Secure Blockchain-Based Electronic Healthcare Records Sharing Scheme
(i) | //add the EHR file to IEFS and get the hash-valued file address | (ii) | H_Address = IEFS.add(EHR); | (iii) | H_Address = encrypt(H_Address, P_PKey); | (iv) | //publish the EHR abstract to the blockchain of BEAS | (v) | Signature = encrypt(hash(H_Name, Keywords, P_ID, D_ID, H_Address),D_SKey); | (vi) | Res = BEAS.validate_save(H_Name, Keywords, P_ID, Signature, D_ID,H_Address) | (vii) | if Res then | (viii) | return EHR_ID; | (ix) | else | (x) | return Null; |
|