crypto: fix golint warnings (#16710)

This commit is contained in:
kiel barry
2018-05-08 16:17:09 -07:00
committed by Felix Lange
parent eab6e5a317
commit ba975dc093
5 changed files with 13 additions and 13 deletions

View File

@ -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 sig.S.Cmp(secp256k1_halfN) > 0 {
if sig.S.Cmp(secp256k1halfN) > 0 {
return false
}
return sig.Verify(hash, key)