crypto/secp256r1: refactor by simplfying return

This commit is contained in:
Ulaş Erdoğan 2023-08-11 00:36:35 +03:00
parent 2820903f59
commit 1be1875156

View file

@ -28,11 +28,7 @@ func Verify(hash []byte, r, s, x, y *big.Int) bool {
// Verify the signature with the public key,
// then return true if it's valid, false otherwise
if ok := ecdsa.Verify(publicKey, hash, r, s); ok {
return true
}
return false
return ecdsa.Verify(publicKey, hash, r, s)
}
// Check the malleability issue