crypto: fix build

This commit is contained in:
Felix Lange 2017-12-20 13:06:50 +01:00
parent b6be57f421
commit 41c854a60f

View file

@ -88,7 +88,7 @@ func VerifySignature(pubkey, hash, signature []byte) bool {
return false return false
} }
// Reject malleable signatures. libsecp256k1 does this check but btcec doesn't. // 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 false
} }
return sig.Verify(hash, key) return sig.Verify(hash, key)