-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
src/cli/init.ts
Outdated
"_", | ||
)}::circuit_def::CircuitInput`; | ||
const className = `${packageName.replace(/-/g, "_")}${circuitPath}`; | ||
templatePath = `${templatePath}/${halo2Version}`; |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
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 equalscircuitType
, 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 ransindri deploy
andsindri proof create
on both Halo2 templates to ensure correctness.