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

Function HaveKey

src/keystore.cpp:199–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199bool HaveKey(const CKeyStore& store, const CKey& key)
200{
201 CKey key2;
202 key2.Set(key.begin(), key.end(), !key.IsCompressed());
203 return store.HaveKey(key.GetPubKey().GetID()) || store.HaveKey(key2.GetPubKey().GetID());
204}

Callers 5

sethdseedFunction · 0.85
HaveKeyMethod · 0.85
DeriveNewChildKeyMethod · 0.85
ReserveKeyFromKeyPoolMethod · 0.85

Calls 7

GetIDMethod · 0.80
SetMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
IsCompressedMethod · 0.45
HaveKeyMethod · 0.45
GetPubKeyMethod · 0.45

Tested by

no test coverage detected