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

rust-bitcoin / rust-bitcoin / 9519354068 / 1
83%
master: 83%

Build:
DEFAULT BRANCH: master
Ran 14 Jun 2024 04:31PM UTC
Files 93
Run time 2s
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

14 Jun 2024 04:30PM UTC coverage: 83.136% (-0.2%) from 83.286%
9519354068.1

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#2852: Add inherent functions to hashes

<a class=hub.com/rust-bitcoin/rust-bitcoin/commit/18b2788a5ac8d052624cd23687d9628ecc557615">18b2788a5<a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/72ce271b6b375067424d312742a0a46802ee5f62"> api: Run just check-api (Tobin C. Harding)
<a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/6b7d02e5ae0bb6a3d3ba0fe30da942200a171f70">6b7d02e5a</a> Add inherent functions to hashes (Tobin C. Harding)

Pull request description:

  Currently we have a trait `Hash` that is required for `Hmac`, `Hkdf`, and other use cases. However, it is unegonomic for users who just want to do a simple hash to have to import the trait.

  Add inherent functions to all hash types including those created with the new wrapper type macros.

  This patch introduces some duplicate code but we are trying to make progress in the hashes API re-write. We can come back and de-dublicate later.

  Includes making `to_byte_array`,`from_byte_array`, `as_byte_array`, and `all_zeros` const where easily possible.

ACKs for top commit:
  apoelstra:
    ACK 18b2788a5ac8d052624cd23687d9628ecc557615

Tree-SHA512: 6b7a8d8a8e2ca133b5571ca838c19c4e093

19547 of 23512 relevant lines covered (83.14%)

16276.61 hits per line

Source Files on job 9519354068.1
  • Tree
  • List 0
  • Changed 39
  • Source Changed 35
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 9519354068
  • 72ce271b on github
  • Prev Job for on master (#9510226136.1)
  • Next Job for on master (#9519886633.1)
  • 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