This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 858
Two Word
types in zkEVM codebase
#1736
Labels
T-feature
Type: new features
Comments
There were some proposals for Circuit's words at an online meeting including:
|
There are also some types with the same names in bus mapping and zkevm-circuits such as |
@rrtoledo Let's address the renaming of the Blocks in a new issue. Feel free to choose any name you see fit for Word. |
5 tasks
github-merge-queue bot
pushed a commit
that referenced
this issue
Feb 7, 2024
### Description Replacing Word with WordHiLo. ### Issue Link #1736 ### Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update - [x] Refactor ### Contents - Replace word::Word with WordLoHi - Replace word::WordCell with WordLoHiCell ### Rationale - WordLimbs and WordCell is used somewhere so couldn't go with that. - ZWord and CWord could be used, however, I saw that Word is actually an alias for Word2 ([source](https://github.com/privacy-scaling-explorations/zkevm-circuits/blob/7f356548dd6dd614289b9700a40fbc80c4949b47/zkevm-circuits/src/util/word.rs#L203)). Which is an alias of WordLimbs<2>. So Word2 could be better than ZWord or CWord, but I think WordHiLo is even better and makes the code more obvious, since we have hi-lo terminology in many places. ### How Has This Been Tested? Built all packages locally.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the feature you would like
Currently, there are two
Word
types in the codebaseIt would be great if one of these is renamed.
Additional context
No response
The text was updated successfully, but these errors were encountered: