chore: bfv circuit comment

This commit is contained in:
Enrico Bottazzi
2023-10-02 15:09:54 +02:00
parent 2662b51afd
commit ad564cea4d

View File

@@ -168,9 +168,7 @@ fn bfv_encryption_circuit<F: ScalarField>(
- m must be a polynomial in the R_t ring => Coefficients must be in the [0, T) range and the degree of m must be N - 1
Approach:
- `reduce_poly_mod` takes as input a polynomial and a modulus and returns the polynomial reduced by the modulus.
The constraint set is that the input polynomial is equal to the output polynomial meaning that the coefficients of the input polynomial
were already in the [0, T) range
- Perform a range check on the coefficients of m to be in the [0, T) range
- The assignment for loop above guarantees that the degree of m is N - 1
*/