Skip to content

Commit

Permalink
Fix forgotten conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
K1li4nL committed May 24, 2024
1 parent 798e66a commit 0adfea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sign/schnorr/schnorr.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func VerifyWithChecks(g kyber.Group, pub, msg, sig []byte) error {
if s, ok := g.Scalar().(scalarCanCheckCanonical); ok && !s.IsCanonical(sig[pointSize:]) {
return fmt.Errorf("signature is not canonical")
}
if sub, ok := R.(kyber.SubGroupElement); ok && !sub.IsInCorrectGroup() {
if sub, ok := r.(kyber.SubGroupElement); ok && !sub.IsInCorrectGroup() {
return fmt.Errorf("schnorr: point not in correct group")
}
if err := s.UnmarshalBinary(sig[pointSize:]); err != nil {
Expand Down

0 comments on commit 0adfea0

Please sign in to comment.