zeko-labs / zeko

Zeko: zk-Rollup for Mina, a succinct blockchain
https://zeko.io
Apache License 2.0
23 stars 3 forks source link

Make sure rules don't use global mutable state by accident. #224

Open L-as opened 2 weeks ago

L-as commented 2 weeks ago

We ideally want something like the opposite of make_checked, i.e. something that resets the global mutable state to an invalid value.

I have a feeling the internal state of Snarky can become invalid if you do run_checked (let* () = f in let* () = g () in ()) if g () makes use of the global mutable state. I might be wrong though.