Skip to content

Conversation

@tarcieri
Copy link
Member

One thing lost from #1016 is the ability to convert from Uint::Repr and hybrid_array::Array<u8, _>.

Arguably these cases should use the dedicated ArrayEncoding/ArrayDecoding traits for this purpose instead, but for the sake of retrofitting the changes from #1016 this adds back the ability to do these conversions for EncodedUint up to 16 limbs.

One thing lost from #1016 is the ability to convert from `Uint::Repr`
and `hybrid_array::Array<u8, _>`.

Arguably these cases should use the dedicated
`ArrayEncoding`/`ArrayDecoding` traits for this purpose instead,
but for the sake of retrofitting the changes from #1016 this adds
back the ability to do these conversions for `EncodedUint` up to 16
limbs.
@codecov
Copy link

codecov bot commented Dec 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.84%. Comparing base (21cef5b) to head (4276bde).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1064      +/-   ##
==========================================
+ Coverage   78.82%   78.84%   +0.01%     
==========================================
  Files         173      174       +1     
  Lines       17659    17675      +16     
==========================================
+ Hits        13920    13936      +16     
  Misses       3739     3739              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tarcieri tarcieri merged commit 1ebbd8b into master Dec 29, 2025
26 checks passed
@tarcieri tarcieri deleted the from-impls-between-array-and-encoded-uint branch December 29, 2025 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants