MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetPubKey

Method GetPubKey

src/wallet/crypter.cpp:278–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278bool CCryptoKeyStore::GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const
279{
280 LOCK(cs_KeyStore);
281 if (!IsCrypted())
282 return CBasicKeyStore::GetPubKey(address, vchPubKeyOut);
283
284 CryptedKeyMap::const_iterator mi = mapCryptedKeys.find(address);
285 if (mi != mapCryptedKeys.end())
286 {
287 vchPubKeyOut = (*mi).second.first;
288 return true;
289 }
290 // Check for watch-only pubkeys
291 return CBasicKeyStore::GetPubKey(address, vchPubKeyOut);
292}
293
294std::set<CKeyID> CCryptoKeyStore::GetKeys() const
295{

Callers 15

operator()Method · 0.45
AddKeypathToMapFunction · 0.45
EncryptKeysMethod · 0.45
GetWalletAddressesForKeyFunction · 0.45
importprivkeyFunction · 0.45
importwalletFunction · 0.45
rpcdump.cppFile · 0.45
GenerateNewKeyMethod · 0.45
DeriveNewChildKeyMethod · 0.45
DeriveNewSeedMethod · 0.45
AddKeyFunction · 0.45
BOOST_FIXTURE_TEST_CASEFunction · 0.45

Calls 3

GetPubKeyFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by 4

AddKeyFunction · 0.36
BOOST_FIXTURE_TEST_CASEFunction · 0.36
ListCoinsTestingSetupMethod · 0.36