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

Method MakeScripts

src/script/descriptor.cpp:1261–1265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1259{
1260protected:
1261 std::vector<CScript> MakeScripts(const std::vector<CPubKey>& keys, std::span<const CScript>, FlatSigningProvider&) const override
1262 {
1263 CKeyID id = keys[0].GetID();
1264 return Vector(GetScriptForDestination(WitnessV0KeyHash(id)));
1265 }
1266public:
1267 WPKHDescriptor(std::unique_ptr<PubkeyProvider> prov) : DescriptorImpl(Vector(std::move(prov)), "wpkh") {}
1268 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