Module general

Module general 

Source

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_DIR tree 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 Scalar into a signed BigInt