feat: upgrade RwTable and add aux#94
Conversation
|
I've taken a look at this PR and I have a question: could you explain which tag in the RW table will use the |
Hi @ed255! As in https://hackmd.io/VCGteyZEQFKUjHA_A72f1Q#Data-kinds, only
|
han0110
left a comment
There was a problem hiding this comment.
LGTM!
Also want to give some more context on why we remove write_only_persistent: It's a premature optimization for those states (e.g. TxRefund and AccountDestructed) which can't affect future execution, to reduce the amount of reversion write.
But in practice reversion will be costly by gas/rw or gas/step, so we don't need to worry about them. Also such optimization might not be future proof, since we don't know if in the future EVM execution depends on such state or not.
| # - key3 | ||
| # - key4 | ||
| # - value | ||
| # - value_prev |
There was a problem hiding this comment.
just one small question, seems value_prev not present in table of page: https://hackmd.io/VCGteyZEQFKUjHA_A72f1Q
There was a problem hiding this comment.
The table in the note is for State circuit itself. When it outputs to rw_table, it can get access to value_prev by rotation directly instead of having it in witness in the same row.
|
tests fail. need to fix. |
6ad675d to
47b195b
Compare
|
fixed |
upgrade RwTable layout according to https://hackmd.io/VCGteyZEQFKUjHA_A72f1Q