Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECDSA Sign returns always same signature(but it shouldn't) #59

Open
Asphiii opened this issue Apr 29, 2020 · 2 comments
Open

ECDSA Sign returns always same signature(but it shouldn't) #59

Asphiii opened this issue Apr 29, 2020 · 2 comments
Labels

Comments

@Asphiii
Copy link

Asphiii commented Apr 29, 2020

Hello,
I've got a problem with the ECDSA Sign function. It should return always different signatures due to the K value, but it doesn't - its always the same. How can I change that manually?
Best regards,
Luke

@przpl
Copy link

przpl commented May 28, 2020

I had similar problem with different library (elliptic). I don't know eccrypto details but I think it may be an implementation of a "Deterministic ECDSA": RFC 6979.

In Deterministic ECDSA the same K value will be used for the same data thus giving the same signature. For other data other K will be used, so we don't have to worry.

@JBaczuk
Copy link
Contributor

JBaczuk commented Jun 17, 2020

@Asphiii I know this is late, sorry, can you share your code? If you run the example in the REAME it does generate a different signature every time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants