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

Function HaveKeys

src/wallet/scriptpubkeyman.cpp:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82bool HaveKeys(const std::vector<valtype>& pubkeys, const LegacyScriptPubKeyMan& keystore)
83{
84 for (const valtype& pubkey : pubkeys) {
85 CKeyID keyID = CPubKey(pubkey).GetID();
86 if (!keystore.HaveKey(keyID)) return false;
87 }
88 return true;
89}
90
91//! Recursively solve script and return spendable/watchonly/invalid status.
92//!

Callers 1

IsMineInnerFunction · 0.85

Calls 3

CPubKeyClass · 0.50
GetIDMethod · 0.45
HaveKeyMethod · 0.45

Tested by

no test coverage detected