diff options
author | Andrew Chow <achow101-github@achow101.com> | 2019-12-05 18:01:30 -0500 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2019-12-06 15:05:08 -0500 |
commit | fd9d6eebc1eabb4675a118d19d38283da2dead39 (patch) | |
tree | 94b31da8c4ac4ee1cd54250ed4417d294446c961 /src/wallet/wallet.h | |
parent | 4ee8a58ce77a1e013af98ceff1cf96bd0e4fd436 (diff) |
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.h | 3 |
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); |