Bitcoin Forum
May 02, 2024, 08:02:43 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: HD wallets with sx tools  (Read 648 times)
ChazM (OP)
Newbie
*
Offline Offline

Activity: 50
Merit: 0



View Profile
January 13, 2015, 02:26:15 AM
Last edit: January 13, 2015, 02:40:57 AM by ChazM
 #1

I'm attempting to play around with HD wallets by building BIP44 wallets. I'm just wondering if I have the syntax correct. If I want to create receiving addresses as m/44'/0'/0'/0/address - I would create the extended private key for the hardened grandparent, generate the xpub for its child account and derive receiving addresses from that?

Generating the account's extended private key m/44'/0'/0':
Code:
#: cat m | sx hd-priv 44 --hard | sx hd-priv 0 --hard | sx hd-priv 0 --hard > xprv
Generate the receiving address xpub to be stored somewhere on a server:
Code:
#: cat xprv | sx hd-pub 0 > xpub
Generate receiving address from that xpub where i is the address number:
Code:
#: cat xpub | sx hd-pub i | sx hd-to-address 
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!