Skip to content

Commit

Permalink
Generic domain size
Browse files Browse the repository at this point in the history
  • Loading branch information
davxy committed Aug 21, 2024
1 parent 36cdc90 commit b6a6d8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ where
piop_params: PiopParams<S>,
}

// 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<S: RingSuite>(ring_size: usize) -> usize {
1 << ark_std::log2(ring_size + ScalarField::<S>::MODULUS_BIT_SIZE as usize + 4)
}

#[allow(private_bounds)]
Expand Down

0 comments on commit b6a6d8d

Please sign in to comment.