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