|
|
@ -25,7 +25,6 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
//! Add a key to the store.
|
|
|
|
//! Add a key to the store.
|
|
|
|
virtual bool AddKeyPubKey(const CKey &key, const CPubKey &pubkey) =0;
|
|
|
|
virtual bool AddKeyPubKey(const CKey &key, const CPubKey &pubkey) =0;
|
|
|
|
virtual bool AddKey(const CKey &key);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//! Check whether a key corresponding to a given address is present in the store.
|
|
|
|
//! Check whether a key corresponding to a given address is present in the store.
|
|
|
|
virtual bool HaveKey(const CKeyID &address) const =0;
|
|
|
|
virtual bool HaveKey(const CKeyID &address) const =0;
|
|
|
@ -64,6 +63,7 @@ protected:
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
bool AddKeyPubKey(const CKey& key, const CPubKey &pubkey) override;
|
|
|
|
bool AddKeyPubKey(const CKey& key, const CPubKey &pubkey) override;
|
|
|
|
|
|
|
|
bool AddKey(const CKey &key) { return AddKeyPubKey(key, key.GetPubKey()); }
|
|
|
|
bool GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const override;
|
|
|
|
bool GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const override;
|
|
|
|
bool HaveKey(const CKeyID &address) const override;
|
|
|
|
bool HaveKey(const CKeyID &address) const override;
|
|
|
|
std::set<CKeyID> GetKeys() const override;
|
|
|
|
std::set<CKeyID> GetKeys() const override;
|
|
|
|