Skip to content

Commit

Permalink
feat: add descriptor_checksum method to wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
rustaceanrob committed Oct 7, 2024
1 parent 3cc3365 commit 53d654c
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 @@ -393,6 +393,8 @@ interface Wallet {

Network network();

string descriptor_checksum(KeychainKind keychain);

Balance balance();

[Throws=CannotConnectError]
Expand Down
4 changes: 4 additions & 0 deletions bdk-ffi/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ impl Wallet {
self.get_wallet().derivation_index(keychain)
}

pub fn descriptor_checksum(&self, keychain: KeychainKind) -> String {
self.get_wallet().descriptor_checksum(keychain)
}

pub fn network(&self) -> Network {
self.get_wallet().network()
}
Expand Down

0 comments on commit 53d654c

Please sign in to comment.