| 250 | } |
| 251 | |
| 252 | bool CCryptoKeyStore::HaveKey(const CKeyID &address) const |
| 253 | { |
| 254 | LOCK(cs_KeyStore); |
| 255 | if (!IsCrypted()) { |
| 256 | return CBasicKeyStore::HaveKey(address); |
| 257 | } |
| 258 | return mapCryptedKeys.count(address) > 0; |
| 259 | } |
| 260 | |
| 261 | bool CCryptoKeyStore::GetKey(const CKeyID &address, CKey& keyOut) const |
| 262 | { |
no test coverage detected