| 1188 | const bool m_xonly; |
| 1189 | protected: |
| 1190 | std::vector<CScript> MakeScripts(const std::vector<CPubKey>& keys, std::span<const CScript>, FlatSigningProvider&) const override |
| 1191 | { |
| 1192 | if (m_xonly) { |
| 1193 | CScript script = CScript() << ToByteVector(XOnlyPubKey(keys[0])) << OP_CHECKSIG; |
| 1194 | return Vector(std::move(script)); |
| 1195 | } else { |
| 1196 | return Vector(GetScriptForRawPubKey(keys[0])); |
| 1197 | } |
| 1198 | } |
| 1199 | public: |
| 1200 | PKDescriptor(std::unique_ptr<PubkeyProvider> prov, bool xonly = false) : DescriptorImpl(Vector(std::move(prov)), "pk"), m_xonly(xonly) {} |
| 1201 | bool IsSingleType() const final { return true; } |
nothing calls this directly
no test coverage detected