Functionsยง
- load_
artifacts - Load the compiled WASM and R1CS artifacts for a circuit by name.
This expects files to be located under the
CIRCUIT_OUT_DIRtree as produced by the build system. - poseidon2_
compression - Poseidon2 hash of two field elements using optimized compression mode
- poseidon2_
hash2 - Poseidon2 hash of 2 field elements (t = 3, r=2, c=1)
- poseidon2_
hash3 - Poseidon2 hash of 3 field elements (t = 4, r=3, c=1)
- scalar_
to_ bigint - Convert a field
Scalarinto a signedBigInt