Skip to main content
. 2024 Nov 22;10:e2235. doi: 10.7717/peerj-cs.2235

Algorithm 3. TokenGen.

Input: The query phrase w~, the key set K
Output: The serach trapdoor TKi,Q
1:  Suppose that query phrase w~={w1,w2,...,wt}
2:  for j=1t do
3:       stj[wj],uwjF1(K3,wj)
4:       twjH2(uwj||stj)
5:     if j>1 then
6:          d=j1;EdPaillier.Enc(d)
7:     end if
8:  end for
9:  send TKi,Q={tw1,tw2,...,twt,E1,E2,...,Et1} to blockchain and cloud server