-
hello, tell me how to check that the public keys lie on the curve.? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
All the public methods in VerifyingKey check if the public key lies on the curve, it's controlled by the python-ecdsa/src/ecdsa/keys.py Lines 202 to 204 in b3b27cd or: python-ecdsa/src/ecdsa/keys.py Lines 286 to 293 in b3b27cd
if a point was on the curve before multiplication, then the result will be on the curve... You can double check that on high level, by exporting the point to a byte string and then create a new VerifyingKey instance, that will verify if it is on curve still. On low level, you need to get the python-ecdsa/src/ecdsa/ellipticcurve.py Line 131 in b3b27cd or the contains_point() of CurveEdTw() for twisted Edwards curves:python-ecdsa/src/ecdsa/ellipticcurve.py Line 197 in b3b27cd |
Beta Was this translation helpful? Give feedback.
All the public methods in VerifyingKey check if the public key lies on the curve, it's controlled by the
validate_point
option like:python-ecdsa/src/ecdsa/keys.py
Lines 202 to 204 in b3b27cd
or:
python-ecdsa/src/ecdsa/keys.py
Lines 286 to 293 in b3b27cd
if a point was on the curve before multiplication, then the result will…