Skip to content

check that the public keys lie on the curve.? #274

Answered by tomato42
Noname400 asked this question in Q&A
Discussion options

You must be logged in to vote

All the public methods in VerifyingKey check if the public key lies on the curve, it's controlled by the validate_point option like:

def from_public_point(
cls, point, curve=NIST192p, hashfunc=sha1, validate_point=True
):

or:
def from_string(
cls,
string,
curve=NIST192p,
hashfunc=sha1,
validate_point=True,
valid_encodings=None,
):

and how to check that after the operation of multiplication I left the border of the curve?

if a point was on the curve before multiplication, then the result will…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tomato42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #271 on November 27, 2021 13:11.