Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(integer): restore assert after using 3_3 params for CRT doctests #676

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

IceTDrinker
Copy link
Member

closes: https://github.com/zama-ai/tfhe-rs-internal/issues/256

PR content/description

  • fix max degree for CRT keys which don't need to propagate carries

also prevent users to have access to gen_keys which was wrong for the CRT max degree, the old Integer ClientKey is still accessible through as_ref calls, but some convenience functions have been added on the key itself

Some API breaks because of the change

Check-list:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • Relevant issues are marked as resolved/closed, related issues are linked in the description
  • Check for breaking changes (including serialization changes) and add them to commit message following the conventional commit specification

Copy link

github-actions bot commented Nov 9, 2023

@slab-ci cpu_fast_test

@IceTDrinker
Copy link
Member Author

@slab-ci cpu_fast_test

Copy link

Pull Request has been approved 🎉
Launching full test suite...
@slab-ci cpu_test
@slab-ci cpu_integer_test
@slab-ci cpu_multi_bit_test
@slab-ci cpu_wasm_test
@slab-ci csprng_randomness_testing

@IceTDrinker
Copy link
Member Author

@slab-ci csprng_randomness_testing

@IceTDrinker
Copy link
Member Author

the failure is linked to keys being generated for radix and then loaded for CRT from the cache, several functions are only for the radix case on server keys, I will take the time to update the various functions

or it is time to introduce a separate radix and crt server keys, will wait next week

- fix max degree for CRT keys which don't need to propagate carries

BREAKING CHANGE:
pub API removed from pub interface
- this was not properly ignoring the keycache if a file had a specific
extension
@IceTDrinker IceTDrinker force-pushed the am/fix/restore-crt-assert branch from 9ac0c63 to 57c1edd Compare November 13, 2023 13:59
@github-actions github-actions bot removed the approved label Nov 13, 2023
Copy link

@slab-ci cpu_fast_test

@IceTDrinker
Copy link
Member Author

doctests run ok on my m6i, still would prefer a proof read for the last things I changed

Copy link

Pull Request has been approved 🎉
Launching full test suite...
@slab-ci cpu_test
@slab-ci cpu_integer_test
@slab-ci cpu_multi_bit_test
@slab-ci cpu_wasm_test
@slab-ci csprng_randomness_testing

@IceTDrinker IceTDrinker merged commit b458397 into main Nov 15, 2023
18 checks passed
@IceTDrinker IceTDrinker deleted the am/fix/restore-crt-assert branch November 15, 2023 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants