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

tari-project / tari-crypto / 5185081241
81%

Build:
DEFAULT BRANCH: main
Ran 06 Jun 2023 05:56AM UTC
Jobs 1
Files 28
Run time 1s
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

pending completion
5185081241

push

github

web-flow
feat!: expose secret key length as a constant (#181)

Currently, the `PublicKey` trait exposes the encoded key byte length via
the associated `KEY_LEN` constant, and also provides it via the
`key_length` function. However, the `SecretKey` trait only exposes its
encoded key byte length via the `key_length` function, which cannot be
constant. There are use cases where it's handy to get the key size at
compile time, particularly when you want to use arrays and avoid heap
allocations.

This PR unifies the `PublicKey` and `SecretKey` traits by adding an
associated `KEY_LEN` constant to `SecretKey`. It then updates the
`RistrettoSecretKey` implementation accordingly. This retains all
existing functionality, so the change is not breaking.

3 of 3 new or added lines in 1 file covered. (100.0%)

3756 of 4144 relevant lines covered (90.64%)

65.22 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5185081241.1 06 Jun 2023 05:56AM UTC 28
90.64
GitHub Action Run
Source Files on build 5185081241
  • Tree
  • List 28
  • Changed 28
  • Source Changed 28
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 90ad63d0 on github
  • Prev Build on main (#5023562431)
  • Next Build on main (#5256527504)
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