Calculating Nonce with ECDSA Signatures

4 replies 485 views
stack_chadFull Member
Posts: 5 · Reputation: 633
#1Oct 10, 2017, 08:54 AM
So I’ve got these two signatures and trying to figure out the nonce. Here’s what I got: d1=(k1*s1-z1)/r1 k1=(d1*r1+z1)/s1 r1=(k1*s1-z1)/d1 s1=(d1*r1+z1)/k1 z1=k1*s1-d1*r1 If we have another signature, how do I find k?
6 Reply Quote Share
stack_chadFull Member
Posts: 5 · Reputation: 633
#2Oct 10, 2017, 11:53 AM
Actually, I think if we have an inverse, we can write it like this: d2=k1^(n-2)-1 k2=k1^(n-2) r2=(k2*s2-z2)/d2 s2=(d2*r2+z2)/k2 z2=k2*s2-d2*r2 Still not sure how to calculate k from 1/k though.
6 Reply Quote Share
wolf_2020Member
Posts: 9 · Reputation: 229
#3Oct 10, 2017, 01:53 PM
Anyone got the RSZ value? I’m kinda lost here… r=0x s=0x z=0x Need to fill this in to move forward.
1 Reply Quote Share
alex777Full Member
Posts: 13 · Reputation: 513
#4Oct 10, 2017, 03:17 PM
I’m not following. Are you saying that k1 and k2 are inverses of each other, or is it just the nonces that are inverse? Clarify please.
3 Reply Quote Share
stack_chadFull Member
Posts: 5 · Reputation: 633
#5Oct 10, 2017, 05:47 PM
Here’s an example I’m working with: d1=(k1*s1-z1)/r1 d1=000000000000000000000000000000000000000000000000000000000000000e k1=000000000000000000000000000000000000000000000000000000000000000f r1=02d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e s1=02d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e z1=k1*s1-d1*r1 If I have another signature, it seems d2=k1^(n-2)-1. What do you think?
1 Reply Quote Share

Related topics