You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Curve.ScalarMult is supposed to be deprecated according to here:
// ScalarMult returns k*(x,y) where k is an integer in big-endian form.
//
// Deprecated: this is a low-level unsafe API. For ECDH, use the crypto/ecdh
// package. Most uses of ScalarMult can be replaced by a call to the ECDH
// methods of NIST curves in crypto/ecdh.
But it's not very clear how to actually deprecate the ScalarMult call, and thus go-ethereum is still using this deprecated API:
zhiqiangxu
changed the title
proposal: crypto/elliptic: Add suggested alternative api more clear for ScalarMult
proposal: crypto/elliptic: Make suggested alternative api more clear for ScalarMultSep 21, 2024
Proposal Details
The
Curve.ScalarMult
is supposed to be deprecated according to here:But it's not very clear how to actually deprecate the
ScalarMult
call, and thus go-ethereum is still using this deprecated API:secret, _ := crypto.S256().ScalarMult(cardPublic.X, cardPublic.Y, key.D.Bytes())
(source)
I don't think the rationale for deprecating this widely used method is very clear.
The text was updated successfully, but these errors were encountered: