Clearmatics Libsnark
0.1
C++ library for zkSNARK proofs
|
Gadget that creates constraints for the validity of a G2 variable. More...
#include <weierstrass_g2_gadget.hpp>
Public Types | |
typedef libff::Fr< ppT > | FieldT |
typedef libff::Fqe< other_curve< ppT > > | FqeT |
typedef libff::Fqk< other_curve< ppT > > | FqkT |
Public Member Functions | |
G2_checker_gadget (protoboard< FieldT > &pb, const G2_variable< ppT > &Q, const std::string &annotation_prefix) | |
void | generate_r1cs_constraints () |
void | generate_r1cs_witness () |
![]() | |
gadget (protoboard< libff::Fr< ppT > > &pb, const std::string &annotation_prefix) | |
Public Attributes | |
G2_variable< ppT > | Q |
std::shared_ptr< Fqe_variable< ppT > > | Xsquared |
std::shared_ptr< Fqe_variable< ppT > > | Ysquared |
std::shared_ptr< Fqe_variable< ppT > > | Xsquared_plus_a |
std::shared_ptr< Fqe_variable< ppT > > | Ysquared_minus_b |
std::shared_ptr< Fqe_sqr_gadget< ppT > > | compute_Xsquared |
std::shared_ptr< Fqe_sqr_gadget< ppT > > | compute_Ysquared |
std::shared_ptr< Fqe_mul_gadget< ppT > > | curve_equation |
Additional Inherited Members | |
![]() | |
protoboard< libff::Fr< ppT > > & | pb |
const std::string | annotation_prefix |
Gadget that creates constraints for the validity of a G2 variable.
Definition at line 96 of file weierstrass_g2_gadget.hpp.
typedef libff::Fr<ppT> libsnark::G2_checker_gadget< ppT >::FieldT |
Definition at line 99 of file weierstrass_g2_gadget.hpp.
typedef libff::Fqe<other_curve<ppT> > libsnark::G2_checker_gadget< ppT >::FqeT |
Definition at line 100 of file weierstrass_g2_gadget.hpp.
typedef libff::Fqk<other_curve<ppT> > libsnark::G2_checker_gadget< ppT >::FqkT |
Definition at line 101 of file weierstrass_g2_gadget.hpp.
libsnark::G2_checker_gadget< ppT >::G2_checker_gadget | ( | protoboard< FieldT > & | pb, |
const G2_variable< ppT > & | Q, | ||
const std::string & | annotation_prefix | ||
) |
void libsnark::G2_checker_gadget< ppT >::generate_r1cs_constraints | ( | ) |
void libsnark::G2_checker_gadget< ppT >::generate_r1cs_witness | ( | ) |
std::shared_ptr<Fqe_sqr_gadget<ppT> > libsnark::G2_checker_gadget< ppT >::compute_Xsquared |
Definition at line 110 of file weierstrass_g2_gadget.hpp.
std::shared_ptr<Fqe_sqr_gadget<ppT> > libsnark::G2_checker_gadget< ppT >::compute_Ysquared |
Definition at line 111 of file weierstrass_g2_gadget.hpp.
std::shared_ptr<Fqe_mul_gadget<ppT> > libsnark::G2_checker_gadget< ppT >::curve_equation |
Definition at line 112 of file weierstrass_g2_gadget.hpp.
G2_variable<ppT> libsnark::G2_checker_gadget< ppT >::Q |
Definition at line 103 of file weierstrass_g2_gadget.hpp.
std::shared_ptr<Fqe_variable<ppT> > libsnark::G2_checker_gadget< ppT >::Xsquared |
Definition at line 105 of file weierstrass_g2_gadget.hpp.
std::shared_ptr<Fqe_variable<ppT> > libsnark::G2_checker_gadget< ppT >::Xsquared_plus_a |
Definition at line 107 of file weierstrass_g2_gadget.hpp.
std::shared_ptr<Fqe_variable<ppT> > libsnark::G2_checker_gadget< ppT >::Ysquared |
Definition at line 106 of file weierstrass_g2_gadget.hpp.
std::shared_ptr<Fqe_variable<ppT> > libsnark::G2_checker_gadget< ppT >::Ysquared_minus_b |
Definition at line 108 of file weierstrass_g2_gadget.hpp.