-
Notifications
You must be signed in to change notification settings - Fork 37
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
StarkColumnsView<T>
structs for other STARKs
#312
Comments
That's indeed something that's been bugging me for a while but I never got to get around it. The view approach is cleaner IMO, although it may require some workarounds for clean column index access (typically for range-check) as visible on the KeccakSpongeStark side. There's also a bit of code smell for all the associated |
Valida uses a derive macro to implement |
Similar to #311, this would require a standalone sub-crate for proc macros. |
In general I'd also tend to advise against, but in this particular scenario of |
Remains:
I haven't had time to handle them yet. Feel free to pick them up, or I'll do them sometime in the coming weeks. |
Currently the
CpuStark
andKeccakSpongeStark
use structs to represent their respective columns, while other starks use raw indices into their columns. Is there a reason for this difference, or would some PRs refactoring other starks to useStarkColumnsView<T>
structs be helpful?The
CpuColumnsView
struct:zk_evm/evm_arithmetization/src/cpu/columns/mod.rs
Lines 58 to 95 in baecefc
compared to the columns defined in the
MemoryStark
:zk_evm/evm_arithmetization/src/memory/columns.rs
Lines 5 to 21 in baecefc
The text was updated successfully, but these errors were encountered: