Bitcoin Forum
May 09, 2024, 12:12:35 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: if I reveal say one private key can the rest be reverse engineered?  (Read 775 times)
jubalix (OP)
Legendary
*
Offline Offline

Activity: 2618
Merit: 1022


View Profile WWW
June 13, 2016, 11:03:17 AM
 #1

as per the subject.

Admitted Practicing Lawyer::BTC/Crypto Specialist. B.Engineering/B.Laws

https://www.binance.com/?ref=10062065
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715213555
Hero Member
*
Offline Offline

Posts: 1715213555

View Profile Personal Message (Offline)

Ignore
1715213555
Reply with quote  #2

1715213555
Report to moderator
1715213555
Hero Member
*
Offline Offline

Posts: 1715213555

View Profile Personal Message (Offline)

Ignore
1715213555
Reply with quote  #2

1715213555
Report to moderator
1715213555
Hero Member
*
Offline Offline

Posts: 1715213555

View Profile Personal Message (Offline)

Ignore
1715213555
Reply with quote  #2

1715213555
Report to moderator
Quickseller
Copper Member
Legendary
*
Offline Offline

Activity: 2870
Merit: 2300


View Profile
June 14, 2016, 03:04:14 AM
 #2

as per the subject.
yes. If you are using any kind of deterministic wallet then you should never reveal any of your private keys as they could potentially be used to calculate the rest of your private keys of your wallet. 
jubalix (OP)
Legendary
*
Offline Offline

Activity: 2618
Merit: 1022


View Profile WWW
June 14, 2016, 08:33:35 AM
 #3

ok so this make it not so good for IPO's like madesafe as thier wallet I think requires you to use the private key to prove owneship.

I for one would not trust giving my private key to some other system like that...


Does that seem reasonable?

Admitted Practicing Lawyer::BTC/Crypto Specialist. B.Engineering/B.Laws

https://www.binance.com/?ref=10062065
ranochigo
Legendary
*
Offline Offline

Activity: 2968
Merit: 4170



View Profile
June 15, 2016, 05:47:51 AM
 #4

ok so this make it not so good for IPO's like madesafe as thier wallet I think requires you to use the private key to prove owneship.

I for one would not trust giving my private key to some other system like that...


Does that seem reasonable?
AFAIK, there isn't any risk of exposing your private key only. There is a risk however, when you expose both the master public key and a child private key, it is possible to calculate the master private key and get your Bitcoins stolen.[1]

I wouldn't recommend giving private keys out without a need. You can prove your ownership by signing a message and that is far less risky.

[1] https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#Security

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
RealBitcoin
Hero Member
*****
Offline Offline

Activity: 854
Merit: 1009


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


View Profile
June 25, 2016, 12:42:15 AM
 #5

ok so this make it not so good for IPO's like madesafe as thier wallet I think requires you to use the private key to prove owneship.

I for one would not trust giving my private key to some other system like that...


Does that seem reasonable?
AFAIK, there isn't any risk of exposing your private key only. There is a risk however, when you expose both the master public key and a child private key, it is possible to calculate the master private key and get your Bitcoins stolen.[1]

I wouldn't recommend giving private keys out without a need. You can prove your ownership by signing a message and that is far less risky.

[1] https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#Security

But isnt it hardened?

Quote
This means that extended public keys must be treated more carefully than regular public keys. It is also the reason for the existence of hardened keys, and why they are used for the account level in the tree. This way, a leak of account-specific (or below) private key never risks compromising the master or other accounts.

I think this is the code that stretches is

Quote

  def mpk_from_seed(klass, seed):
        secexp = klass.stretch_key(seed)
        master_private_key = ecdsa.SigningKey.from_secret_exponent( secexp, curve = SECP256k1 )
        master_public_key = master_private_key.get_verifying_key().to_string().encode('hex')
        return master_public_key

    @classmethod
    def stretch_key(self,seed):
        oldseed = seed
        for i in range(100000):
            seed = hashlib.sha256(seed + oldseed).digest()
return string_to_number( seed )

So doest this protect the master private key from being guessed from child private key + master public key?

RealBitcoin
Hero Member
*****
Offline Offline

Activity: 854
Merit: 1009


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


View Profile
June 30, 2016, 10:30:53 PM
 #6

This is really important, can somebody please answer to my above post?

dabura667
Sr. Member
****
Offline Offline

Activity: 475
Merit: 252


View Profile
July 03, 2016, 03:23:30 PM
 #7

This is really important, can somebody please answer to my above post?

The answer is no.

Child private key + parent master public key will let you find the parent master private key.

The code you have pasted is for the old pre-2.0 wallets (it's left in there for backwards compatibility)

My Tip Address:
1DXcHTJS2DJ3xDoxw22wCt11FeAsgfzdBU
RealBitcoin
Hero Member
*****
Offline Offline

Activity: 854
Merit: 1009


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


View Profile
July 04, 2016, 08:31:11 AM
 #8

This is really important, can somebody please answer to my above post?

The answer is no.

Child private key + parent master public key will let you find the parent master private key.

The code you have pasted is for the old pre-2.0 wallets (it's left in there for backwards compatibility)

So pre-2.0 wallets are more secure by performing that additional computation? Why were 2.0+ wallets weakened then?

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!