cartesi / rollups

Cartesi Rollups
30 stars 12 forks source link

Refactor `update-proofs.sh` #208

Closed guidanoli closed 1 year ago

guidanoli commented 1 year ago

📚 Context

Upon a FinishEpochRequest, the server manager generates a FinishEpochResponse, which contains, amongst other things, proofs for each output generated by each input in the finished epoch. These proofs must be provided to the on-chain contracts in order to validate notices and execute vouchers.

In order to check the on-chain output validation code, we use a DApp that generates notices and vouchers for every input it receives, like the echo machines in rollups-examples. In order to generate specific types of outputs, we've built a system that allows proofs to be updated on-the-fly.

This system, however, has grown far too complex, and with more dependencies than we'd like to impose on users, and with more manual maintenance than we'd like to do as developers. We'll dive into each of the problems in the next sessions.

✔️ Solution

📈 Subtasks