Question: Write a function ecdsaverify ( q , A , B , G , p , Q , m , signature ) that takes as input

Write a function ecdsaverify(q,A,B,G,p,Q,m,signature) that takes as input
prime p and q, creates the elliptic curve modulo q
E:y2=x3+Ax+B
G=(x,y) a pair of integers that are the x,y coordinates of the (base) point G on E that has prime order p(return 'Invalid input' if this is not the case)
Q=(x',y') a pair of integers that are the x,y coordinates of the public key point Q on E(it needs to be a multiple of G, but you are not asked to check this as it would involve solving
ECDLP)
the message m as a SAGE integer
the signature (r,s) as a pair of SAGE integers
and returns True or False depending on the signature being valid or not.
 Write a function ecdsaverify(q,A,B,G,p,Q,m,signature) that takes as input prime p and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!