Post
Topic
Board Development & Technical Discussion
Re: Compute Z with rs and the priv key
by
stwenhao
on 13/06/2025, 08:04:23 UTC
Quote
is it possible to compute z with rs , priv key and the public key?
Yes.
Code:
s=(z+rd)/k
sk=z+rd
sk-rd=z
z=sk-rd
z*G=sR-rQ
If you know private key "d", and signature private key "k", then you can just compute "sk-rd", and it will give you z-value.

Also, if you instead know only public key "Q", and signature public key "R", then you can calculate "z*G" out of that. Then, you won't have access to raw z-value, but you will know, which public key you will reach, if you use z-value as your private key.

But I wonder, why you ask questions like that, instead of trying to understand the answer you already received: https://bitcointalk.org/index.php?topic=5432120.msg61511319#msg61511319

Another thing is if you keep asking for things, and then removing your own topics, then there will be no point in giving you further answers, if all of that effort will be removed, and not preserved for future users or search engines. More than that: you received merits for removed posts, which should probably be kept: but if your next question is also going to be removed, then why should your current posts be merited, if they won't be visible as such, and you will be left with a long history of merits, sent to deleted posts and topics.

Also note, that all things you wrote are archived, so there is no point in removing them: https://ninjastic.space/search?author=jvaimamu