mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Merge #14021: Import key origin data through descriptors in importmulti
cb3511b9dAdd release notes for importing key origin info change (Andrew Chow)4c75a69f3Test importing descriptors with key origin information (Andrew Chow)02d6586d7Import KeyOriginData when importing descriptors (Andrew Chow)3d235dff5Implement a function to add KeyOriginInfo to a wallet (Andrew Chow)eab63bc26Store key origin info in key metadata (Andrew Chow)345bff601Remove hdmasterkeyid (Andrew Chow)bac8c676aAdd a method to CWallet to write just CKeyMetadata (Andrew Chow)e7652d3f6Add WriteHDKeypath function and move *HDKeypath to util/bip32.{h,cpp} (Andrew Chow)c45415f73Refactor keymetadata writing to a separate method (Andrew Chow) Pull request description: 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. Tree-SHA512: 9c7794f3c793da57e23c5abbdc3d58779ee9dea3d53168bb86c0643a4ad5a11a446264961e2f772f35eea645048cb60954ed58050002caee4e43cd9f51215097
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include <script/sign.h>
|
||||
#include <script/standard.h>
|
||||
#include <uint256.h>
|
||||
#include <util/bip32.h>
|
||||
#include <util/strencodings.h>
|
||||
#include <validation.h>
|
||||
#include <validationinterface.h>
|
||||
|
||||
Reference in New Issue
Block a user