aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2019-12-05 18:01:30 -0500
committerAndrew Chow <achow101-github@achow101.com>2019-12-06 15:05:08 -0500
commitfd9d6eebc1eabb4675a118d19d38283da2dead39 (patch)
tree94b31da8c4ac4ee1cd54250ed4417d294446c961 /src/wallet/wallet.h
parent4ee8a58ce77a1e013af98ceff1cf96bd0e4fd436 (diff)
downloadbitcoin-fd9d6eebc1eabb4675a118d19d38283da2dead39.tar.xz
Add GetEncryptionKey() and HasEncryptionKeys() to WalletStorage
Adds functions in WalletStorage that allow ScriptPubKeyMans to check and get encryption keys from the wallet.
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index b02e092f0a..82661fcc31 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -1136,6 +1136,9 @@ public:
LegacyScriptPubKeyMan* GetLegacyScriptPubKeyMan() const;
+ const CKeyingMaterial& GetEncryptionKey() const override;
+ bool HasEncryptionKeys() const override;
+
// Temporary LegacyScriptPubKeyMan accessors and aliases.
friend class LegacyScriptPubKeyMan;
std::unique_ptr<LegacyScriptPubKeyMan> m_spk_man = MakeUnique<LegacyScriptPubKeyMan>(*this);