Bitcoin Forum
November 09, 2024, 03:52:19 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Deterministic wallet as hash(seed+index) is that OK?  (Read 1445 times)
Kazimir (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1011



View Profile
August 22, 2014, 10:04:35 AM
 #1

Would it be OK from a technical and security point of view, to have deterministic wallet like this:

1. Randomly generate one initial secret seed. For argument's sake let's say this has 'enough' entropy.

2. Generate private keys as hashes from this seed + a counter. 'Hash' could be SHA256 or SHA3-256 or a HMAC or preferably some 256-bit KDF.

Other than the disadvantage of not having type 2 determinism (ability to generate subsequent addresses without having to generate their corresponding private keys first), is there anything bad, wrong, or flawed with this approach?

In theory, there's no difference between theory and practice. In practice, there is.
Insert coin(s): 1KazimirL9MNcnFnoosGrEkmMsbYLxPPob
dabura667
Sr. Member
****
Offline Offline

Activity: 475
Merit: 252


View Profile
August 22, 2014, 10:50:30 AM
 #2

You just explained how hardened keys work in BIP32.

Yes, you can do this.

My Tip Address:
1DXcHTJS2DJ3xDoxw22wCt11FeAsgfzdBU
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!