Add Into<BigInt>
bound to FieldElementWithInteger::Integer
#1071
Labels
Into<BigInt>
bound to FieldElementWithInteger::Integer
#1071
We could clean up our
TypeWithNoise
implementations if we added a bound to theInteger
associated type that provided conversions to and fromBigInt
. This is needed because we have to take the modulus of the noise to be added in theBigInt
domain, before projecting into the field. (This operation is primarily necessary to wrap around negative noise values, but it is moreover necessary so that we correctly implement the DP mechanism on integers, and then project into the field as a post-processing step, preserving the DP guarantees) This trait change should wait for our next batch of breaking changes.The text was updated successfully, but these errors were encountered: