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

Method HaveKey

src/wallet/scriptpubkeyman.cpp:384–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384bool LegacyDataSPKM::HaveKey(const CKeyID &address) const
385{
386 LOCK(cs_KeyStore);
387 if (!m_storage.HasEncryptionKeys()) {
388 return FillableSigningProvider::HaveKey(address);
389 }
390 return mapCryptedKeys.contains(address);
391}
392
393bool LegacyDataSPKM::GetKey(const CKeyID &address, CKey& keyOut) const
394{

Callers 4

HaveKeysFunction · 0.45
GetSigningProviderMethod · 0.45
key.cppFile · 0.45

Calls 2

HasEncryptionKeysMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected