diff --git a/crypto/signature_nocgo.go b/crypto/signature_nocgo.go index f45a6202dc..f636b23772 100644 --- a/crypto/signature_nocgo.go +++ b/crypto/signature_nocgo.go @@ -88,7 +88,7 @@ func VerifySignature(pubkey, hash, signature []byte) bool { return false } // Reject malleable signatures. libsecp256k1 does this check but btcec doesn't. - if s.Cmp(secp256k1_halfN) > 0 { + if sig.S.Cmp(secp256k1_halfN) > 0 { return false } return sig.Verify(hash, key)