Skip to content

Commit f40dc83

Browse files
committed
fixup! Add find_derivation_index_for_spk
1 parent 3374e11 commit f40dc83

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/descriptor/mod.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -771,9 +771,10 @@ impl Descriptor<DescriptorPublicKey> {
771771
/// Utility method for deriving the descriptor at each index in a range to find one matching
772772
/// `script_pubkey`.
773773
///
774-
/// If it finds a match then it returns the index it was derived it and the concrete descriptor
775-
/// at that index. If the descriptor is non-derivable then it will simply check the script
776-
/// pubkey against the descriptor (and in that case the index returned will be meaningless).
774+
/// If it finds a match then it returns the index it was derived at and the concrete
775+
/// descriptor at that index. If the descriptor is non-derivable then it will simply check the
776+
/// script pubkey against the descriptor and return it if it matches (in this case the index
777+
/// returned will be meaningless).
777778
pub fn find_derivation_index_for_spk<C: secp256k1::Verification>(
778779
&self,
779780
secp: &secp256k1::Secp256k1<C>,

0 commit comments

Comments
 (0)