elements-miniscript accepts descriptors containing a hardened wildcard on an xpub, such as xpub.../*h. Calling Key::from_elip151 on the resulting descriptor panics:
called Result::unwrap() on an Err value: HardenedChild
DescriptorPublicKey::at_derivation_index creates a DefiniteDescriptorKey containing a hardened public derivation. Later, DefiniteDescriptorKey::to_public_key unwraps the failure from derive_public_key.
Malformed or unsupported descriptors should return ConversionError::HardenedChild instead of panicking. This is reachable when parsing untrusted descriptor strings and can cause denial of service.
elements-miniscript accepts descriptors containing a hardened wildcard on an xpub, such as
xpub.../*h. CallingKey::from_elip151on the resulting descriptor panics:called
Result::unwrap()on anErrvalue: HardenedChildDescriptorPublicKey::at_derivation_indexcreates aDefiniteDescriptorKeycontaining a hardened public derivation. Later,DefiniteDescriptorKey::to_public_keyunwraps the failure from derive_public_key.Malformed or unsupported descriptors should return
ConversionError::HardenedChildinstead of panicking. This is reachable when parsing untrusted descriptor strings and can cause denial of service.