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

bitcoindevkit / bdk / 7617544668 / 1
78%
master: 78%

Build:
DEFAULT BRANCH: master
Ran 22 Jan 2024 09:28PM UTC
Files 39
Run time 1s
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

22 Jan 2024 09:24PM UTC coverage: 79.879% (+0.05%) from 79.829%
7617544668.1

push

github

danielabrozzoni
Merge bitcoindevkit/bdk#1253: Remove deprecated checksum routines

<a class=hub.com/bitcoindevkit/bdk/commit/ed91a4bdb49276057eb7458e1a94653553be24e7">ed91a4bdb<a href="https://github.com/bitcoindevkit/bdk/commit/fbd1d656187859fcb7b84b177e7e9498c15537ea"> Consolidate `calc_checksum_bytes_internal` routine (Sebastian Falbesoner)
<a class="double-link" href="https://github.com/bitcoindevkit/bdk/commit/179cfeff51cefda80c16fa4558ba039143a2ad2c">179cfeff5</a> Remove deprecated `get_checksum{,_bytes}` routines (Sebastian Falbesoner)

Pull request description:

  ### Description

  This PR removes the routines `get_checksum` and `get_checksum_bytes` (in the bdk crate, descriptor/checksum.rs), which have been deprecated in 0.24.0. Consequently, the routine `calc_checksum_bytes_internal` is consolidated into `calc_checksum_bytes`, as the boolean parameter `exclude_hash` is not needed anymore. See also the two TODOs in the touched file.

  ### Notes to the reviewers

  In the second commit, the signature of the function `calc_checksum_bytes` slightly changes, as the `desc` parameter now is declared as `mut`, in order to change the local variable within the function. My rust experience is rather limited, so I'm not sure if this is a problem for users. IIUC, this is comparable to changing a pass-by-value parameter in C++ from `const std::string desc` to `std::string desc`, which is relevant only for the function implementation, but doesn't change the interface.

  ### Changelog notice

  - Remove deprecated `get_checksum` and `get_checksum_bytes` routines

  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
  * [x] I ran `cargo fmt` and `cargo clippy` before committing

ACKs for top commit:
  danielabrozzoni:
    ACK ed91a4bdb49276057eb7458e1a94653553be24e7

Tree-SHA512: a29ead57db3a6a336cddd7b40a4383e1084

8968 of 11227 relevant lines covered (79.88%)

5917.94 hits per line

Source Files on job 7617544668.1
  • Tree
  • List 0
  • Changed 14
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 7617544668
  • fbd1d656 on github
  • Prev Job for on master (#7610446099.1)
  • Next Job for on master (#7654127863.1)
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

© 2026 Coveralls, Inc