mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
crypto: fix build
This commit is contained in:
parent
b6be57f421
commit
41c854a60f
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue