Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A0-4073: Add a basic circuit runner #48

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

A0-4073: Add a basic circuit runner #48

wants to merge 2 commits into from

Conversation

DamianStraszak
Copy link

Added a crate circuit_runner that allows to run the full pipeline of keygen, prove, verify (or mock) for a circuit written in halo2-lib. The halo2-lib circuits can be run by implementing a simple CircuitGenerator trait. See the square example for details. I tried to avoid the snark-verifier dependency, but failed to do so. This is doable, but I moved this to a separate task.
I also tried to make it more generic -- not hardcode BN256, this also seems possible, but requires some work (also not this PR).

The follow-up to this will be a new example (in examples) with a circuit using the abstractions from relations.

};

let instance = vec![Fr::from_u128(4)];
run(&cg, input.clone(), instance, k_circuit, k_srs);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to input.clone(), pass as input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants