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_gadget (protoboard< FieldT > &pb, const Fp3_variable< Fp3T > &A, const Fp3_variable< Fp3T > &B, 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 > | B |
Fp3_variable< Fp3T > | result |
pb_variable< FieldT > | v0 |
pb_variable< FieldT > | v4 |
Additional Inherited Members | |
![]() | |
protoboard< Fp3T::my_Fp > & | pb |
const std::string | annotation_prefix |
Gadget that creates constraints for Fp3 by Fp3 multiplication.
Definition at line 74 of file fp3_gadgets.hpp.
typedef Fp3T::my_Fp libsnark::Fp3_mul_gadget< Fp3T >::FieldT |
Definition at line 77 of file fp3_gadgets.hpp.
libsnark::Fp3_mul_gadget< Fp3T >::Fp3_mul_gadget | ( | protoboard< FieldT > & | pb, |
const Fp3_variable< Fp3T > & | A, | ||
const Fp3_variable< Fp3T > & | B, | ||
const Fp3_variable< Fp3T > & | result, | ||
const std::string & | annotation_prefix | ||
) |
void libsnark::Fp3_mul_gadget< Fp3T >::generate_r1cs_constraints | ( | ) |
void libsnark::Fp3_mul_gadget< Fp3T >::generate_r1cs_witness | ( | ) |
Fp3_variable<Fp3T> libsnark::Fp3_mul_gadget< Fp3T >::A |
Definition at line 79 of file fp3_gadgets.hpp.
Fp3_variable<Fp3T> libsnark::Fp3_mul_gadget< Fp3T >::B |
Definition at line 80 of file fp3_gadgets.hpp.
Fp3_variable<Fp3T> libsnark::Fp3_mul_gadget< Fp3T >::result |
Definition at line 81 of file fp3_gadgets.hpp.
pb_variable<FieldT> libsnark::Fp3_mul_gadget< Fp3T >::v0 |
Definition at line 83 of file fp3_gadgets.hpp.
pb_variable<FieldT> libsnark::Fp3_mul_gadget< Fp3T >::v4 |
Definition at line 84 of file fp3_gadgets.hpp.