File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1058,7 +1058,7 @@ impl DefiniteDescriptorKey {
1058
1058
///
1059
1059
/// Returns `None` if the key contains a wildcard
1060
1060
fn new ( key : DescriptorPublicKey ) -> Option < Self > {
1061
- if key. has_wildcard ( ) {
1061
+ if key. has_wildcard ( ) || key . is_multipath ( ) {
1062
1062
None
1063
1063
} else {
1064
1064
Some ( Self ( key) )
@@ -1092,7 +1092,7 @@ impl FromStr for DefiniteDescriptorKey {
1092
1092
fn from_str ( s : & str ) -> Result < Self , Self :: Err > {
1093
1093
let inner = DescriptorPublicKey :: from_str ( s) ?;
1094
1094
DefiniteDescriptorKey :: new ( inner) . ok_or ( DescriptorKeyParseError (
1095
- "cannot parse key with a wilcard as a DerivedDescriptorKey" ,
1095
+ "cannot parse multi-path keys or keys with a wilcard as a DerivedDescriptorKey" ,
1096
1096
) )
1097
1097
}
1098
1098
}
You can’t perform that action at this time.
0 commit comments