From 75062a6998e4e3fbb4cdb623b8b02e79e7b8f965 Mon Sep 17 00:00:00 2001 From: Danyal Prout Date: Mon, 22 Apr 2024 19:48:31 -0500 Subject: [PATCH] remove redundant x/y check --- crypto/secp256r1/publickey.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/crypto/secp256r1/publickey.go b/crypto/secp256r1/publickey.go index 8445f4f348..885a3e1a62 100644 --- a/crypto/secp256r1/publickey.go +++ b/crypto/secp256r1/publickey.go @@ -13,11 +13,6 @@ func newPublicKey(x, y *big.Int) *ecdsa.PublicKey { return nil } - // Check if the given coordinates are the reference point (infinity) - if x.Sign() == 0 && y.Sign() == 0 { - return nil - } - return &ecdsa.PublicKey{ Curve: elliptic.P256(), X: x,