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

Method GetPubKey

src/wallet.cpp:245–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245bool CWallet::GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const
246{
247 LOCK(cs_wallet);
248 std::map<CKeyID, CHDPubKey>::const_iterator mi = mapHdPubKeys.find(address);
249 if (mi != mapHdPubKeys.end())
250 {
251 const CHDPubKey &hdPubKey = (*mi).second;
252 vchPubKeyOut = hdPubKey.extPubKey.pubkey;
253 return true;
254 }
255 else
256 return CCryptoKeyStore::GetPubKey(address, vchPubKeyOut);
257}
258
259bool CWallet::GetKey(const CKeyID &address, CKey& keyOut) const
260{

Callers 4

GenerateNewKeyMethod · 0.45
DeriveNewChildKeyMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected