• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bitcoindevkit / bdk_wallet / 15307638617
85%

Build:
DEFAULT BRANCH: master
Ran 28 May 2025 06:23PM UTC
Jobs 1
Files 22
Run time 4min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 May 2025 06:21PM UTC coverage: 85.55% (+0.1%) from 85.438%
15307638617

push

github

ValuedMammal
Merge bitcoindevkit/bdk_wallet#247: deps: Update `bdk_chain` to 0.23.0

6aba330e7 fix: gracefully handle `reveal_to_target` (valued mammal)
741f2aeb6 test: persist indexed script pubkeys (valued mammal)
db255555e deps!: Update `bdk_chain` to 0.23.0 (valued mammal)

Pull request description:

  ### Description

  The PR updates bdk_chain to 0.23.0. Additionally we introduce the ability to persist derived SPKs indexed by descriptor ID and derivation index.

  The `CreateParams::use_spk_cache` method enables or disables a persistent cache for script pubkeys (SPKs) derived by the wallet. When enabled, the wallet will store and reuse previously derived SPKs, avoiding redundant derivation on subsequent loads.

  When a wallet has many revealed addresses (i.e., many derived SPKs), loading the wallet can become slow if every address must be re-derived from scratch.

  By enabling the SPK cache:

  - **On wallet creation:** The wallet will persistently store each derived SPK as addresses are revealed.
  - **On wallet load:** If `use_spk_cache` is also set in the corresponding `LoadParams`, the wallet will load the cached SPKs directly from storage, skipping the need to re-derive them from the descriptor. This can dramatically reduce load times for wallets with hundreds or thousands of revealed addresses, as the expensive crypto operations are avoided.

  **Caveat:**
  Both creation and loading must have `use_spk_cache(true)` set for the cache to be used. If not, the wallet will fall back to deriving SPKs as usual.

  fixes #246
  fixes #237

  ### Changelog notice

  #### Added

  - `CreateParams::use_spk_cache`
  - `LoadParams::use_spk_cache`

  #### Changed

  - bump bdk_chain to 0.23.0
  - **Note:** This change extends the wallet `ChangeSet` type by adding `first_seen` to the tx_graph member, and adding `spk_cache` to the indexer.

  ### Checklists

  #### All Submi... (continued)

49 of 49 new or added lines in 4 files covered. (100.0%)

7377 of 8623 relevant lines covered (85.55%)

3484.14 hits per line

Jobs
ID Job ID Ran Files Coverage
1 15307638617.1 28 May 2025 06:23PM UTC 22
85.55
GitHub Action Run
Source Files on build 15307638617
  • Tree
  • List 22
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 3d619c91 on github
  • Prev Build on master (#15307316172)
  • Next Build on master (#15311776581)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc