Clearmatics Libsnark
0.1
C++ library for zkSNARK proofs
|
#include <fp2_gadgets.hpp>
Public Types | |
typedef Fp2T::my_Fp | FieldT |
Public Member Functions | |
Fp2_sqr_gadget (protoboard< FieldT > &pb, const Fp2_variable< Fp2T > &A, const Fp2_variable< Fp2T > &result, const std::string &annotation_prefix) | |
void | generate_r1cs_constraints () |
void | generate_r1cs_witness () |
![]() | |
gadget (protoboard< Fp2T::my_Fp > &pb, const std::string &annotation_prefix) | |
Public Attributes | |
Fp2_variable< Fp2T > | A |
Fp2_variable< Fp2T > | result |
Additional Inherited Members | |
![]() | |
protoboard< Fp2T::my_Fp > & | pb |
const std::string | annotation_prefix |
Gadget that creates constraints for Fp2 squaring.
Definition at line 125 of file fp2_gadgets.hpp.
typedef Fp2T::my_Fp libsnark::Fp2_sqr_gadget< Fp2T >::FieldT |
Definition at line 128 of file fp2_gadgets.hpp.
libsnark::Fp2_sqr_gadget< Fp2T >::Fp2_sqr_gadget | ( | protoboard< FieldT > & | pb, |
const Fp2_variable< Fp2T > & | A, | ||
const Fp2_variable< Fp2T > & | result, | ||
const std::string & | annotation_prefix | ||
) |
void libsnark::Fp2_sqr_gadget< Fp2T >::generate_r1cs_constraints | ( | ) |
void libsnark::Fp2_sqr_gadget< Fp2T >::generate_r1cs_witness | ( | ) |
Fp2_variable<Fp2T> libsnark::Fp2_sqr_gadget< Fp2T >::A |
Definition at line 130 of file fp2_gadgets.hpp.
Fp2_variable<Fp2T> libsnark::Fp2_sqr_gadget< Fp2T >::result |
Definition at line 131 of file fp2_gadgets.hpp.