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

feat(circom): enable circom proof generation without compilation #419

Merged

Conversation

chokobole
Copy link
Contributor

@chokobole chokobole commented May 17, 2024

Description

This PR enables proof generation with the same interface as rapidsnark

@chokobole chokobole force-pushed the feat/enable-circom-proof-generation-without-compilation branch 4 times, most recently from e216c3c to 3b51bd2 Compare May 20, 2024 03:52
tachyon/base/auto_reset.h Show resolved Hide resolved
vendors/circom/circomlib/zkey/verifying_key.h Outdated Show resolved Hide resolved
vendors/circom/circomlib/wtns/BUILD.bazel Show resolved Hide resolved
@chokobole chokobole force-pushed the feat/enable-circom-proof-generation-without-compilation branch from 3b51bd2 to 643a0ca Compare May 20, 2024 08:27
Copy link
Contributor

@ashjeong ashjeong left a comment

Choose a reason for hiding this comment

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

49db2db
please fix the message to be as such:

fix(math): set infinity to true if the point is the point at infinity

vendors/circom/circomlib/r1cs/r1cs_parser.h Outdated Show resolved Hide resolved
tachyon/base/auto_reset.h Show resolved Hide resolved
tachyon/base/auto_reset.h Show resolved Hide resolved
tachyon/base/auto_reset.h Show resolved Hide resolved
tachyon/base/auto_reset.h Show resolved Hide resolved
vendors/circom/circomlib/zkey/zkey.h Outdated Show resolved Hide resolved
vendors/circom/circomlib/zkey/zkey_parser_unittest.cc Outdated Show resolved Hide resolved
vendors/circom/circomlib/zkey/zkey.h Outdated Show resolved Hide resolved
vendors/circom/circomlib/json/json.h Outdated Show resolved Hide resolved
vendors/circom/BUILD.bazel Show resolved Hide resolved
Copy link
Contributor

@dongchangYoo dongchangYoo left a comment

Choose a reason for hiding this comment

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

LGTM

@chokobole chokobole force-pushed the feat/enable-circom-proof-generation-without-compilation branch 3 times, most recently from 9de7df5 to 77a26de Compare May 20, 2024 10:21
This modifes the (de)serialization process to exclude the `infinity` flag,
aligning it with (de)serialization from/to JSON. This change significantly
reduces output size, given that most points are not at infinity.
Refactor the `R1CSParser::Parse()` method into a standalone function
to avoid unnecessary instantiation of `R1CSParser` objects solely
for method invocation.
Refactor the `ZKeyParser::Parse()` method into a standalone function
to avoid unnecessary instantiation of `ZKeyParser` objects solely
for method invocation.
@chokobole chokobole force-pushed the feat/enable-circom-proof-generation-without-compilation branch from 77a26de to 09f238c Compare May 20, 2024 10:42
Copy link
Contributor

@ashjeong ashjeong left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@TomTaehoonKim TomTaehoonKim left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@Insun35 Insun35 left a comment

Choose a reason for hiding this comment

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

LGTM

@chokobole chokobole merged commit 08f6253 into main May 22, 2024
3 checks passed
@chokobole chokobole deleted the feat/enable-circom-proof-generation-without-compilation branch May 22, 2024 00:30
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.

None yet

5 participants