Bitcoin Forum
April 16, 2024, 03:16:21 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Deterministic wallet as hash(seed+index) is that OK?  (Read 1415 times)
Kazimir (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1001



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
1713280581
Hero Member
*
Offline Offline

Posts: 1713280581

View Profile Personal Message (Offline)

Ignore
1713280581
Reply with quote  #2

1713280581
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
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!