|
|
@ -60,9 +60,9 @@ protected: |
|
|
|
WatchOnlySet setWatchOnly; |
|
|
|
WatchOnlySet setWatchOnly; |
|
|
|
|
|
|
|
|
|
|
|
public: |
|
|
|
public: |
|
|
|
bool AddKeyPubKey(const CKey& key, const CPubKey &pubkey); |
|
|
|
bool AddKeyPubKey(const CKey& key, const CPubKey &pubkey) override; |
|
|
|
bool GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const; |
|
|
|
bool GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const override; |
|
|
|
bool HaveKey(const CKeyID &address) const |
|
|
|
bool HaveKey(const CKeyID &address) const override |
|
|
|
{ |
|
|
|
{ |
|
|
|
bool result; |
|
|
|
bool result; |
|
|
|
{ |
|
|
|
{ |
|
|
@ -71,7 +71,7 @@ public: |
|
|
|
} |
|
|
|
} |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
void GetKeys(std::set<CKeyID> &setAddress) const |
|
|
|
void GetKeys(std::set<CKeyID> &setAddress) const override |
|
|
|
{ |
|
|
|
{ |
|
|
|
setAddress.clear(); |
|
|
|
setAddress.clear(); |
|
|
|
{ |
|
|
|
{ |
|
|
@ -84,7 +84,7 @@ public: |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
bool GetKey(const CKeyID &address, CKey &keyOut) const |
|
|
|
bool GetKey(const CKeyID &address, CKey &keyOut) const override |
|
|
|
{ |
|
|
|
{ |
|
|
|
{ |
|
|
|
{ |
|
|
|
LOCK(cs_KeyStore); |
|
|
|
LOCK(cs_KeyStore); |
|
|
@ -97,14 +97,14 @@ public: |
|
|
|
} |
|
|
|
} |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
virtual bool AddCScript(const CScript& redeemScript); |
|
|
|
virtual bool AddCScript(const CScript& redeemScript) override; |
|
|
|
virtual bool HaveCScript(const CScriptID &hash) const; |
|
|
|
virtual bool HaveCScript(const CScriptID &hash) const override; |
|
|
|
virtual bool GetCScript(const CScriptID &hash, CScript& redeemScriptOut) const; |
|
|
|
virtual bool GetCScript(const CScriptID &hash, CScript& redeemScriptOut) const override; |
|
|
|
|
|
|
|
|
|
|
|
virtual bool AddWatchOnly(const CScript &dest); |
|
|
|
virtual bool AddWatchOnly(const CScript &dest) override; |
|
|
|
virtual bool RemoveWatchOnly(const CScript &dest); |
|
|
|
virtual bool RemoveWatchOnly(const CScript &dest) override; |
|
|
|
virtual bool HaveWatchOnly(const CScript &dest) const; |
|
|
|
virtual bool HaveWatchOnly(const CScript &dest) const override; |
|
|
|
virtual bool HaveWatchOnly() const; |
|
|
|
virtual bool HaveWatchOnly() const override; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
typedef std::vector<unsigned char, secure_allocator<unsigned char> > CKeyingMaterial; |
|
|
|
typedef std::vector<unsigned char, secure_allocator<unsigned char> > CKeyingMaterial; |
|
|
|