Skip to content

Commit

Permalink
feat: add master-fingerprint to descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
reez committed Nov 12, 2024
1 parent 1e714cb commit 5eaec58
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 @@ -551,6 +551,8 @@ interface DescriptorPublicKey {
string as_string();

boolean is_multipath();

string master_fingerprint();
};

[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 @@ -227,6 +227,10 @@ impl DescriptorPublicKey {
pub(crate) fn is_multipath(&self) -> bool {
self.0.is_multipath()
}

pub(crate) fn master_fingerprint(&self) -> String {
self.0.master_fingerprint().to_string()
}
}

#[cfg(test)]
Expand Down

0 comments on commit 5eaec58

Please sign in to comment.