Add initial MPT table layout#196
Conversation
|
Note: I added the "unified table proposal" eventhough it's not part of the MPT circuit design in order to make it easier to have a discussion about it; and taking into account that if it's implemented, the MPT circuit design and implementation is only extended (but nothing existing is modified), and this extension is quite simple. Some questions to discuss the "unified table proposal" would be:
|
Thanks @ed255 ! From some quick checking, I think unifying the lookup columns in the MPT circuit would improve performance only if the columns in the state circuit are unified too (for example, having But I can benchmark it at some point and then we can decide how to proceed. Also, I can benchmark how much of an impact a couple of additional columns in MPT has, but generally I am a bit concerned about the number of columns in MPT :) |
The current design of the state circuit puts
Having a benchmark sounds great! And yeah, totally agree on being careful with adding columns :) |
miha-stopar
left a comment
There was a problem hiding this comment.
LGTM (I thought I approved already yesterday, but somehow doesn't seem so)
That's cool :) |
032fce8 to
80c13d9
Compare
han0110
left a comment
There was a problem hiding this comment.
LGTM!
For the table part, I would think it as synthesized expression from MPT circuit, so having a unified table seems more reasonable to me.
Also I think the position of values doesn't matter, as long as we can get their expression, then there is no difference (the number of lookup matters). So using a single lookup to such unified table with tag also makes sense to me.
Ah, yeah, you are right. If we have an expression, we have a RLC of the columns involved and that means only one permutation and commitment. |
I've added the table layout of the current MPT circuit design, as well as a unified table proposal which is currently not considered in the MPT design.
The table layout information has been gathered from: