Post
Topic
Board Development & Technical Discussion
Re: same-r-value-is-used-for-two-different-addresses
by
abadon666999
on 31/10/2022, 11:04:57 UTC
yes correct
i have recovered privatekey address 1
but i can't recover privatekey address 2...
If you have the private key for the first transaction, then you can calculate the k value as follows, where x is the private key:

k = (z1 + r1*x1)/s1

Once you know k, which you say is reused in the second transaction, then you can just rearrange the equation above to calculate the private key for the second transaction:

x2 = (k*s2 - z2)/r2

first of all..thanks for your help
 i have done equation
i have k
i have that x1 = x2
than i have only privatekey address 1
it's very strange