Algorithm 3: Data Querying. |
Input: ; |
Step 1: query |
A chooses a random number ; |
; |
call function , return ; |
send to HFB |
Step 2: return |
Upon receiving; check whether ; |
call function , return result; |
ifthen |
if result = “valid” then |
call chaincode “Querfile”, return Keyword-index table to A; |
end |
end |