mina icon indicating copy to clipboard operation
mina copied to clipboard

Support flexible circuit values

Open mitschabaude opened this issue 3 years ago • 0 comments

  • companion to https://github.com/o1-labs/snarkyjs/pull/416
  • changes methods on primitive types: ofFields -> fromFields, ofBits -> fromBits, to be compatible with the new generalized typ / CircuitValue in JS
  • expose a more low-level variant of exists to JS, and define the public-facing Circuit.witness on the JS side instead, so that we can manage our CircuitValues in JS (the OCaml side will just witness an array of field elements)

mitschabaude avatar Sep 20 '22 09:09 mitschabaude