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

rust-bitcoin / rust-bitcoin / 10510337566
83%

Build:
DEFAULT BRANCH: master
Ran 22 Aug 2024 02:43PM UTC
Jobs 1
Files 98
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

22 Aug 2024 02:42PM UTC coverage: 82.743% (+0.02%) from 82.727%
10510337566

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#3184: Reduce API surface of tagged wrapped hash types

<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/c97389596b9a18d3a9dcfbce3ade7274268483d2">c97389596<a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/8f851967a20aade8c2b5591385bd7c90ec8e9592"> Remove stale docs from sha256t_hash_newtype (Tobin C. Harding)
<a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/39f7dcb816723071db248d2ddc4718213990cde1">39f7dcb81</a> Reduce API surface of tagged wrapped hash types (Tobin C. Harding)

Pull request description:

  Recently we made it so that wrapper types created with `hash_newtype` were not general purpose hash types i.e., one could not easily hash arbitrary data into them. We would like to do the same for tagged wrapped hash types.

  In `hashes` do:

  - Create a new macro `sha256_tag` that does just the tag/engine stuff out of the `sha256t_hash_newtype` macro.
  - Deprecate the `sha256t_hash_newtype` macro.

  In `bitcoin` do:

  - Use a combination of `sha256_tag` and `hash_newtype` to create tagged wrapped hash types.

  Note that we do not add private helper functions `engine` and `from_engine` to the tagged wrapper types as we do for legacy/segwit in `sighash`. Can be done later if wanted/needed.

  Fix: #3135

ACKs for top commit:
  Kixunil:
    ACK c97389596b9a18d3a9dcfbce3ade7274268483d2
  apoelstra:
    ACK c97389596b9a18d3a9dcfbce3ade7274268483d2 successfully ran local tests

Tree-SHA512: d937a8eac00f2075b076919305653b14bca

44 of 50 new or added lines in 3 files covered. (88.0%)

2 existing lines in 1 file now uncovered.

19653 of 23752 relevant lines covered (82.74%)

15564.35 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10510337566.1 22 Aug 2024 02:43PM UTC 0
82.74
GitHub Action Run
Source Files on build 10510337566
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #10510337566
  • 8f851967 on github
  • Prev Build on master (#10509915686)
  • Next Build on master (#10512036229)
  • 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