You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if !K::can_derive_hardened() && !(&derivation_path).into_iter().all(|c| c.is_normal()){
518
-
Err(DescriptorKeyParseError(
519
-
"Hardened derivation is currently not supported.",
520
-
))
521
-
}else{
522
-
Ok((xkey, derivation_path, wildcard))
523
-
}
517
+
Ok((xkey, derivation_path, wildcard))
524
518
}
525
519
526
520
/// Compares this key with a `keysource` and returns the matching derivation path, if any.
@@ -615,15 +609,6 @@ mod test {
615
609
616
610
#[test]
617
611
fnparse_descriptor_key_errors(){
618
-
// We refuse creating descriptors which claim to be able to derive hardened children
619
-
let desc = "[78412e3a/44'/0'/0']xpub6ERApfZwUNrhLCkDtcHTcxd75RbzS1ed54G1LkBUHQVHQKqhMkhgbmJbZRkrgZw4koxb5JaHWkY4ALHY2grBGRjaDMzQLcgJvLJuZZvRcEL/1/42'/*";
620
-
assert_eq!(
621
-
DescriptorPublicKey::from_str(desc),
622
-
Err(DescriptorKeyParseError(
623
-
"Hardened derivation is currently not supported."
624
-
))
625
-
);
626
-
627
612
// And ones with misplaced wildcard
628
613
let desc = "[78412e3a/44'/0'/0']xpub6ERApfZwUNrhLCkDtcHTcxd75RbzS1ed54G1LkBUHQVHQKqhMkhgbmJbZRkrgZw4koxb5JaHWkY4ALHY2grBGRjaDMzQLcgJvLJuZZvRcEL/1/*/44";
0 commit comments