Clearmatics Libsnark
0.1
C++ library for zkSNARK proofs
|
#include <fp3_gadgets.hpp>
Public Types | |
typedef Fp3T::my_Fp | FieldT |
Public Member Functions | |
Fp3_mul_by_lc_gadget (protoboard< FieldT > &pb, const Fp3_variable< Fp3T > &A, const pb_linear_combination< FieldT > &lc, const Fp3_variable< Fp3T > &result, const std::string &annotation_prefix) | |
void | generate_r1cs_constraints () |
void | generate_r1cs_witness () |
![]() | |
gadget (protoboard< Fp3T::my_Fp > &pb, const std::string &annotation_prefix) | |
Public Attributes | |
Fp3_variable< Fp3T > | A |
pb_linear_combination< FieldT > | lc |
Fp3_variable< Fp3T > | result |
Additional Inherited Members | |
![]() | |
protoboard< Fp3T::my_Fp > & | pb |
const std::string | annotation_prefix |
Gadget that creates constraints for Fp3 multiplication by a linear combination.
Definition at line 101 of file fp3_gadgets.hpp.
typedef Fp3T::my_Fp libsnark::Fp3_mul_by_lc_gadget< Fp3T >::FieldT |
Definition at line 104 of file fp3_gadgets.hpp.
libsnark::Fp3_mul_by_lc_gadget< Fp3T >::Fp3_mul_by_lc_gadget | ( | protoboard< FieldT > & | pb, |
const Fp3_variable< Fp3T > & | A, | ||
const pb_linear_combination< FieldT > & | lc, | ||
const Fp3_variable< Fp3T > & | result, | ||
const std::string & | annotation_prefix | ||
) |
void libsnark::Fp3_mul_by_lc_gadget< Fp3T >::generate_r1cs_constraints | ( | ) |
void libsnark::Fp3_mul_by_lc_gadget< Fp3T >::generate_r1cs_witness | ( | ) |
Fp3_variable<Fp3T> libsnark::Fp3_mul_by_lc_gadget< Fp3T >::A |
Definition at line 106 of file fp3_gadgets.hpp.
pb_linear_combination<FieldT> libsnark::Fp3_mul_by_lc_gadget< Fp3T >::lc |
Definition at line 107 of file fp3_gadgets.hpp.
Fp3_variable<Fp3T> libsnark::Fp3_mul_by_lc_gadget< Fp3T >::result |
Definition at line 108 of file fp3_gadgets.hpp.