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

Method GetSigningProvider

src/wallet/scriptpubkeyman.cpp:2053–2065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2051}
2052
2053std::unique_ptr<FlatSigningProvider> DescriptorScriptPubKeyMan::GetSigningProvider(const CScript& script, bool include_private) const
2054{
2055 LOCK(cs_desc_man);
2056
2057 // Find the index of the script
2058 auto it = m_map_script_pub_keys.find(script);
2059 if (it == m_map_script_pub_keys.end()) {
2060 return nullptr;
2061 }
2062 int32_t index = it->second;
2063
2064 return GetSigningProvider(index, include_private);
2065}
2066
2067std::unique_ptr<FlatSigningProvider> DescriptorScriptPubKeyMan::GetSigningProvider(const CPubKey& pubkey) const
2068{

Callers

nothing calls this directly

Calls 4

findMethod · 0.80
ExpandFromCacheMethod · 0.80
ExpandPrivateMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected