crypto/secp256r1: refactor by simplfying return

pull/27540/head
Ulaş Erdoğan 1 year ago
parent 2820903f59
commit 1be1875156
  1. 6
      crypto/secp256r1/verifier.go

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

Loading…
Cancel
Save