I'm new to bitcoin (core) wallet. I recently begin to use it to store some BTC. I'm using the latest version 0.21.0.
I have some basic questions on the keys/addresses it generated. I use command getnewaddress
3 times, the last item has "hdkeypath": "m/0'/0'/2"
, and I dumped its private key, and put some BTC in this address.
What's the relationship between the first pkey/addr (the one with
hdkeypath: m/0'/0'/0
and the third onem/0'/0'/2
? Does the first key/addr is the master (key) who can recover all later keys generated in the wallet.I only backup the private key of
m/0'/0'/2
, and removed the whole wallet (the .dat file). Is there a risk of this method? Since I only choose to use this key/addr to receive and store BTC.I later create a new wallet and restore this
m/0'/0'/2
key with commandimportprivkey
. and send some BTC to other people, and found it generate a CHANGE addr, so I also backup this new addr's private key too. Since I mainly use thism/0'/0'/2
to store long term BTC, and will not use it to make a lot transactions. So I keep the privatekey ofm/0'/0'/2
, and keep backups priv keys of change addresses it generated, then drop all wallet files. Is this method enough to restore all my balances in a futher day.Can the private key of
m/0'/0'/2
be used to recover the change addresses' private keys? (What is the master seed of HD wallet, it is the private key ofm/0'/0'/0
?)
Thanks in advance