| 816 | SHDescriptor(std::unique_ptr<DescriptorImpl> desc) : DescriptorImpl({}, std::move(desc), "sh") {} |
| 817 | |
| 818 | std::optional<OutputType> GetOutputType() const override |
| 819 | { |
| 820 | assert(m_subdescriptor_args.size() == 1); |
| 821 | if (m_subdescriptor_args[0]->GetOutputType() == OutputType::BECH32) return OutputType::P2SH_SEGWIT; |
| 822 | return OutputType::LEGACY; |
| 823 | } |
| 824 | bool IsSingleType() const final { return true; } |
| 825 | }; |
| 826 |