scipr-lab / libsnark

C++ library for zkSNARKs
Other
1.81k stars 572 forks source link

prime field power check with exponentiation_gadget() #150

Open vadym-f opened 5 years ago

vadym-f commented 5 years ago

Base field declared as my_Fp for parent gadget() class prevents verifying exponentiation in a base (prime) field.

For prime fields, it could be explicitly defined that base field is the field given (as template parameter), to complement base field definitions (my_Fp) for extensions like Fp2_model.