Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce Keccak columns by 145 #1738

Merged
merged 2 commits into from
Jan 23, 2024
Merged

Reduce Keccak columns by 145 #1738

merged 2 commits into from
Jan 23, 2024

Conversation

querolita
Copy link
Member

Closes #1709.

This PR leverages the fact that plenty of columns are only accessed during sponge rows, which only use 800 of the 1965 available curr columns. Storing those coefficients in curr saves us 145 columns (meaning additional field elements in the witness) whose consumed space is redundant otherwise.

As a side effect, this reduces the lines of code needed in the proof of Keccak.

Base automatically changed from zkvm/keccak/mode-flags to master January 23, 2024 13:19
Copy link
Member

@dannywillems dannywillems left a comment

Choose a reason for hiding this comment

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

I would add at the top level of the file a comment showing the layout used by both step types.

@dannywillems dannywillems merged commit 61216cd into master Jan 23, 2024
8 checks passed
@dannywillems dannywillems deleted the zkvm/keccak/join-flags branch January 23, 2024 13:47
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.

Reduce number of Keccak columns
2 participants