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

Method GetPubKey

src/keystore.cpp:35–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35bool CBasicKeyStore::GetPubKey(const CKeyID &address, CPubKey &vchPubKeyOut) const
36{
37 CKey key;
38 if (!GetKey(address, key)) {
39 LOCK(cs_KeyStore);
40 WatchKeyMap::const_iterator it = mapWatchKeys.find(address);
41 if (it != mapWatchKeys.end()) {
42 vchPubKeyOut = it->second;
43 return true;
44 }
45 return false;
46 }
47 vchPubKeyOut = key.GetPubKey();
48 return true;
49}
50
51bool CBasicKeyStore::AddKeyPubKey(const CKey& key, const CPubKey &pubkey)
52{

Callers 1

HaveKeyFunction · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected