The scenario is this:
User has a cold storage wallet and will import their cold storage xpub into Bitcoin Core using getdescriptorinfo
and importmulti
. User wants to only use the keys associated with the imported xpub as a watch-only wallet and wants to exclude all existing keys in the wallet so as to avoid getting an address not associated with their xpub when calling getnewaddress
or getrawchangeaddress
.
Would the best way to go about this be to create a blank wallet first with:
createwallet "Cold Storage", disable_private_keys: true, blank: true
?
Or is there a simpler way to specify which addresses are generated when calling getnewaddress
?
getnewaddress
I will be guaranteed to get one of my cold storage addresses. Its a lot to experiment with and I am building an app so want to make sure I do it 100% correctly. I will edit the original question to clarify. – Fontaine May 10 '19 at 15:02importmulti
which can (albeit in a roundabout way) import any kind of derivation. – Pieter Wuille May 10 '19 at 17:01