Fix stack overflow

This commit is contained in:
Daniel Lubarov 2023-01-10 21:03:46 -08:00
parent 8ba8bb62f2
commit be7a489c6e

View File

@ -74,11 +74,8 @@ impl<F: RichField + Extendable<D>, const D: usize> KeccakStark<F, D> {
rows
}
fn generate_trace_rows_for_perm(
&self,
input: [u64; NUM_INPUTS],
) -> [[F; NUM_COLUMNS]; NUM_ROUNDS] {
let mut rows = [[F::ZERO; NUM_COLUMNS]; NUM_ROUNDS];
fn generate_trace_rows_for_perm(&self, input: [u64; NUM_INPUTS]) -> Vec<[F; NUM_COLUMNS]> {
let mut rows = vec![[F::ZERO; NUM_COLUMNS]; NUM_ROUNDS];
// Populate the preimage for each row.
for round in 0..24 {