Clearmatics Libsnark
0.1
C++ library for zkSNARK proofs
|
#include <fp4_gadgets.hpp>
Public Types | |
typedef Fp4T::my_Fp | FieldT |
typedef Fp4T::my_Fpe | Fp2T |
Public Member Functions | |
Fp4_variable (protoboard< FieldT > &pb, const std::string &annotation_prefix) | |
Fp4_variable (protoboard< FieldT > &pb, const Fp4T &el, const std::string &annotation_prefix) | |
Fp4_variable (protoboard< FieldT > &pb, const Fp2_variable< Fp2T > &c0, const Fp2_variable< Fp2T > &c1, const std::string &annotation_prefix) | |
void | generate_r1cs_equals_const_constraints (const Fp4T &el) |
void | generate_r1cs_witness (const Fp4T &el) |
Fp4T | get_element () |
Fp4_variable< Fp4T > | Frobenius_map (const size_t power) const |
void | evaluate () const |
![]() | |
gadget (protoboard< Fp4T::my_Fp > &pb, const std::string &annotation_prefix) | |
Public Attributes | |
Fp2_variable< Fp2T > | c0 |
Fp2_variable< Fp2T > | c1 |
Additional Inherited Members | |
![]() | |
protoboard< Fp4T::my_Fp > & | pb |
const std::string | annotation_prefix |
Gadget that represents an Fp4 variable.
Definition at line 27 of file fp4_gadgets.hpp.
typedef Fp4T::my_Fp libsnark::Fp4_variable< Fp4T >::FieldT |
Definition at line 30 of file fp4_gadgets.hpp.
typedef Fp4T::my_Fpe libsnark::Fp4_variable< Fp4T >::Fp2T |
Definition at line 31 of file fp4_gadgets.hpp.
libsnark::Fp4_variable< Fp4T >::Fp4_variable | ( | protoboard< FieldT > & | pb, |
const std::string & | annotation_prefix | ||
) |
libsnark::Fp4_variable< Fp4T >::Fp4_variable | ( | protoboard< FieldT > & | pb, |
const Fp4T & | el, | ||
const std::string & | annotation_prefix | ||
) |
libsnark::Fp4_variable< Fp4T >::Fp4_variable | ( | protoboard< FieldT > & | pb, |
const Fp2_variable< Fp2T > & | c0, | ||
const Fp2_variable< Fp2T > & | c1, | ||
const std::string & | annotation_prefix | ||
) |
void libsnark::Fp4_variable< Fp4T >::evaluate | ( | ) | const |
Fp4_variable<Fp4T> libsnark::Fp4_variable< Fp4T >::Frobenius_map | ( | const size_t | power | ) | const |
void libsnark::Fp4_variable< Fp4T >::generate_r1cs_equals_const_constraints | ( | const Fp4T & | el | ) |
void libsnark::Fp4_variable< Fp4T >::generate_r1cs_witness | ( | const Fp4T & | el | ) |
Fp4T libsnark::Fp4_variable< Fp4T >::get_element | ( | ) |
Fp2_variable<Fp2T> libsnark::Fp4_variable< Fp4T >::c0 |
Definition at line 33 of file fp4_gadgets.hpp.
Fp2_variable<Fp2T> libsnark::Fp4_variable< Fp4T >::c1 |
Definition at line 34 of file fp4_gadgets.hpp.