willemolding / CarteZcash

A ZCash L2 built as a Cartesi RollApp. Winner of the 2024 Cartesi Online Hackathon.
https://taikai.network/cartesi/hackathons/cartesi-online-hackathon-2024/projects/cltzrxj6o0f8mwc012mcjc6sb/idea
Apache License 2.0
5 stars 2 forks source link

Store state in TinyCash rather than rely on Zebra State Service #20

Closed willemolding closed 2 months ago

willemolding commented 2 months ago

Part of making the state transition constant sized means moving away from using the Zebra rocksdb as the main source of state. This worked well for the hackathon as it needed minimal protocol changes but for a proper rollup state transition we don't want to use Rocksdb.

This PR moves the minimal required state into the TinyCash struct. Turns out the state needed can actually be very small since there are no re-orgs or forks to worry about.

Closes #12