mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 14:33:52 +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
|
// Check the malleability issue
|
||||||
func checkMalleability(s *big.Int) bool {
|
func checkMalleability(s *big.Int) bool {
|
||||||
return s.Cmp(secp256k1halfN) <= 0
|
return s.Cmp(secp256k1halfN) > 0
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue