fluidex / rollup-state-manager

5 stars 6 forks source link

Exclude eth addr from account state #195

Closed noel2004 closed 2 years ago

noel2004 commented 2 years ago

Involving both eth addr and l2 addr would cause rather huge pubdata cost for data avaliability. And involving eth addr inside account state seems has neither requirement nor benefits for our operations.

Analogies like zkSync also not include eth address for their deposit tx while applying almost the same logic as ours: deposit, and create / assign new account id if required.

It would be strongly recommended to exclude eth address from account state. This work need both modifications on rollup-manager and circuits: