Bitcoin Forum
June 16, 2025, 02:28:08 PM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to calculate PrivateKey from NONCE R and Z  (Read 150 times)
Nivison (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
September 21, 2022, 03:05:40 PM
 #1

I know how to do it when we have R,S,Z and K
But i want to know how to calculate the private key When you have the R,Z and K but don't have the S value.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3710
Merit: 7186


Just writing some code


View Profile WWW
September 21, 2022, 03:34:47 PM
 #2

You can't. s is the part of the signature that actually "contains" all of the important components such as the private key. The formula for computing the private key requires s as none of the other components involves the private key in their calculation.

BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1792
Merit: 8670


View Profile
September 21, 2022, 03:52:09 PM
Merited by NotATether (1)
 #3

Signature is [r, s], with
  • r being the x-coordinate of k*G, and
  • s being equal with k^(-1) * (z + r * d)

Since you don't know d, and you neither know s, you can't work out the private key.
NotATether
Legendary
*
Offline Offline

Activity: 2002
Merit: 8606


Search? Try talksearch.io


View Profile WWW
September 22, 2022, 12:43:52 PM
Last edit: September 22, 2022, 01:06:51 PM by NotATether
 #4

It's an equation with four variables, you can't solve it if you only have two of them as BlackHatCoiner and achow pointed out, just how it works in any other kind of equation.


R is just a transformation of the nonce - if you know that, you can already compute R without knowing it.

██
██
██
██
██
██
██
██
██
██
██
██
██
... LIVECASINO.io    Play Live Games with up to 20% cashback!...██
██
██
██
██
██
██
██
██
██
██
██
██
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!