Skip to content

Commit

Permalink
return errors
Browse files Browse the repository at this point in the history
Signed-off-by: KAO <kao@zurich.ibm.com>
  • Loading branch information
KElkhiyaoui committed Jul 5, 2021
1 parent 5f06ecc commit 00c4233
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions token/core/zkatdlog/crypto/sigproof/membership.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ func (v *MembershipVerifier) Verify(raw []byte) error {

com, err := v.recomputeCommitments(proof)
if err != nil {
return nil
return err
}

chal, err := v.computeChallenge(proof.Commitment, com, proof.Signature)
if err != nil {
return nil
return err
}
if chal.Cmp(proof.Challenge) != 0 {
return errors.Errorf("invalid membership proof")
Expand Down

0 comments on commit 00c4233

Please sign in to comment.