Skip to content

Conversation

@OBrezhniev
Copy link
Member

Configurable with templateName, templateParams & templatePublicSignals options.
Tries to autodetect template name if it's not provided (only when circom file has only one template).

… with templateName, templateParams & templatePublicSignals options. Tries to autodetect template name if it's not provided (only when circom file has only one template).
it("wasm: gen main with template name, params", async function () {

const circuit = await wasm_tester(
path.join(__dirname, "Arrays.circom"),
Copy link

Choose a reason for hiding this comment

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

This is beautiful!

{
templateName: "Arrays",
templateParams: [2, 2n],
templatePublicSignals: ["a", "commitment"],
Copy link

Choose a reason for hiding this comment

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

Cool!!!

Copy link

@alinush alinush left a comment

Choose a reason for hiding this comment

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

💯 🫡

@OBrezhniev OBrezhniev merged commit 2dd621f into main May 14, 2025
2 checks passed
@OBrezhniev OBrezhniev deleted the feature/autogenerate-main branch May 14, 2025 00:56
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