@@ -799,7 +799,6 @@ class AddressDescriptor final : public DescriptorImpl
799
799
return OutputTypeFromDestination (m_destination);
800
800
}
801
801
bool IsSingleType () const final { return true ; }
802
- bool IsSingleKey () const final { return false ; }
803
802
bool ToPrivateString (const SigningProvider& arg, std::string& out) const final { return false ; }
804
803
805
804
std::optional<int64_t > ScriptSize () const override { return GetScriptForDestination (m_destination).size (); }
@@ -827,7 +826,6 @@ class RawDescriptor final : public DescriptorImpl
827
826
return OutputTypeFromDestination (dest);
828
827
}
829
828
bool IsSingleType () const final { return true ; }
830
- bool IsSingleKey () const final { return false ; }
831
829
bool ToPrivateString (const SigningProvider& arg, std::string& out) const final { return false ; }
832
830
833
831
std::optional<int64_t > ScriptSize () const override { return m_script.size (); }
@@ -856,7 +854,6 @@ class PKDescriptor final : public DescriptorImpl
856
854
public:
857
855
PKDescriptor (std::unique_ptr<PubkeyProvider> prov, bool xonly = false ) : DescriptorImpl(Vector(std::move(prov)), " pk" ), m_xonly(xonly) {}
858
856
bool IsSingleType () const final { return true ; }
859
- bool IsSingleKey () const final { return true ; }
860
857
861
858
std::optional<int64_t > ScriptSize () const override {
862
859
return 1 + (m_xonly ? 32 : m_pubkey_args[0 ]->GetSize ()) + 1 ;
@@ -892,7 +889,6 @@ class PKHDescriptor final : public DescriptorImpl
892
889
PKHDescriptor (std::unique_ptr<PubkeyProvider> prov) : DescriptorImpl(Vector(std::move(prov)), " pkh" ) {}
893
890
std::optional<OutputType> GetOutputType () const override { return OutputType::LEGACY; }
894
891
bool IsSingleType () const final { return true ; }
895
- bool IsSingleKey () const final { return true ; }
896
892
897
893
std::optional<int64_t > ScriptSize () const override { return 1 + 1 + 1 + 20 + 1 + 1 ; }
898
894
@@ -926,7 +922,6 @@ class WPKHDescriptor final : public DescriptorImpl
926
922
WPKHDescriptor (std::unique_ptr<PubkeyProvider> prov) : DescriptorImpl(Vector(std::move(prov)), " wpkh" ) {}
927
923
std::optional<OutputType> GetOutputType () const override { return OutputType::BECH32; }
928
924
bool IsSingleType () const final { return true ; }
929
- bool IsSingleKey () const final { return true ; }
930
925
931
926
std::optional<int64_t > ScriptSize () const override { return 1 + 1 + 20 ; }
932
927
@@ -968,7 +963,6 @@ class ComboDescriptor final : public DescriptorImpl
968
963
public:
969
964
ComboDescriptor (std::unique_ptr<PubkeyProvider> prov) : DescriptorImpl(Vector(std::move(prov)), " combo" ) {}
970
965
bool IsSingleType () const final { return false ; }
971
- bool IsSingleKey () const final { return true ; }
972
966
std::unique_ptr<DescriptorImpl> Clone () const override
973
967
{
974
968
return std::make_unique<ComboDescriptor>(m_pubkey_args.at (0 )->Clone ());
@@ -993,7 +987,6 @@ class MultisigDescriptor final : public DescriptorImpl
993
987
public:
994
988
MultisigDescriptor (int threshold, std::vector<std::unique_ptr<PubkeyProvider>> providers, bool sorted = false ) : DescriptorImpl(std::move(providers), sorted ? " sortedmulti" : " multi" ), m_threshold(threshold), m_sorted(sorted) {}
995
989
bool IsSingleType () const final { return true ; }
996
- bool IsSingleKey () const final { return false ; }
997
990
998
991
std::optional<int64_t > ScriptSize () const override {
999
992
const auto n_keys = m_pubkey_args.size ();
@@ -1045,7 +1038,6 @@ class MultiADescriptor final : public DescriptorImpl
1045
1038
public:
1046
1039
MultiADescriptor (int threshold, std::vector<std::unique_ptr<PubkeyProvider>> providers, bool sorted = false ) : DescriptorImpl(std::move(providers), sorted ? " sortedmulti_a" : " multi_a" ), m_threshold(threshold), m_sorted(sorted) {}
1047
1040
bool IsSingleType () const final { return true ; }
1048
- bool IsSingleKey () const final { return false ; }
1049
1041
1050
1042
std::optional<int64_t > ScriptSize () const override {
1051
1043
const auto n_keys = m_pubkey_args.size ();
@@ -1092,7 +1084,6 @@ class SHDescriptor final : public DescriptorImpl
1092
1084
return OutputType::LEGACY;
1093
1085
}
1094
1086
bool IsSingleType () const final { return true ; }
1095
- bool IsSingleKey () const final { return m_subdescriptor_args[0 ]->IsSingleKey (); }
1096
1087
1097
1088
std::optional<int64_t > ScriptSize () const override { return 1 + 1 + 20 + 1 ; }
1098
1089
@@ -1134,7 +1125,6 @@ class WSHDescriptor final : public DescriptorImpl
1134
1125
WSHDescriptor (std::unique_ptr<DescriptorImpl> desc) : DescriptorImpl({}, std::move(desc), " wsh" ) {}
1135
1126
std::optional<OutputType> GetOutputType () const override { return OutputType::BECH32; }
1136
1127
bool IsSingleType () const final { return true ; }
1137
- bool IsSingleKey () const final { return m_subdescriptor_args[0 ]->IsSingleKey (); }
1138
1128
1139
1129
std::optional<int64_t > ScriptSize () const override { return 1 + 1 + 32 ; }
1140
1130
@@ -1212,7 +1202,6 @@ class TRDescriptor final : public DescriptorImpl
1212
1202
}
1213
1203
std::optional<OutputType> GetOutputType () const override { return OutputType::BECH32M; }
1214
1204
bool IsSingleType () const final { return true ; }
1215
- bool IsSingleKey () const final { return false ; }
1216
1205
1217
1206
std::optional<int64_t > ScriptSize () const override { return 1 + 1 + 32 ; }
1218
1207
@@ -1340,7 +1329,6 @@ class MiniscriptDescriptor final : public DescriptorImpl
1340
1329
1341
1330
bool IsSolvable () const override { return true ; }
1342
1331
bool IsSingleType () const final { return true ; }
1343
- bool IsSingleKey () const final { return false ; }
1344
1332
1345
1333
std::optional<int64_t > ScriptSize () const override { return m_node->ScriptSize (); }
1346
1334
@@ -1380,7 +1368,6 @@ class RawTRDescriptor final : public DescriptorImpl
1380
1368
RawTRDescriptor (std::unique_ptr<PubkeyProvider> output_key) : DescriptorImpl(Vector(std::move(output_key)), " rawtr" ) {}
1381
1369
std::optional<OutputType> GetOutputType () const override { return OutputType::BECH32M; }
1382
1370
bool IsSingleType () const final { return true ; }
1383
- bool IsSingleKey () const final { return false ; }
1384
1371
1385
1372
std::optional<int64_t > ScriptSize () const override { return 1 + 1 + 32 ; }
1386
1373
0 commit comments