mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
remove redundant x/y check
This commit is contained in:
parent
9b0bc8a525
commit
75062a6998
1 changed files with 0 additions and 5 deletions
|
|
@ -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…
Reference in a new issue