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

bitcoindevkit / bdk / 7617544668
79%

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

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

Jobs
ID Job ID Ran Files Coverage
1 7617544668.1 22 Jan 2024 09:28PM UTC 0
79.88
GitHub Action Run
Source Files on build 7617544668
Detailed source file information is not available for this build.
  • Back to Repo
  • fbd1d656 on github
  • Prev Build on master (#7610446099)
  • Next Build on master (#7654127863)
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