remove redundant x/y check

pull/30043/head
Danyal Prout 5 months ago committed by Ulaş Erdoğan
parent 9b0bc8a525
commit 75062a6998
  1. 5
      crypto/secp256r1/publickey.go

@ -13,11 +13,6 @@ func newPublicKey(x, y *big.Int) *ecdsa.PublicKey {
return nil return nil
} }
// Check if the given coordinates are the reference point (infinity)
if x.Sign() == 0 && y.Sign() == 0 {
return nil
}
return &ecdsa.PublicKey{ return &ecdsa.PublicKey{
Curve: elliptic.P256(), Curve: elliptic.P256(),
X: x, X: x,

Loading…
Cancel
Save