feat: upgrade BDK to 2.3.0 and wrap new APIs#14
Merged
darioAnongba merged 7 commits intomainfrom Feb 24, 2026
Merged
Conversation
added 3 commits
February 24, 2026 16:39
Upgrades: - bdk_wallet: 2.0.0 -> 2.3.0 - bdk_esplora: 0.22.0 -> 0.22.1 Notable changes in bdk_wallet 2.1.0-2.3.0: - BIP-389 two-path multipath descriptor support - TxBuilder::exclude_unconfirmed and exclude_below_confirmations - Wallet events on apply_update (2.2.0) - apply_block_events and apply_block_connected_to_events (2.3.0) - build_fee_bump fix for missing parent txid (2.3.0) - signer module deprecated (2.2.0)
Adds support for creating a wallet from a BIP-389 two-path multipath descriptor. This allows users to specify a single descriptor with both receive and change paths (e.g. wpkh(xpub.../<0;1>/*)) instead of providing two separate descriptors. Wraps BdkWallet::create_from_two_path_descriptor introduced in bdk_wallet 2.1.0.
Adds two new methods to TxBuilder for filtering UTXOs by confirmation status: - exclude_below_confirmations(min_confirms): excludes outpoints from transactions with fewer than min_confirms confirmations - exclude_unconfirmed(): shorthand for exclude_below_confirmations(1) These methods mirror the BDK wallet 2.1.0 API and compute the excluded set based on the wallet's current chain tip height.
added 3 commits
February 24, 2026 18:43
bdk_wallet 2.2.0 deprecated the signer module (including SignOptions) in favor of bitcoin::psbt::Psbt::sign(). However, Wallet::sign still requires SignOptions internally, so we add #[allow(deprecated)] until BDK provides a full migration path. Added documentation noting the deprecation status and migration plan.
Comprehensive guide covering architecture, build/test instructions, CI pipeline, dependency management, coding conventions, and known issues. Useful for both human contributors and AI agents working on the codebase.
4 tasks
darioAnongba
commented
Feb 24, 2026
Instead of reimplementing the UTXO filtering logic locally, store the min_confirmations parameter and pass it to BDK's TxBuilder in finish(). This follows the same delegation pattern used by all other builder methods.
Collaborator
Author
|
Addressed review comments in c0cfcb9:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades BDK dependencies and wraps new APIs introduced in bdk_wallet 2.1.0-2.3.0.
Dependency Upgrades
bdk_wallet: 2.0.0 → 2.3.0bdk_esplora: 0.22.0 → 0.22.1New API Wrappers
Wallet::create_from_two_path_descriptor(BIP-389)wpkh([fingerprint/path]xpub.../<0;1>/*)TxBuilder::exclude_below_confirmations(min_confirms)min_confirmsconfirmationsTxBuilder::exclude_unconfirmed()exclude_below_confirmations(1)Notable upstream changes (2.1.0 → 2.3.0)
apply_update(2.2.0) — planned for follow-up PRapply_block_eventsandapply_block_connected_to_events(2.3.0) — planned for follow-up PRsignermodule deprecated (2.2.0)build_fee_bumpfix for missing parent txid (2.3.0)Follow-up PRs planned
apply_updatereturning events)apply_block_events/apply_block_connected_to_events