Skip to content

Conversation

@tarcieri
Copy link
Member

Consolidates modules containing all constant-time functionality for each numeric type, including: Int, Uint, BoxedUint, ConstMontyForm, MontyForm, and BoxedMontyForm.

It's the new home for any ctutils::Ct* impls or subtle trait impls.

This makes auditing the constant-time operations easier, and is also in anticipation of having to add additional CtAssign impls to all types when we bump ctutils.

Consolidates modules containing all constant-time functionality for each
numeric type, including: `Int`, `Uint`, `BoxedUint`, `ConstMontyForm`,
`MontyForm`, and `BoxedMontyForm`.

It's the new home for any `ctutils::Ct*` impls or `subtle` trait impls.

This makes auditing the constant-time operations easier, and is also in
anticipation of having to add additional `CtAssign` impls to all types
when we bump `ctutils`.
@tarcieri
Copy link
Member Author

I think we may have even had it factored this way at one point in the past 😅

Without this structure it's a bit unclear where to put the CtAssign impls besides a new assign module and when I was thinking about that I really wished all the constant-time impls were in a single module.

@codecov
Copy link

codecov bot commented Jan 17, 2026

Codecov Report

❌ Patch coverage is 76.50131% with 90 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.24%. Comparing base (f423867) to head (5e40641).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/limb/ct.rs 80.00% 15 Missing ⚠️
src/modular/monty_form/ct.rs 0.00% 15 Missing ⚠️
src/uint/boxed/ct.rs 85.00% 15 Missing ⚠️
src/uint/ct.rs 84.04% 15 Missing ⚠️
src/int/ct.rs 80.95% 12 Missing ⚠️
src/modular/boxed_monty_form/ct.rs 0.00% 9 Missing ⚠️
src/modular/const_monty_form/ct.rs 0.00% 6 Missing ⚠️
src/uint/ref_type/ct.rs 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1104      +/-   ##
==========================================
- Coverage   79.26%   79.24%   -0.02%     
==========================================
  Files         177      175       -2     
  Lines       18088    18091       +3     
==========================================
  Hits        14337    14337              
- Misses       3751     3754       +3     

☔ 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 e8672bb into master Jan 17, 2026
26 checks passed
@tarcieri tarcieri deleted the consolidate-ct-modules branch January 17, 2026 23:35
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