MCPcopy Create free account
hub / github.com/ElementsProject/elements / HaveKey

Method HaveKey

src/wallet/scriptpubkeyman.cpp:984–991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

982}
983
984bool LegacyScriptPubKeyMan::HaveKey(const CKeyID &address) const
985{
986 LOCK(cs_KeyStore);
987 if (!m_storage.HasEncryptionKeys()) {
988 return FillableSigningProvider::HaveKey(address);
989 }
990 return mapCryptedKeys.count(address) > 0;
991}
992
993bool LegacyScriptPubKeyMan::GetKey(const CKeyID &address, CKey& keyOut) const
994{

Callers 5

HaveKeysFunction · 0.45
IsMineInnerFunction · 0.45
HaveKeyFunction · 0.45
initpegoutwalletFunction · 0.45
FUZZ_TARGET_INITFunction · 0.45

Calls 3

HaveKeyFunction · 0.85
HasEncryptionKeysMethod · 0.80
countMethod · 0.80

Tested by 1

FUZZ_TARGET_INITFunction · 0.36