Repository navigation
chore(deps): bump rust-dependencies and migrate signing to rust-bitcoin for bdk_wallet 3.2 - #50
Merged
Conversation
Bumps the rust-dependencies group with 5 updates: | Package | From | To | | --- | --- | --- | | [alloy](https://github.com/alloy-rs/alloy) | `2.4.2` | `2.5.0` | | [bdk_wallet](https://github.com/bitcoindevkit/bdk_wallet) | `3.1.0` | `3.2.0` | | [config](https://github.com/rust-cli/config-rs) | `0.15.25` | `0.15.27` | | [tokio](https://github.com/tokio-rs/tokio) | `1.53.1` | `1.53.2` | | [zeroize](https://github.com/RustCrypto/utils) | `1.9.0` | `1.9.1` | Updates `alloy` from 2.4.2 to 2.5.0 - [Release notes](https://github.com/alloy-rs/alloy/releases) - [Changelog](https://github.com/alloy-rs/alloy/blob/main/CHANGELOG.md) - [Commits](alloy-rs/alloy@v2.4.2...v2.5.0) Updates `bdk_wallet` from 3.1.0 to 3.2.0 - [Release notes](https://github.com/bitcoindevkit/bdk_wallet/releases) - [Changelog](https://github.com/bitcoindevkit/bdk_wallet/blob/v3.2.0/CHANGELOG.md) - [Commits](bitcoindevkit/bdk_wallet@v3.1.0...v3.2.0) Updates `config` from 0.15.25 to 0.15.27 - [Changelog](https://github.com/rust-cli/config-rs/blob/main/CHANGELOG.md) - [Commits](rust-cli/config-rs@v0.15.25...v0.15.27) Updates `tokio` from 1.53.1 to 1.53.2 - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](tokio-rs/tokio@tokio-1.53.1...tokio-1.53.2) Updates `zeroize` from 1.9.0 to 1.9.1 - [Commits](RustCrypto/utils@zeroize-v1.9.0...zeroize-v1.9.1) --- updated-dependencies: - dependency-name: alloy dependency-version: 2.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: rust-dependencies - dependency-name: bdk_wallet dependency-version: 3.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: rust-dependencies - dependency-name: config dependency-version: 0.15.27 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: rust-dependencies - dependency-name: tokio dependency-version: 1.53.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: rust-dependencies - dependency-name: zeroize dependency-version: 1.9.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: rust-dependencies ... Signed-off-by: dependabot[bot] <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
… 3.2 bdk_wallet 3.2 deprecates the wallet as a key store: `Wallet::sign`, `LoadParams::extract_keys`, `Wallet::policies` and `TxBuilder::policy_path`. CI builds with `-D warnings`, so these broke clippy. Keys now stay with the caller. `Seed::bitcoin_wallet` hands BDK only the public descriptors and `Seed::bitcoin_signer` returns the master `Xpriv`. BDK has always persisted just the public descriptor, so wallets created from the old xprv descriptors still load. `sign_psbt` signs with `bitcoin::Psbt::sign` and finalizes with `Wallet::finalize_psbt`. Recovery wallets keep their reclaim keymap in a `KeyMapWrapper` and build the reclaim spend with `set_condition`, taking the CSV condition from the descriptor's policy.
… advisories Lockfile-only updates: - `rustls-webpki` 0.103.15 -> 0.103.16: RUSTSEC-2026-0382 - `webpki-roots` 1.0.9 -> 1.0.11: RUSTSEC-2026-0381 - `webpki-root-certs` 1.0.9 -> 1.0.11: RUSTSEC-2026-0383 - `ctutils` 0.4.2 -> 0.4.6: RUSTSEC-2026-0385
6 of 14 tasks
storopoli
approved these changes
Oct 26, 2026
storopoli
added a commit
that referenced
this pull request
Oct 26, 2026
…t RUSTSEC-2026-0387 (#51) ## Description `cargo audit` now fails on `main`. Five advisories published since its last run on 2026-10-19 hit the current lockfile. This PR clears all five, so the security workflow passes without waiting on #50. Four have fixed releases, so this bumps them in the lockfile: | Crate | From | To | Advisory | | --- | --- | --- | --- | | `rustls-webpki` | 0.103.15 | 0.103.16 | RUSTSEC-2026-0382 | | `webpki-roots` | 1.0.9 | 1.0.11 | RUSTSEC-2026-0381 | | `webpki-root-certs` | 1.0.9 | 1.0.11 | RUSTSEC-2026-0383 | | `ctutils` | 0.4.2 | 0.4.6 | RUSTSEC-2026-0385 | `crypto-bigint` 0.5.5 (RUSTSEC-2026-0387) can't be fixed from here. The fix exists only in `crypto-bigint` 0.7.6. The latest `alloy-signer` (2.5.0) and `alloy-primitives` (1.7.3) still require `k256`/`elliptic-curve` 0.13, which pin `crypto-bigint` 0.5. This PR adds `.cargo/audit.toml` with the advisory ignored. The comment there records how the crate gets in, what it exposes and when to remove the entry. What it exposes: `k256` 0.13 does its scalar arithmetic with `crypto-bigint`. EVM signing through the `PrivateKeySigner` from `Seed::get_alpen_wallet` therefore runs the private key through the affected subtraction code. An attacker would need to watch timing or microarchitectural state on the user's machine while the CLI signs. Bitcoin signing uses libsecp256k1 and doesn't touch `crypto-bigint`. Upstream, `alloy-rs/alloy#4445` tracks the advisory. `alloy-rs/core#1147` moves `alloy-primitives` to `k256` 0.14, but `alloy-signer` needs the same bump before the entry can go. ### Type of Change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature/Enhancement (non-breaking change which adds functionality or enhances an existing one) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Documentation update - [ ] Refactor - [ ] New or updated tests - [x] Dependency update - [x] Security fix ## Notes to Reviewers - #50 has the same four bumps. Here they were redone on `main`'s lockfile with `cargo update --precise`, which leaves out the `windows-sys` churn from dependabot's resolution in #50. A test merge of this branch into #50 is clean, and the result differs from #50 only by `.cargo/audit.toml`, so either PR can land first. - Run locally against the current advisory DB, `cargo audit` passes on this branch and on the merge with #50. - `cargo audit -D warnings` (`continue-on-error` in CI) still lists the existing unmaintained-crate warnings and the informational tokio RUSTSEC-2026-0386. #50's tokio bump to 1.54.1 clears the tokio one. ## Checklist - [x] I have performed a self-review of my code. - [x] I have commented my code where necessary. - [x] I have updated the documentation if needed. - [x] My changes do not introduce new warnings. - [ ] I have added tests that prove my changes are effective or that my feature works. - [ ] New and existing tests pass with my changes. ## Related Issues Related to #50.
10 of 14 tasks
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.
Description
Bumps the
rust-dependenciesgroup and migrates Bitcoin signing off the APIs thatbdk_wallet3.2 deprecates.alloybdk_walletconfigtokiozeroizebdk_wallet3.2 signing migrationbdk_wallet3.2 phases out the wallet as a key store. It deprecatesWallet::sign,LoadParams::extract_keys,Wallet::policiesandTxBuilder::policy_path, and clippy runs with-D warnings, so the bump failed CI. This PR follows the upstream guidance:Seed::bitcoin_walletgives BDK only the public descriptors. The newSeed::bitcoin_signerreturns the masterXpriv, and the send, drain and deposit commands pass it in.sign_psbtsigns withbitcoin::Psbt::signandwallet.secp_ctx(), then finalizes withWallet::finalize_psbtand the defaultSignOptions. These are the same finalizer and options thatWallet::signused.KeyMapWrapper. The reclaim spend usesTxBuilder::set_conditionwith the CSV condition fromextract_policy(..).get_condition(path [1]), so descriptors loaded from the recovery file keep their own delay.transferanddrainnow assert that the PSBT finalized. Before, an unsigned transaction would only have failed at broadcast.The
bdk_walletfloor inCargo.tomlis now 3.2.0 becauseset_conditionis new in that release.RUSTSEC advisories
cargo auditreported 5 new vulnerabilities, published Oct 19–23. Four are fixed by lockfile-only updates:rustls-webpki0.103.15 → 0.103.16: RUSTSEC-2026-0382webpki-roots1.0.9 → 1.0.11: RUSTSEC-2026-0381webpki-root-certs1.0.9 → 1.0.11: RUSTSEC-2026-0383ctutils0.4.2 → 0.4.6: RUSTSEC-2026-0385crypto-bigint0.5.5 (RUSTSEC-2026-0387) is still open. It comes fromelliptic-curve0.13 throughk256andalloy-signer. The fix is only in 0.7.6+, which is semver-incompatible, so a lockfile bump can't clear it. #51 ignores it in.cargo/audit.toml, with the reasoning, and applies the same four bumps tomain. Thecargo-auditcheck here stays red until #51 lands. A test merge of the two is clean.Type of Change
Notes to Reviewers
descriptor_id()on load.loads_wallets_created_from_private_descriptorscreates a wallet from the old xprv descriptors and loads it with the new parameters.seed_signer_signs_seed_wallet_spendschecks the Schnorr signature thatSeed::bitcoin_signerproduces for aSeed::bitcoin_walletspend.deposit_request_tx_parses_in_asm_and_can_be_reclaimed, Bitcoin Core now accepts the deposit (key path,Xpriv) and the timelocked reclaim (script path,KeyMapWrapperplusset_condition), both signed throughPsbt::sign.Checklist
Related Issues