| 747 | { |
| 748 | protected: |
| 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 | } |
| 755 | public: |
| 756 | WPKHDescriptor(std::unique_ptr<PubkeyProvider> prov) : DescriptorImpl(Vector(std::move(prov)), "wpkh") {} |
| 757 | std::optional<OutputType> GetOutputType() const override { return OutputType::BECH32; } |
nothing calls this directly
no test coverage detected