Fix GMiMCGate

This commit is contained in:
Daniel Lubarov 2021-05-20 05:35:16 -07:00
parent 747974558f
commit a4be58557e
3 changed files with 8 additions and 2 deletions

View File

@ -59,6 +59,11 @@ impl<F: Field, const R: usize> GMiMCGate<F, R> {
fn wire_cubing_input(i: usize) -> usize {
2 * W + 3 + i
}
/// End of wire indices, exclusive.
fn end() -> usize {
2 * W + 3 + R
}
}
impl<F: Field, const R: usize> Gate<F> for GMiMCGate<F, R> {
@ -223,7 +228,7 @@ impl<F: Field, const R: usize> Gate<F> for GMiMCGate<F, R> {
}
fn num_wires(&self) -> usize {
W + 1 + R
Self::end()
}
fn num_constants(&self) -> usize {

View File

@ -86,6 +86,7 @@ impl<F: Field + Extendable<D>, const D: usize> InterpolationGate<F, D> {
start..start + D
}
/// End of wire indices, exclusive.
fn end(&self) -> usize {
self.start_coeffs() + self.num_points * D
}

View File

@ -304,7 +304,7 @@ mod tests {
}
let config = CircuitConfig {
num_wires: 114,
num_wires: 12 + 12 + 3 + 101,
num_routed_wires: 27,
..CircuitConfig::default()
};