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

Change curve #23

Open
cnasikas opened this issue Oct 20, 2018 · 2 comments
Open

Change curve #23

cnasikas opened this issue Oct 20, 2018 · 2 comments

Comments

@cnasikas
Copy link
Contributor

cnasikas commented Oct 20, 2018

Hi!

Is it possible to change the curve ie from BN128 to ALT_BN128 without modifying the pequin files ? Like -DCURVE=ALT_BN128 ?

Thanks in advanced

@maxhowald
Copy link
Contributor

According to libsnark's documentation here, you'll need to rebuild libsnark with cmake -DCURVE=ALT_BN128.

Note, libsnark is built and installed as part of the pepper setup process at the end of this script.

Finally, add the appropriate flag to our Makefile here:

# according to libsnark's documentation, we need to use the same conditional defines libsnark was compiled with, as found in
# thirdparty/libsnark/build/libsnark/CMakeFiles/snark.dir/flags.make
CXXFLAGS = -m64 -std=c++11 -DCURVE_BN128 -DBN_SUPPORT_SNARK -DBINARY_OUTPUT -DMONTGOMERY_OUTPUT -DNO_PROCPS -DUSE_ASM

@cnasikas
Copy link
Contributor Author

cnasikas commented Oct 22, 2018

Thanks a lot for your answer. I am aware of the process you mentioned. I was wondering if it is possible to do it without modifying peppers's Makefile or installation script (probably not).

Thanks a lot!!

P.S: Feel free to close this issue if there is no alternative for the moment

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

No branches or pull requests

2 participants