chore: upgrade tfhe-rs to v0.10.0 and adopt breaking changes #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The main focus of these changes is to replace the
bincode
serialization library withtfhe::safe_serialization
for secure serialization and deserialization of Fully Homomorphic Encryption (FHE) keys and related data structures.Serialization and Deserialization Updates:
bincode
withtfhe::safe_serialization
for serialization and deserialization of FHE keys incall.rs
,fhe_key.rs
,genesis.rs
,mock_decryption.rs
, andtoken.rs
. This includes updating functions to usesafe_serialize
andsafe_deserialize
with a maximum buffer size of 1 GB. [1] [2] [3] [4] [5]Dependency Updates:
tfhe
dependency version from0.7.2
to0.10.0
inCargo.toml
files to ensure compatibility with the new serialization methods.bincode
from dependencies inCargo.toml
and various source files where it was previously used. [1] [2] [3] [4]Code Cleanup:
borsh
andanyhow::Context
fromtoken.rs
andutils.rs
for cleaner and more maintainable code. [1] [2] [3]These changes improve the security and maintainability of the codebase by adopting safer serialization methods and cleaning up unnecessary dependencies.