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

Method MakeScripts

src/script/descriptor.cpp:733–738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731{
732protected:
733 std::vector<CScript> MakeScripts(const std::vector<CPubKey>& keys, Span<const CScript>, FlatSigningProvider& out) const override
734 {
735 CKeyID id = keys[0].GetID();
736 out.pubkeys.emplace(id, keys[0]);
737 return Vector(GetScriptForDestination(PKHash(id)));
738 }
739public:
740 PKHDescriptor(std::unique_ptr<PubkeyProvider> prov) : DescriptorImpl(Vector(std::move(prov)), "pkh") {}
741 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