This PR allows for key origin data as defined by the descriptors document to be imported to the wallet when importing a descriptor using importmulti
. This allows the walletprocesspsbt
to include the BIP 32 derivation paths for keys that it is watching that are from a different HD wallet.
In order to make this easier to use, a new field hdmasterkeyfingerprint
has been added to getaddressinfo
. Additionally I have removed hdmasterkeyid
as was planned. I think that this API change is fine since it was going to be removed in 0.18 anyways. CKeyMetadata
has also been extended to store key origin info to facilitate this.