zama-ai / tfhe-rs

TFHE-rs: A Pure Rust implementation of the TFHE Scheme for Boolean and Integer Arithmetics Over Encrypted Data.
Other
906 stars 143 forks source link

Add versioning for the HL types #1230

Closed nsarlin-zama closed 3 months ago

nsarlin-zama commented 3 months ago

closes: please link all relevant issues

PR content/description

This PR adds versioning of the HL types. For this, some small improvement have been made to tfhe-versionable, the main one being the added support of Vec when T is a custom type. This is done with an additional trait, VersionizeVec. This allows to have complete versioning for Vec if T is custom, but to skip versioning if T is a built-in rust type.

Check-list: