Skip to content

Commit

Permalink
Update range proof
Browse files Browse the repository at this point in the history
  • Loading branch information
yycen committed Feb 9, 2024
1 parent 7113b68 commit 6348a8b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crypto/mta/range_proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,15 @@ func (pf *RangeProofAlice) Verify(ec elliptic.Curve, pk *paillier.PublicKey, NTi
if pf.S2.Cmp(q) == -1 {
return false
}
if pf.S.Cmp(one) == 0 {
return false
}
if pf.Z.Cmp(one) == 0 {
return false
}
if pf.S1.Cmp(pf.S2) == 0 {
return false
}

// 3.
if pf.S1.Cmp(q3) == 1 {
Expand Down

0 comments on commit 6348a8b

Please sign in to comment.