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

rust-bitcoin / rust-bitcoin / 13334719205
83%

Build:
DEFAULT BRANCH: master
Ran 14 Feb 2025 06:01PM UTC
Jobs 1
Files 122
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 Feb 2025 06:00PM UTC coverage: 82.719% (-0.02%) from 82.736%
13334719205

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#4050: Validate compressed WIF keys

<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/<a class="double-link" href="https://git"><a class=hub.com/rust-bitcoin/rust-bitcoin/commit/00cd247bc49451fe8c2cbf537ed042b0bb5c3340">00cd247bc Validate compressed WIF keys (ndungudedan)

Pull request description:

  For private WIF keys corresponding to a compressed address, the last byte of the key needs to be 0x01, but the API doesn't enforce this when using PrivateKey::from_wif(). So, invalid keys can be accepted.

  Thus we check if the last byte is equivalent to 0x01 if the key's length is 34 (which indicates it's
  compressed).

  resolves #3773

ACKs for top commit:
  Kixunil:
    ACK 00cd247bc49451fe8c2cbf537ed042b0bb5c3340
  tcharding:
    ACK 00cd247bc49451fe8c2cbf537ed042b0bb5c3340
  apoelstra:
    ACK 00cd247bc49451fe8c2cbf537ed042b0bb5c3340; successfully ran local tests

Tree-SHA512: 8d2cfc13f5f4f902cde220106857aac2167

11 of 18 new or added lines in 1 file covered. (61.11%)

20956 of 25334 relevant lines covered (82.72%)

17228.03 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
65.7
-0.2% bitcoin/src/crypto/key.rs
Jobs
ID Job ID Ran Files Coverage
1 13334719205.1 14 Feb 2025 06:01PM UTC 122
82.72
GitHub Action Run
Source Files on build 13334719205
  • Tree
  • List 122
  • Changed 15
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13334719205
  • 1a610cb3 on github
  • Prev Build on master (#13320724602)
  • Next Build on master (#13338203254)
  • 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