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

Function LookupHelper

src/script/signingprovider.cpp:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 5

GetCScriptMethod · 0.85
GetPubKeyMethod · 0.85
GetKeyOriginMethod · 0.85
GetKeyMethod · 0.85
GetTaprootSpendDataMethod · 0.85

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected