Research Article

BFR-SE: A Blockchain-Based Fair and Reliable Searchable Encryption Scheme for IoT with Fine-Grained Access Control in Cloud Environment

Algorithm 9

GetFeeSESP.
Input:
Output: void
1 s = search_idx.find()
2 if (getCurrentHeight() > s.Height+2round_height)& & (s.Coin>0) then
3  Deposit = Deposit + s.Coin
4  s.Coin =0
5  search_idx.modify(s)
6 end