Bitcoin Forum
December 12, 2017, 11:58:31 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How dows wallet seed restore work?  (Read 160 times)
paduser
Sr. Member
****
Offline Offline

Activity: 419


View Profile
November 11, 2017, 07:54:35 PM
 #1

Hi,

I'm looking for some anwsers that I can't figure out my self.

Type 1 deterministic wallet use SHA256(string + n) n=numbers of adress since creation to restore adresses.
Does a Type 2 hierarchical deterministic wallet the same? Just with a seed generated from 12 words out of a list and some mechanics to slow down bruteforce?

Hope someone can help me or point me in the right direction.
Thanks
1513079911
Hero Member
*
Offline Offline

Posts: 1513079911

View Profile Personal Message (Offline)

Ignore
1513079911
Reply with quote  #2

1513079911
Report to moderator
1513079911
Hero Member
*
Offline Offline

Posts: 1513079911

View Profile Personal Message (Offline)

Ignore
1513079911
Reply with quote  #2

1513079911
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513079911
Hero Member
*
Offline Offline

Posts: 1513079911

View Profile Personal Message (Offline)

Ignore
1513079911
Reply with quote  #2

1513079911
Report to moderator
1513079911
Hero Member
*
Offline Offline

Posts: 1513079911

View Profile Personal Message (Offline)

Ignore
1513079911
Reply with quote  #2

1513079911
Report to moderator
1513079911
Hero Member
*
Offline Offline

Posts: 1513079911

View Profile Personal Message (Offline)

Ignore
1513079911
Reply with quote  #2

1513079911
Report to moderator
odolvlobo
Legendary
*
Offline Offline

Activity: 1974



View Profile
November 12, 2017, 04:39:32 AM
 #2

Hi,

I'm looking for some anwsers that I can't figure out my self.

Type 1 deterministic wallet use SHA256(string + n) n=numbers of adress since creation to restore adresses.
Does a Type 2 hierarchical deterministic wallet the same? Just with a seed generated from 12 words out of a list and some mechanics to slow down bruteforce?

Hope someone can help me or point me in the right direction.
Thanks

The 12 word seed is used directly to generate all the private keys that the wallet will ever use. It works something like this: the first private key is generated by SHA256(seed). The second private key is generated by SHA256(first private key). The third private key is generated by SHA256(second private key), and so on ... but in reality, it is more complicated than that.

There is no need for "some mechanics to slow down bruteforce". Each word is from a list of 2048 words, so each word represents 11 bits of entropy, for a total of 132 bits. However 4 bits are a checksum so the actual entropy is 128 bits.

Buy bitcoins with cash from somebody near you: LocalBitcoins
Join an anti-signature campaign: DannyHamilton's ignore list
paduser
Sr. Member
****
Offline Offline

Activity: 419


View Profile
November 12, 2017, 12:05:37 PM
 #3

Thanks for the anwser. You really helped me out.

Quote
but in reality, it is more complicated than that.

So I can't calculate all the private keys manually outside of the wallet software?
odolvlobo
Legendary
*
Offline Offline

Activity: 1974



View Profile
November 12, 2017, 07:20:10 PM
 #4

Thanks for the anwser. You really helped me out.
Quote
but in reality, it is more complicated than that.
So I can't calculate all the private keys manually outside of the wallet software?

This is exactly how it works (for wallets using BIP-32): https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki

Buy bitcoins with cash from somebody near you: LocalBitcoins
Join an anti-signature campaign: DannyHamilton's ignore list
paduser
Sr. Member
****
Offline Offline

Activity: 419


View Profile
November 13, 2017, 07:43:09 PM
 #5

Thanks for the anwser. You really helped me out.
Quote
but in reality, it is more complicated than that.
So I can't calculate all the private keys manually outside of the wallet software?

This is exactly how it works (for wallets using BIP-32): https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki

Thanks
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!