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

Allow multiple extra_looking_sums for the same looked table #1591

Merged

Conversation

qope
Copy link
Contributor

@qope qope commented May 20, 2024

Currently, ctl_extra_looking_sums corresponds to the index of the looked table. The problem with this is that it is not possible to set another extra_looking_sums for the same looked table. For example, in zk_evm's keccak_stark, there are two CTLs for the same looked table, and therefore, it is not possible to use those two CTLs as extra_looking_sums. I addressed this issue by changing the type of ctl_extra_looking_sums to a HashMap similar to check_ctl, and making it correspond one-to-one with the index of the CTL.

Copy link
Contributor

@hratoanina hratoanina left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

starky/src/cross_table_lookup.rs Show resolved Hide resolved
starky/src/cross_table_lookup.rs Show resolved Hide resolved
starky/src/cross_table_lookup.rs Show resolved Hide resolved
@Nashtare
Copy link
Collaborator

Nashtare commented Jun 4, 2024

Also @qope could you please merge latest main into your branch to get clippy to go ✅? Thank you!
Not needed as no changes are required.

@Nashtare Nashtare merged commit 42e048f into 0xPolygonZero:main Jun 4, 2024
3 of 4 checks passed
@qope qope deleted the fix-multiple-ctl_extra_looking_sums branch June 21, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants