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