|
Algorithm 3 Verify |
-
Input:
,
-
Output:
-
1:
Parse as
-
2:
-
3:
Step 1: Source authenticity
-
4:
if then
-
5:
return 0 ▹ Invalid signature
-
6:
end if
-
7:
Step 2: Index uniqueness
-
8:
if or then
-
9:
return 0 ▹ Invalid VRF proof or index
-
10:
end if
-
11:
Step 3: Computational integrity
-
12:
if then
-
13:
return 0 ▹ Invalid ZK proof
-
14:
end if
-
15:
return 1
|