Research Article

BSSPD: A Blockchain-Based Security Sharing Scheme for Personal Data with Fine-Grained Access Control

Algorithm 6

SetPK.
Input: newPk
Output: bool
1 ifmsg.sender is not _selfthen
2 throw;
3 else
4 PK = newPk;
5  return true;
6 end