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 {
627
627
/// # Errors
628
628
///
629
629
/// - If `index` is hardened.
630
+ /// - If the key contains multi-path derivations
630
631
pub fn at_derivation_index ( self , index : u32 ) -> Result < DefiniteDescriptorKey , ConversionError > {
631
632
let definite = match self {
632
633
DescriptorPublicKey :: Single ( _) => self ,
Original file line number Diff line number Diff line change @@ -596,6 +596,7 @@ impl Descriptor<DescriptorPublicKey> {
596
596
///
597
597
/// # Errors
598
598
/// - If index ≥ 2^31
599
+ /// - If the descriptor contains multi-path derivations
599
600
pub fn at_derivation_index (
600
601
& self ,
601
602
index : u32 ,
@@ -650,7 +651,8 @@ impl Descriptor<DescriptorPublicKey> {
650
651
///
651
652
/// # Errors
652
653
///
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,
654
656
pub fn derived_descriptor < C : secp256k1:: Verification > (
655
657
& self ,
656
658
secp : & secp256k1:: Secp256k1 < C > ,
You can’t perform that action at this time.
0 commit comments