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_direct_mul_gadget (protoboard< FieldT > &pb, const Fp4_variable< Fp4T > &A, const Fp4_variable< Fp4T > &B, const Fp4_variable< Fp4T > &result, const std::string &annotation_prefix) | |
void | generate_r1cs_constraints () |
void | generate_r1cs_witness () |
![]() | |
gadget (protoboard< Fp4T::my_Fp > &pb, const std::string &annotation_prefix) | |
Public Attributes | |
Fp4_variable< Fp4T > | A |
Fp4_variable< Fp4T > | B |
Fp4_variable< Fp4T > | result |
pb_variable< FieldT > | v1 |
pb_variable< FieldT > | v2 |
pb_variable< FieldT > | v6 |
Additional Inherited Members | |
![]() | |
protoboard< Fp4T::my_Fp > & | pb |
const std::string | annotation_prefix |
Gadget that creates constraints for Fp4 multiplication (direct formulas).
Definition at line 105 of file fp4_gadgets.hpp.
typedef Fp4T::my_Fp libsnark::Fp4_direct_mul_gadget< Fp4T >::FieldT |
Definition at line 108 of file fp4_gadgets.hpp.
typedef Fp4T::my_Fpe libsnark::Fp4_direct_mul_gadget< Fp4T >::Fp2T |
Definition at line 109 of file fp4_gadgets.hpp.
libsnark::Fp4_direct_mul_gadget< Fp4T >::Fp4_direct_mul_gadget | ( | protoboard< FieldT > & | pb, |
const Fp4_variable< Fp4T > & | A, | ||
const Fp4_variable< Fp4T > & | B, | ||
const Fp4_variable< Fp4T > & | result, | ||
const std::string & | annotation_prefix | ||
) |
void libsnark::Fp4_direct_mul_gadget< Fp4T >::generate_r1cs_constraints | ( | ) |
void libsnark::Fp4_direct_mul_gadget< Fp4T >::generate_r1cs_witness | ( | ) |
Fp4_variable<Fp4T> libsnark::Fp4_direct_mul_gadget< Fp4T >::A |
Definition at line 111 of file fp4_gadgets.hpp.
Fp4_variable<Fp4T> libsnark::Fp4_direct_mul_gadget< Fp4T >::B |
Definition at line 112 of file fp4_gadgets.hpp.
Fp4_variable<Fp4T> libsnark::Fp4_direct_mul_gadget< Fp4T >::result |
Definition at line 113 of file fp4_gadgets.hpp.
pb_variable<FieldT> libsnark::Fp4_direct_mul_gadget< Fp4T >::v1 |
Definition at line 115 of file fp4_gadgets.hpp.
pb_variable<FieldT> libsnark::Fp4_direct_mul_gadget< Fp4T >::v2 |
Definition at line 116 of file fp4_gadgets.hpp.
pb_variable<FieldT> libsnark::Fp4_direct_mul_gadget< Fp4T >::v6 |
Definition at line 117 of file fp4_gadgets.hpp.