MCPcopy Create free account
hub / github.com/LUX-Core/lux / GetPubKey

Method GetPubKey

src/crypter.cpp:341–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341bool CCryptoKeyStore::GetPubKey(const CKeyID& address, CPubKey& vchPubKeyOut) const
342{
343 LOCK(cs_KeyStore);
344 if (!IsCrypted())
345 return CBasicKeyStore::GetPubKey(address, vchPubKeyOut);
346
347 CryptedKeyMap::const_iterator mi = mapCryptedKeys.find(address);
348 if (mi != mapCryptedKeys.end()) {
349 vchPubKeyOut = (*mi).second.first;
350 return true;
351 }
352 // Check for watch-only pubkeys
353 return CBasicKeyStore::GetPubKey(address, vchPubKeyOut);
354}
355#if 0
356std::set<CKeyID> CCryptoKeyStore::GetKeys() const
357{

Callers 2

UnlockMethod · 0.45
EncryptKeysMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected