| 152 | virtual bool AddCryptedKey(const CPubKey& vchPubKey, const vector<unsigned char>& vchCryptedSecret); |
| 153 | bool AddKeyCombi(const CKeyID& keyId, const CKeyCombi& keyCombi); |
| 154 | bool HasKey(const CKeyID& address) const { |
| 155 | { |
| 156 | LOCK(cs_KeyStore); |
| 157 | if (!IsEncrypted()) |
| 158 | return CBasicKeyStore::HasKey(address); |
| 159 | return mapCryptedKeys.count(address) > 0; |
| 160 | } |
| 161 | return false; |
| 162 | } |
| 163 | bool GetKey(const CKeyID& address, CKey& keyOut, bool IsMiner = false) const; |
| 164 | |
| 165 | bool GetPubKey(const CKeyID& address, CPubKey& vchPubKeyOut, bool IsMiner = false) const; |
no test coverage detected