crypto/secp25r1: fix reverse malleability issue

This commit is contained in:
Ulaş Erdoğan 2023-05-22 22:38:41 +02:00
parent d245194e77
commit 066a31f634
1 changed files with 1 additions and 1 deletions

View File

@ -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
}