Skip to main content
. 2022 Feb 2;22(3):1146. doi: 10.3390/s22031146
Algorithm 3: Data Querying.
Input: MAHFB;
Step 1: query
A chooses a random number kA1;
MAHFB=(IDATAHFBKeywords);
call function Sign(MAHFB,dA,kA1), return (rA1,sA1);
send MAHFB, (rA1,sA1) to HFB
Step 2: return
Upon receiving; check whether TNOWTAHFBτ;
call function Verify(zA1,rA1,sA1), return result;
ifTNOWTAHFBτthen
  if result = “valid” then
   call chaincode “Querfile”, return Keyword-index table to A;
  end
end