Stabilize circom frontend (#101)

* refactor test of compute_c circuit to use multiple lcccs&cccs instances

* refactor hypernova's compute_c circuit to reduce from `110635` to `553` constraints

* fix: change circom fcircuit to extract indexes of inputs and add keccak satisfaction test

* fix: disable wire mapping when loading r1cs

* chore: update .gitignore and compile.sh

* fix: use fixed circom-compat branch

* fix: use slice rather than vec ref

* chore: add keccak-chain circom

* chore: trigger checks

* fix: make typos check circom files names but not their content

* chore: remove keccak, add tests with more lightweight circom templates, test that circom circuits correctly result in Ok and Err when needed

* chore: trigger checks

* fix: re-add circuit for full flow example, change naming

* chore: comment with link to issue 104, disable constraints check

* chore: remove `full_flow_example` from the examples and its
corresponding circom circuit

* chore: update `circom-compat` repo

* chore: clippy

* chore: stop excluding circom files from typos checker

* chore: remove changes on `typos.toml`

---------

Co-authored-by: arnaucube <root@arnaucube.com>
This commit is contained in:
Pierre
2024-05-28 16:30:25 +02:00
committed by GitHub
parent ed1faee6bf
commit da4ab5c937
10 changed files with 150 additions and 53 deletions

View File

@@ -56,10 +56,11 @@ fn main() {
];
// initialize the Circom circuit
let r1cs_path =
PathBuf::from("./folding-schemes/src/frontend/circom/test_folder/external_inputs.r1cs");
let r1cs_path = PathBuf::from(
"./folding-schemes/src/frontend/circom/test_folder/with_external_inputs.r1cs",
);
let wasm_path = PathBuf::from(
"./folding-schemes/src/frontend/circom/test_folder/external_inputs_js/external_inputs.wasm",
"./folding-schemes/src/frontend/circom/test_folder/with_external_inputs_js/with_external_inputs.wasm",
);
let f_circuit_params = (r1cs_path, wasm_path, 1, 2);