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

Method MakeScripts

src/script/descriptor.cpp:1228–1232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1226{
1227protected:
1228 std::vector<CScript> MakeScripts(const std::vector<CPubKey>& keys, std::span<const CScript>, FlatSigningProvider&) const override
1229 {
1230 CKeyID id = keys[0].GetID();
1231 return Vector(GetScriptForDestination(PKHash(id)));
1232 }
1233public:
1234 PKHDescriptor(std::unique_ptr<PubkeyProvider> prov) : DescriptorImpl(Vector(std::move(prov)), "pkh") {}
1235 std::optional<OutputType> GetOutputType() const override { return OutputType::LEGACY; }

Callers

nothing calls this directly

Calls 4

VectorFunction · 0.85
GetScriptForDestinationFunction · 0.85
PKHashClass · 0.85
GetIDMethod · 0.45

Tested by

no test coverage detected