fluidex / fluidex-backend

Building the first permissionless layer2 orderbook DEX on Ethereum, powered by PLONK zk-rollup
https://www.fluidex.io/
38 stars 8 forks source link

For repo. of circuits, recursively use submodule managed by rollup-state-manager #81

Closed noel2004 closed 3 years ago

noel2004 commented 3 years ago

Currently backend maintain a standalone reference to the repo. of circuits as git submodule, so does rollup-state-manager project.

We notice that protocols inside L2 circuits must be consistent with the state managing code in rollup-manager. When the l2 circuits could not recognized input object generated from rollup-manager the whole backend would run into failure.

It may be a better solution that backend simply apply the circuits inside rollup-state-manager to ensure the l2 circuit and state producing code always being consistent