Algorithm 5. Verify.
| Input: , , ψ |
| Output: proof |
| 1: . |
| 2: Using search trapdoors to perform phrase searches same as line 1–line 6 of Algorithm 4. |
| 3: for do |
| 4: |
| 5: end for |
| 6: if then |
| 7: |
| 8: end if |
| 9: The blockchain sends proof to the data user. |
| Input: , , ψ |
| Output: proof |
| 1: . |
| 2: Using search trapdoors to perform phrase searches same as line 1–line 6 of Algorithm 4. |
| 3: for do |
| 4: |
| 5: end for |
| 6: if then |
| 7: |
| 8: end if |
| 9: The blockchain sends proof to the data user. |