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

Function HaveKeys

src/wallet/scriptpubkeyman.cpp:68–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68bool HaveKeys(const std::vector<valtype>& pubkeys, const LegacyDataSPKM& keystore)
69{
70 for (const valtype& pubkey : pubkeys) {
71 CKeyID keyID = CPubKey(pubkey).GetID();
72 if (!keystore.HaveKey(keyID)) return false;
73 }
74 return true;
75}
76
77//! Recursively solve script and return spendable/watchonly/invalid status.
78//!

Callers 1

Calls 3

CPubKeyClass · 0.70
GetIDMethod · 0.45
HaveKeyMethod · 0.45

Tested by

no test coverage detected