pepper-project / pequin

A system for verifying outsourced computations, and applying SNARKs. Simplified release of the main Pepper codebase.
Other
122 stars 46 forks source link

Change curve #23

Open cnasikas opened 5 years ago

cnasikas commented 5 years ago

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 commented 5 years ago

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:

https://github.com/pepper-project/pequin/blob/c9417e8f929f028d056d687c46a6572eaf45c5b3/pepper/Makefile#L3-L5

cnasikas commented 5 years ago

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