mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 15:46:43 +00:00
crypto/secp25r1: fix reverse malleability issue
This commit is contained in:
parent
d245194e77
commit
066a31f634
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