| 731 | { |
| 732 | protected: |
| 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 | } |
| 739 | public: |
| 740 | PKHDescriptor(std::unique_ptr<PubkeyProvider> prov) : DescriptorImpl(Vector(std::move(prov)), "pkh") {} |
| 741 | std::optional<OutputType> GetOutputType() const override { return OutputType::LEGACY; } |
nothing calls this directly
no test coverage detected