2
$\begingroup$

In ECDSA (Elliptic Curve Digital Signature Algorithm) we use a random number $k$ in the signature process.

Signature in ECDSA is:

$$ (x_1,y_1) = [k]G $$ $$r = x_1 \bmod n $$ $$s = k^{-1} (z+r\,d_{a}) \bmod n$$

If we know the private key $d_a$ and signature $(r,s)$ would it be possible to calculate random $k$? If not how hard would it be to calculate that?

$\endgroup$

1 Answer 1

4
$\begingroup$

This is immediate: $$ k = s^{-1} (z + r \, d_a) \bmod n $$ where $z$ is the hash value of the message being signed.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.