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

Method MakeScripts

src/script/descriptor.cpp:1463–1468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1461{
1462protected:
1463 std::vector<CScript> MakeScripts(const std::vector<CPubKey>&, std::span<const CScript> scripts, FlatSigningProvider& out) const override
1464 {
1465 auto ret = Vector(GetScriptForDestination(WitnessV0ScriptHash(scripts[0])));
1466 if (ret.size()) out.scripts.emplace(CScriptID(scripts[0]), scripts[0]);
1467 return ret;
1468 }
1469public:
1470 WSHDescriptor(std::unique_ptr<DescriptorImpl> desc) : DescriptorImpl({}, std::move(desc), "wsh") {}
1471 std::optional<OutputType> GetOutputType() const override { return OutputType::BECH32; }

Callers

nothing calls this directly

Calls 6

VectorFunction · 0.85
GetScriptForDestinationFunction · 0.85
WitnessV0ScriptHashClass · 0.85
CScriptIDClass · 0.85
emplaceMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected