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

Method GetPubKey

src/wallet/crypter.cpp:243–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243bool CCryptoKeyStore::GetPubKey(const CKeyID& keyid, CPubKey& vchPubKeyOut, bool isMiner) const {
244 LOCK(cs_KeyStore);
245
246 if (isMiner)
247 return CKeyStore::GetPubKey(keyid, vchPubKeyOut, isMiner);
248
249 if (!IsEncrypted())
250 return CKeyStore::GetPubKey(keyid, vchPubKeyOut, isMiner);
251
252 CryptedKeyMap::const_iterator mi = mapCryptedKeys.find(keyid);
253 if (mi != mapCryptedKeys.end()) {
254 vchPubKeyOut = (*mi).second.first;
255 return true;
256 }
257
258 return false;
259}
260
261bool CCryptoKeyStore::GetKeyCombi(const CKeyID& keyid, CKeyCombi& keyCombiOut) const {
262

Callers 6

UnlockMethod · 0.45
AddKeyCombiMethod · 0.45
EncryptKeysMethod · 0.45
AddKeyMethod · 0.45
RemoveKeyMethod · 0.45
LoadWalletMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected