Skip to main content
. 2022 Sep 8;22(18):6805. doi: 10.3390/s22186805
Algorithm 2 Signature Verification
Input: ,p
Output: msg,result=(TRUE,FALSE)
1 ring=.s
2 for i=1;i<ring.size;i++ do
3        Li=si*G+ci*pki;
4        Ri=si*H0(pki)+ci*I;
5       c[i]=H1(m,Li,Ri);
6       if i==ring.size1 then
7            c[0]=c[i];
8       else
9            c[i+1]=c[i];
10       end if
11 end for
12  if .η<p then
13         msg=against;
14  else
15 msg=approve;
16 end if
17 result=Equal(.c[0],c[0];
18 Return msg, result;