| 713 | const bool m_xonly; |
| 714 | protected: |
| 715 | std::vector<CScript> MakeScripts(const std::vector<CPubKey>& keys, Span<const CScript>, FlatSigningProvider&) const override |
| 716 | { |
| 717 | if (m_xonly) { |
| 718 | CScript script = CScript() << ToByteVector(XOnlyPubKey(keys[0])) << OP_CHECKSIG; |
| 719 | return Vector(std::move(script)); |
| 720 | } else { |
| 721 | return Vector(GetScriptForRawPubKey(keys[0])); |
| 722 | } |
| 723 | } |
| 724 | public: |
| 725 | PKDescriptor(std::unique_ptr<PubkeyProvider> prov, bool xonly = false) : DescriptorImpl(Vector(std::move(prov)), "pk"), m_xonly(xonly) {} |
| 726 | bool IsSingleType() const final { return true; } |
nothing calls this directly
no test coverage detected