Research Article
BSSPD: A Blockchain-Based Security Sharing Scheme for Personal Data with Fine-Grained Access Control
Input: account, id | Output: bool | 1 ifmsg.sender is not _selfthen | 2 throw; | 3 else | 4 u = account_idx.find(account); | 5 ifu==nullthen | 6 return false; | 7 else | 8 u.uid=id; | 10 account_idx.modify(u); | 11 return true; | 12 end | 13 end |
|