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
?