o1-labs / docs2

Docs website for the Mina Protocol.
https://docs.minaprotocol.com
78 stars 121 forks source link

Document Mina.transaction execution flow #356

Open shimkiv opened 1 year ago

shimkiv commented 1 year ago

Mina.transaction runs the entire callback 2x. Then, tx.prove runs each method that needs proving once more. So 3x in total when you do proving, 2x when not


when they need to know it why we need to know about this execution flow

I remember we supposed to have the zkApp transaction lifecycle description for developers somewhere in docs. Not sure though if it is still WIP and if discussed here information supposed to be included there. It is important to let devs know about the specifics of transactions executions (execution of 2 or 3 times) so that they can implement methods correctly.

who needs to know

devs I guess mostly

how they will use it

it is not something they can use like API calls but an information to consider upon work on zkApps

barriebyron commented 1 year ago