diff --git a/src/ring.rs b/src/ring.rs index e5a629c..f686dd9 100644 --- a/src/ring.rs +++ b/src/ring.rs @@ -151,10 +151,10 @@ where piop_params: PiopParams, } +// Evaluation domain size required for the given ring size. #[inline(always)] -fn domain_size(ring_size: usize) -> usize { - const RING_DOMAIN_OVERHEAD: usize = 257; - 1 << ark_std::log2(ring_size + RING_DOMAIN_OVERHEAD) +fn domain_size(ring_size: usize) -> usize { + 1 << ark_std::log2(ring_size + ScalarField::::MODULUS_BIT_SIZE as usize + 4) } #[allow(private_bounds)]