Bitcoin Forum
July 07, 2024, 12:15:03 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to calculate PrivateKey from NONCE R and Z  (Read 143 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: 3444
Merit: 6748


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: 1568
Merit: 7689


Protocols over bureaucrats


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.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
NotATether
Legendary
*
Offline Offline

Activity: 1652
Merit: 6966


In memory of o_e_l_e_o


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.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
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!