docs2 icon indicating copy to clipboard operation
docs2 copied to clipboard

List of common pitfalls for TS devs

Open garwalsh opened this issue 9 months ago • 1 comments

garwalsh avatar May 14 '24 15:05 garwalsh

List of a few common pitfalls to document:

  1. In-circuit randomness
  2. Reading out values of field elements in provable code
  • Existing example: https://github.com/o1-labs/o1js/issues/224
  1. Always try to compile methods and create proofs as a way of ensuring a base level of correctness (to debug)
  2. Conditional branching
  3. Inheritence with SmartContract

MartinMinkov avatar May 14 '24 22:05 MartinMinkov