From 41c854a60fad2ad9bb732857445624c7214541db Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 20 Dec 2017 13:06:50 +0100 Subject: [PATCH] crypto: fix build --- crypto/signature_nocgo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)