Skip to content

Conversation

@CarloModicaPortfolio
Copy link
Collaborator

  • 8 bits libs
  • refactor to PrimeField32
  • added extraction for multiset chek

pub struct KeccakCols<T> {
/// The `i`th value is set to 1 if we are in the `i`th round, otherwise 0.
pub step_flags: [T; NUM_ROUNDS],

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could unify the postimage columns with the a_prime_prime columns, since these are never both used in the same row. They effectively serve the same purpose, and by unifying these, we can get rid of the .when(not_final_row) conditions. Doing the latter may reduce the degree of the STARK from 4 to 3.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly, @CarloModicaPortfolio says we can unify step_flags[NUM_ROUNDS-1] with export.

.assert_eq(output, input);
}
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the below can go away when we unify the columns as discussed elsewhere in this review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants