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

rust-bitcoin / rust-bitcoin / 9931005662
83%

Build:
DEFAULT BRANCH: master
Ran 14 Jul 2024 10:01PM UTC
Jobs 1
Files 94
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

14 Jul 2024 10:00PM UTC coverage: 83.153% (+0.03%) from 83.124%
9931005662

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#3009: Remove midstate from the `GeneralHash` and `HashEngine` traits

<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/8dcecfc144673300a630d9cbd716cadecf68d0d1">8dcecfc14 Remove midstate from the GeneralHash and HashEngine traits (Tobin C. Harding)

Pull request description:

  Midstates are not generic objects; they don't have universal cryptographic properties and if you are using them you should be using a specific midstate type. Therefore it shouldn't be part of `GeneralHash` or `HashEngine`. Furthermore, in practice it seems like `sha2` midstates are the only ones that anybody uses, at least in bitcoin.

  Remove the midstate stuff from the `GeneralHash` and `HashEngine` traits. Keep the `midstate` functionality as inherent functions if it is used internally. Keep the functionality on `sha256` as inherent public functions.

  Done as a first step towards #2918.

ACKs for top commit:
  apoelstra:
    ACK 8dcecfc144673300a630d9cbd716cadecf68d0d1
  Kixunil:
    ACK 8dcecfc144673300a630d9cbd716cadecf68d0d1

Tree-SHA512: 495fe6a4d377eb7e6d8d5a9cbc5f2e32dc0

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

19634 of 23612 relevant lines covered (83.15%)

15637.25 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9931005662.1 14 Jul 2024 10:00PM UTC 0
83.15
GitHub Action Run
Source Files on build 9931005662
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #9931005662
  • 25fc7e5f on github
  • Prev Build on master (#9930330100)
  • Next Build on master (#9931259856)
  • 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