-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat: TRM redesign #106
base: main
Are you sure you want to change the base?
feat: TRM redesign #106
Conversation
Signed-off-by: F Bojarski <[email protected]>
Signed-off-by: F Bojarski <[email protected]>
Signed-off-by: F Bojarski <[email protected]>
Signed-off-by: F Bojarski <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preliminary review. The DONE vs FIRST should be decided upon.
@@ -0,0 +1,25 @@ | |||
\begin{description} | |||
\item[\underline{Selector:}] none |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have expected IOMF selector or so. I haven't looked in detail but it seems that every row will spawn a lookup to WCP so I get that there may be no need for a selector. A bit of documentation would be nice either way .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need a selector, during padding it'll lookup into the padding of wcp, so no need for selector
we impose that | ||
\[ | ||
\wcpCallToLeq { | ||
anchorRow = i - \anchorRow , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be an argument in favour of not having a DONE
column but a FIRST
or so column ...
We fix the target of the accumulator column: | ||
\[ | ||
\boxed{\text{All constraints in this subsection assume } \done_{i} = 1 } | ||
\] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be worthwhile explaining the approach: trimming a 16 byte high part of an EVM word via
- proposing a decomposition
rawHi = to_be_trimmed * 256^4 + trmHi
- verifying that
to_be_trimmed < 256^12
trmHi < 256^4
No description provided.