mina
mina copied to clipboard
Support flexible circuit values
- 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 generalizedtyp/ CircuitValue in JS - expose a more low-level variant of
existsto JS, and define the public-facingCircuit.witnesson the JS side instead, so that we can manage our CircuitValues in JS (the OCaml side will just witness an array of field elements)