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

Add PSE halo2 template to CLI #107

Merged
merged 8 commits into from
Jun 13, 2024
Merged

Add PSE halo2 template to CLI #107

merged 8 commits into from
Jun 13, 2024

Conversation

katiemckeon
Copy link
Contributor

This PR introduces another template circuit for the PSE v0.3.0 Halo2 version we now support. Since Axiom v0.3.0 is equally likely to be of interest to users, I did not decide to replace that template. Rather we now have two choices for Halo2.

This complicates our template locations a little bit. Please determine if you are okay with the way I did that (templatePath is a new variable that usually equals circuitType, except in the case of Halo2, where it becomes $circuitType/$halo2Version.)

I have tested existing frameworks to ensure the introduction of templatePath did not effect support for those. I also ran sindri deploy and sindri proof create on both Halo2 templates to ensure correctness.

src/cli/init.ts Outdated
"_",
)}::circuit_def::CircuitInput`;
const className = `${packageName.replace(/-/g, "_")}${circuitPath}`;
templatePath = `${templatePath}/${halo2Version}`;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am simultaneously aware I am offending all sorts of typing rules here, and unsure how to fix it. Would appreciate guidance. (You are also welcome to step in here and directly push edits to init.ts if you don't like the templatePath route)

@KPreisner KPreisner linked an issue May 22, 2024 that may be closed by this pull request
Copy link
Contributor

@sangaline sangaline left a comment

Choose a reason for hiding this comment

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

lgtm

@sangaline sangaline merged commit 7c2e72a into main Jun 13, 2024
6 checks passed
@sangaline sangaline deleted the klm-pse-halo2-template branch June 13, 2024 13:20
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.

Add Halo2-PSE Template Circuit to init
2 participants