Skip to content

Commit

Permalink
Update range proof (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
yycen authored Apr 18, 2024
1 parent 843de68 commit 5d01446
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 5d01446

Please sign in to comment.