Bitcoin Forum
November 12, 2024, 02:24:57 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is the transaction signature random number deterministically generated?  (Read 536 times)
RealBitcoin (OP)
Hero Member
*****
Offline Offline

Activity: 854
Merit: 1009


JAYCE DESIGNS - http://bit.ly/1tmgIwK


View Profile
April 14, 2016, 11:51:39 AM
 #1

Is the signed transaction signature that should always be random,is that deterministically generated in electrum?

It is called the "k" value, and when the address is reused, it always generates a new one when a transaction is signed.

If the RNG is compromized, then after many key reuses the private key is compromized too.



Is this k value deterministically generated in electrum wallets?

RealBitcoin (OP)
Hero Member
*****
Offline Offline

Activity: 854
Merit: 1009


JAYCE DESIGNS - http://bit.ly/1tmgIwK


View Profile
April 19, 2016, 01:39:32 AM
 #2

bump, please answer, this is important!

RealBitcoin (OP)
Hero Member
*****
Offline Offline

Activity: 854
Merit: 1009


JAYCE DESIGNS - http://bit.ly/1tmgIwK


View Profile
April 19, 2016, 04:21:30 AM
 #3

bump, please answer, this is important!
Good question.  Have you Googled on this topic?  BIP32, k values, etc. ?
My understanding is that only one Private - Public key pair is created with BIP32.  From these, decendents are created.  Therefore, the "k" value occurs only once.


I didnt know there was a BIP in it. So i have to look it up, but i`d prefer if somebody with electrum code knowledge would answer it.

There is a K value created every time a transaction occurs from a wallet. Thats how a transaction chain is formed, and it links your previous spendings from thad address to the new one.

And of course if the RNG is compromized, the K value will leak info about the private key.



So its imperative to have a random, yet deterministic signature for every transaction, to not rely on flawed hardware RNG


Here was a question asked 1 year ago, and back then the wallets havent got it:
http://bitcoin.stackexchange.com/questions/36127/problems-with-deterministic-ecdsa-based-on-rfc6979-in-bitcoin

RealBitcoin (OP)
Hero Member
*****
Offline Offline

Activity: 854
Merit: 1009


JAYCE DESIGNS - http://bit.ly/1tmgIwK


View Profile
April 19, 2016, 04:31:21 AM
 #4

Actually i found the answer:

It is called: RFC6979 implementation

And it was added in electrum 1.9 Cheesy

https://bitcointalk.org/index.php?topic=324614.0



Shit I always answer my own questions Cheesy

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!