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

Method MakeScripts

src/script/descriptor.cpp:749–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

747{
748protected:
749 std::vector<CScript> MakeScripts(const std::vector<CPubKey>& keys, Span<const CScript>, FlatSigningProvider& out) const override
750 {
751 CKeyID id = keys[0].GetID();
752 out.pubkeys.emplace(id, keys[0]);
753 return Vector(GetScriptForDestination(WitnessV0KeyHash(id)));
754 }
755public:
756 WPKHDescriptor(std::unique_ptr<PubkeyProvider> prov) : DescriptorImpl(Vector(std::move(prov)), "wpkh") {}
757 std::optional<OutputType> GetOutputType() const override { return OutputType::BECH32; }

Callers

nothing calls this directly

Calls 4

VectorFunction · 0.85
GetScriptForDestinationFunction · 0.85
WitnessV0KeyHashClass · 0.85
GetIDMethod · 0.45

Tested by

no test coverage detected