File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -627,6 +627,7 @@ impl DescriptorPublicKey {
627627 /// # Errors
628628 ///
629629 /// - If `index` is hardened.
630+ /// - If the key contains multi-path derivations
630631 pub fn at_derivation_index ( self , index : u32 ) -> Result < DefiniteDescriptorKey , ConversionError > {
631632 let definite = match self {
632633 DescriptorPublicKey :: Single ( _) => self ,
Original file line number Diff line number Diff line change @@ -596,6 +596,7 @@ impl Descriptor<DescriptorPublicKey> {
596596 ///
597597 /// # Errors
598598 /// - If index ≥ 2^31
599+ /// - If the descriptor contains multi-path derivations
599600 pub fn at_derivation_index (
600601 & self ,
601602 index : u32 ,
@@ -650,7 +651,8 @@ impl Descriptor<DescriptorPublicKey> {
650651 ///
651652 /// # Errors
652653 ///
653- /// This function will return an error if hardened derivation is attempted.
654+ /// This function will return an error for multi-path descriptors
655+ /// or if hardened derivation is attempted,
654656 pub fn derived_descriptor < C : secp256k1:: Verification > (
655657 & self ,
656658 secp : & secp256k1:: Secp256k1 < C > ,
You can’t perform that action at this time.
0 commit comments