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

rust-bitcoin / rust-bitcoin / 13080303668
83%

Build:
DEFAULT BRANCH: master
Ran 31 Jan 2025 08:30PM UTC
Jobs 1
Files 117
Run time 1min
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

31 Jan 2025 08:29PM UTC coverage: 83.292% (-0.02%) from 83.312%
13080303668

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#3981: Do not implement `Default` for `HmacEngine`

<a class=hub.com/rust-bitcoin/rust-bitcoin/commit/<a class="double-link" href="https://git"><a class=hub.com/rust-bitcoin/rust-bitcoin/commit/18619a6d0b0bca7b7e3603e260b254b4aae6cebf">18619a6d0<a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/e45bc0056c775206fd2e37524b8f7113eadec98a"> api: Run just check-api (Tobin C. Harding)
<a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/1eb8f1f9e044b4bb613f49d3e1b0073c8d11bb8e">1eb8f1f9e</a><a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/e45bc0056c775206fd2e37524b8f7113eadec98a"> Add a Hmac::engine function (Tobin C. Harding)
</a><a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/c352d376ed4de2958c55dae960c6efd40b263c6d">c352d376e</a> Do not implement Default for HmacEngine (Tobin C. Harding)

Pull request description:

  The `HmacEngine` should be created using a key. Currently we are providing a `Default` impl that uses `&[]` as the key. This is, I believe, a hangover from when we had a `Default` trait bound somewhere else. It is incorrect and an API footgun - remove it.

  Note this PR includes changes to the bench code in `hmac` that highlights the footgun - pity the poor user we even shot ourselves.

  Patch 2 adds a constructor `Hmac::engine` and uses it in the bench code.

ACKs for top commit:
  Kixunil:
    ACK 18619a6d0b0bca7b7e3603e260b254b4aae6cebf
  apoelstra:
    ACK 18619a6d0b0bca7b7e3603e260b254b4aae6cebf; successfully ran local tests

Tree-SHA512: c96640e7f6ee76300c42dbd82e92a4c1451

0 of 6 new or added lines in 1 file covered. (0.0%)

21032 of 25251 relevant lines covered (83.29%)

17367.22 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
91.62
-3.0% hashes/src/hmac.rs
Jobs
ID Job ID Ran Files Coverage
1 13080303668.1 31 Jan 2025 08:30PM UTC 117
83.29
GitHub Action Run
Source Files on build 13080303668
  • Tree
  • List 117
  • Changed 12
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13080303668
  • e45bc005 on github
  • Prev Build on master (#13074862676)
  • Next Build on master (#13081092118)
  • 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

© 2026 Coveralls, Inc