From eab63bc264a35cf21738e8535773e3d36524c3fe Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Tue, 6 Nov 2018 09:23:37 -0500 Subject: Store key origin info in key metadata Store the master key fingerprint and derivation path in the key metadata. hdKeypath is kept to indicate the seed and for backwards compatibility, but all key derivation path output uses the key origin info instead of hdKeypath. --- src/wallet/rpcdump.cpp | 3 ++- src/wallet/rpcwallet.cpp | 6 +++-- src/wallet/wallet.cpp | 63 +++++++++++++++++++++++++++++++++++++++--------- src/wallet/wallet.h | 7 +++++- src/wallet/walletdb.cpp | 8 ++++++ src/wallet/walletdb.h | 15 ++++++++++-- 6 files changed, 85 insertions(+), 17 deletions(-) (limited to 'src/wallet') diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp index ec49efcf22..8ed912ed1e 100644 --- a/src/wallet/rpcdump.cpp +++ b/src/wallet/rpcdump.cpp @@ -13,6 +13,7 @@ #include