Research Article

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

Algorithm 2

GetUserByUid.
Input: uid
Output: all information of DU
1 ifmsg.sender is not _selfthen
2 throw;
3 else
4 user_row = uid_idx.find(uid);
5 returnuser_row;
6 end