| Input:
|
| Output: Search results R
|
| 1: Parse
|
| 2: for
do |
| 3:
|
| 4: end for |
| 5:
|
| 6: Get
from
|
| 7: for
do |
| 8:
|
| 9:
|
| 10: for
do |
| 11:
|
| 12: for
do |
| 13: if
then |
| 14: Set the position
of flag to 1 |
| 15: break
|
| 16: end if |
| 17: end for |
| 18: end for |
| 19: If all positions of flag are 1 |
| 20: get
,
|
| 21: end for |
| 22: Server sends {
} to the blockchain for verification, and sends R to the data user |