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

Function LookupHelper

src/script/signingprovider.cpp:20–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19template<typename M, typename K, typename V>
20bool LookupHelper(const M& map, const K& key, V& value)
21{
22 auto it = map.find(key);
23 if (it != map.end()) {
24 value = it->second;
25 return true;
26 }
27 return false;
28}
29
30bool HidingSigningProvider::GetCScript(const CScriptID& scriptid, CScript& script) const
31{

Callers 8

GetCScriptMethod · 0.85
GetPubKeyMethod · 0.85
GetKeyOriginMethod · 0.85
HaveKeyMethod · 0.85
GetKeyMethod · 0.85
GetTaprootSpendDataMethod · 0.85
GetTaprootBuilderMethod · 0.85

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected