Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/descriptor/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,7 @@ impl DescriptorPublicKey {
/// # Errors
///
/// - If `index` is hardened.
/// - If derivation path contains a hardened step.
/// - If the key contains multi-path derivations
pub fn at_derivation_index(
self,
Expand Down Expand Up @@ -937,8 +938,7 @@ impl DescriptorPublicKey {
DescriptorPublicKey::MultiXPub(_) => return Err(NonDefiniteKeyError::Multipath),
};

Ok(DefiniteDescriptorKey::new(definite)
.expect("The key should not contain any wildcards at this point"))
DefiniteDescriptorKey::new(definite)
}

/// Whether or not this key has multiple derivation paths.
Expand Down
Loading