Clearmatics Libsnark
0.1
C++ library for zkSNARK proofs
|
#include <fp3_gadgets.hpp>
Public Types | |
typedef Fp3T::my_Fp | FieldT |
Public Member Functions | |
Fp3_sqr_gadget (protoboard< FieldT > &pb, const Fp3_variable< Fp3T > &A, 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 |
Fp3_variable< Fp3T > | result |
std::shared_ptr< Fp3_mul_gadget< Fp3T > > | mul |
Additional Inherited Members | |
![]() | |
protoboard< Fp3T::my_Fp > & | pb |
const std::string | annotation_prefix |
Gadget that creates constraints for Fp3 squaring.
Definition at line 124 of file fp3_gadgets.hpp.
typedef Fp3T::my_Fp libsnark::Fp3_sqr_gadget< Fp3T >::FieldT |
Definition at line 127 of file fp3_gadgets.hpp.
libsnark::Fp3_sqr_gadget< Fp3T >::Fp3_sqr_gadget | ( | protoboard< FieldT > & | pb, |
const Fp3_variable< Fp3T > & | A, | ||
const Fp3_variable< Fp3T > & | result, | ||
const std::string & | annotation_prefix | ||
) |
void libsnark::Fp3_sqr_gadget< Fp3T >::generate_r1cs_constraints | ( | ) |
void libsnark::Fp3_sqr_gadget< Fp3T >::generate_r1cs_witness | ( | ) |
Fp3_variable<Fp3T> libsnark::Fp3_sqr_gadget< Fp3T >::A |
Definition at line 129 of file fp3_gadgets.hpp.
std::shared_ptr<Fp3_mul_gadget<Fp3T> > libsnark::Fp3_sqr_gadget< Fp3T >::mul |
Definition at line 132 of file fp3_gadgets.hpp.
Fp3_variable<Fp3T> libsnark::Fp3_sqr_gadget< Fp3T >::result |
Definition at line 130 of file fp3_gadgets.hpp.