MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / Expand

Method Expand

src/script/descriptor.cpp:221–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219 return true;
220 }
221 bool Expand(int pos, const SigningProvider& arg, std::vector<CScript>& output_scripts, FlatSigningProvider& out) const override
222 {
223 CPubKey key;
224 if (!m_provider->GetPubKey(pos, arg, key)) return false;
225 output_scripts = std::vector<CScript>{m_script_fn(key)};
226 out.pubkeys.emplace(key.GetID(), std::move(key));
227 return true;
228 }
229};
230
231CScript P2PKHGetScript(const CPubKey& pubkey) { return GetScriptForDestination(pubkey.GetID()); }

Callers

nothing calls this directly

Calls 2

GetIDMethod · 0.80
GetPubKeyMethod · 0.45

Tested by

no test coverage detected