Skip to content

Commit 197e5b0

Browse files
committed
Revert "crypto: add IsOnCurve check (ethereum#31100)"
This reverts commit 955616d.
1 parent d6e1590 commit 197e5b0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

crypto/crypto.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,6 @@ func UnmarshalPubkey(pub []byte) (*ecdsa.PublicKey, error) {
169169
if x == nil {
170170
return nil, errInvalidPubkey
171171
}
172-
if !S256().IsOnCurve(x, y) {
173-
return nil, errInvalidPubkey
174-
}
175172
return &ecdsa.PublicKey{Curve: S256(), X: x, Y: y}, nil
176173
}
177174

0 commit comments

Comments
 (0)