o1-labs / docs2

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

List of common pitfalls for TS devs #954

Open garwalsh opened 3 months ago

MartinMinkov commented 3 months ago

List of a few common pitfalls to document:

  1. In-circuit randomness
  2. Reading out values of field elements in provable code
  3. Always try to compile methods and create proofs as a way of ensuring a base level of correctness (to debug)
  4. Conditional branching
  5. Inheritence with SmartContract