Skip to content

Commit

Permalink
feat: add is_multipath to descriptorpublickey
Browse files Browse the repository at this point in the history
  • Loading branch information
reez committed Nov 15, 2024
1 parent 5b74617 commit 7fa6ac1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bdk-ffi/src/bdk.udl
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,8 @@ interface DescriptorPublicKey {
DescriptorPublicKey extend([ByRef] DerivationPath path);

string as_string();

boolean is_multipath();
};

[Traits=(Display)]
Expand Down
4 changes: 4 additions & 0 deletions bdk-ffi/src/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ impl DescriptorPublicKey {
pub(crate) fn as_string(&self) -> String {
self.0.to_string()
}

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

#[cfg(test)]
Expand Down

0 comments on commit 7fa6ac1

Please sign in to comment.