mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
crypto/secp25r1: fix reverse malleability issue
(cherry picked from commit 066a31f634)
This commit is contained in:
parent
83a20d36ec
commit
fc057aaabb
1 changed files with 1 additions and 1 deletions
|
|
@ -35,5 +35,5 @@ func Verify(hash []byte, r, s, x, y *big.Int) ([]byte, error) {
|
|||
|
||||
// Check the malleability issue
|
||||
func checkMalleability(s *big.Int) bool {
|
||||
return s.Cmp(secp256k1halfN) <= 0
|
||||
return s.Cmp(secp256k1halfN) > 0
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue