load_artifacts

Function load_artifacts 

Source
pub fn load_artifacts(name: &str) -> Result<(PathBuf, PathBuf)>
Expand description

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.

§Arguments

  • name - Name of the circuit (without file extension)

§Returns

Returns Ok((wasm_path, r1cs_path)) if both files exist, or an error if either file is not found at the expected location.