Changeset View
Changeset View
Standalone View
Standalone View
src/keystore.h
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
protected: | protected: | ||||
mutable CCriticalSection cs_KeyStore; | mutable CCriticalSection cs_KeyStore; | ||||
KeyMap mapKeys; | KeyMap mapKeys; | ||||
WatchKeyMap mapWatchKeys; | WatchKeyMap mapWatchKeys; | ||||
ScriptMap mapScripts; | ScriptMap mapScripts; | ||||
WatchOnlySet setWatchOnly; | WatchOnlySet setWatchOnly; | ||||
void ImplicitlyLearnRelatedKeyScripts(const CPubKey &pubkey); | void ImplicitlyLearnRelatedKeyScripts(const CPubKey &pubkey) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_KeyStore); | |||||
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 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; | ||||
bool GetKey(const CKeyID &address, CKey &keyOut) const override; | bool GetKey(const CKeyID &address, CKey &keyOut) const override; | ||||
Show All 22 Lines |