Skip to content

Commit

Permalink
feat: add is_multipath to descriptor
Browse files Browse the repository at this point in the history
reez committed Nov 15, 2024
1 parent 92289e3 commit b15b30f
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bdk-ffi/src/bdk.udl
Original file line number Diff line number Diff line change
@@ -774,6 +774,9 @@ interface Descriptor {
constructor([ByRef] DescriptorPublicKey public_key, string fingerprint, KeychainKind keychain, Network network);

string to_string_with_secret();

/// Whether or not this key has multiple derivation paths.
boolean is_multipath();
};

// ------------------------------------------------------------------------
4 changes: 4 additions & 0 deletions bdk-ffi/src/descriptor.rs
Original file line number Diff line number Diff line change
@@ -266,6 +266,10 @@ impl Descriptor {
let key_map = &self.key_map;
descriptor.to_string_with_secret(key_map)
}

pub(crate) fn is_multipath(&self) -> bool {
self.extended_descriptor.is_multipath()
}
}

impl Display for Descriptor {

0 comments on commit b15b30f

Please sign in to comment.