Research Article
BSSPD: A Blockchain-Based Security Sharing Scheme for Personal Data with Fine-Grained Access Control
Code 1
The code of the tables in Smart Contract.
typedef eosio::multi_index<"sharedatas"_n, my_data> data_table; | ttypedef eosio::multi_index<"searchindexs"_n, s_index, indexed_by<"username"_n, | const_mem_fun<s_index, uint64_t, &s_index::by_secondary>>,indexed_by <"searchtoken "_n, const_mem_fun<s_index, checksum256, &s_index::by_thirdary>>,indexed_by<"fid"_ | n, const_mem_fun<s_index, uint64_t, &s_index::by_forthary>>> search_table; |
|