Clearmatics Libsnark  0.1
C++ library for zkSNARK proofs
Public Types | Public Member Functions | Public Attributes | List of all members
libsnark::check_e_equals_ee_gadget< ppT > Class Template Reference

#include <pairing_checks.hpp>

Inheritance diagram for libsnark::check_e_equals_ee_gadget< ppT >:
Inheritance graph
[legend]
Collaboration diagram for libsnark::check_e_equals_ee_gadget< ppT >:
Collaboration graph
[legend]

Public Types

typedef libff::Fr< ppT > FieldT
 

Public Member Functions

 check_e_equals_ee_gadget (protoboard< FieldT > &pb, const G1_precomputation< ppT > &lhs_G1, const G2_precomputation< ppT > &lhs_G2, const G1_precomputation< ppT > &rhs1_G1, const G2_precomputation< ppT > &rhs1_G2, const G1_precomputation< ppT > &rhs2_G1, const G2_precomputation< ppT > &rhs2_G2, const pb_variable< FieldT > &result, const std::string &annotation_prefix)
 
void generate_r1cs_constraints ()
 
void generate_r1cs_witness ()
 
- Public Member Functions inherited from libsnark::gadget< libff::Fr< ppT > >
 gadget (protoboard< libff::Fr< ppT > > &pb, const std::string &annotation_prefix)
 

Public Attributes

std::shared_ptr< Fqk_variable< ppT > > ratio
 
std::shared_ptr< e_times_e_over_e_miller_loop_gadget< ppT > > compute_ratio
 
std::shared_ptr< final_exp_gadget< ppT > > check_finexp
 
G1_precomputation< ppT > lhs_G1
 
G2_precomputation< ppT > lhs_G2
 
G1_precomputation< ppT > rhs1_G1
 
G2_precomputation< ppT > rhs1_G2
 
G1_precomputation< ppT > rhs2_G1
 
G2_precomputation< ppT > rhs2_G2
 
pb_variable< FieldTresult
 

Additional Inherited Members

- Protected Attributes inherited from libsnark::gadget< libff::Fr< ppT > >
protoboard< libff::Fr< ppT > > & pb
 
const std::string annotation_prefix
 

Detailed Description

template<typename ppT>
class libsnark::check_e_equals_ee_gadget< ppT >

Definition at line 60 of file pairing_checks.hpp.

Member Typedef Documentation

◆ FieldT

template<typename ppT >
typedef libff::Fr<ppT> libsnark::check_e_equals_ee_gadget< ppT >::FieldT

Definition at line 63 of file pairing_checks.hpp.

Constructor & Destructor Documentation

◆ check_e_equals_ee_gadget()

template<typename ppT >
libsnark::check_e_equals_ee_gadget< ppT >::check_e_equals_ee_gadget ( protoboard< FieldT > &  pb,
const G1_precomputation< ppT > &  lhs_G1,
const G2_precomputation< ppT > &  lhs_G2,
const G1_precomputation< ppT > &  rhs1_G1,
const G2_precomputation< ppT > &  rhs1_G2,
const G1_precomputation< ppT > &  rhs2_G1,
const G2_precomputation< ppT > &  rhs2_G2,
const pb_variable< FieldT > &  result,
const std::string &  annotation_prefix 
)

Member Function Documentation

◆ generate_r1cs_constraints()

template<typename ppT >
void libsnark::check_e_equals_ee_gadget< ppT >::generate_r1cs_constraints ( )

◆ generate_r1cs_witness()

template<typename ppT >
void libsnark::check_e_equals_ee_gadget< ppT >::generate_r1cs_witness ( )

Member Data Documentation

◆ check_finexp

template<typename ppT >
std::shared_ptr<final_exp_gadget<ppT> > libsnark::check_e_equals_ee_gadget< ppT >::check_finexp

Definition at line 67 of file pairing_checks.hpp.

◆ compute_ratio

template<typename ppT >
std::shared_ptr<e_times_e_over_e_miller_loop_gadget<ppT> > libsnark::check_e_equals_ee_gadget< ppT >::compute_ratio

Definition at line 66 of file pairing_checks.hpp.

◆ lhs_G1

template<typename ppT >
G1_precomputation<ppT> libsnark::check_e_equals_ee_gadget< ppT >::lhs_G1

Definition at line 69 of file pairing_checks.hpp.

◆ lhs_G2

template<typename ppT >
G2_precomputation<ppT> libsnark::check_e_equals_ee_gadget< ppT >::lhs_G2

Definition at line 70 of file pairing_checks.hpp.

◆ ratio

template<typename ppT >
std::shared_ptr<Fqk_variable<ppT> > libsnark::check_e_equals_ee_gadget< ppT >::ratio

Definition at line 65 of file pairing_checks.hpp.

◆ result

template<typename ppT >
pb_variable<FieldT> libsnark::check_e_equals_ee_gadget< ppT >::result

Definition at line 76 of file pairing_checks.hpp.

◆ rhs1_G1

template<typename ppT >
G1_precomputation<ppT> libsnark::check_e_equals_ee_gadget< ppT >::rhs1_G1

Definition at line 71 of file pairing_checks.hpp.

◆ rhs1_G2

template<typename ppT >
G2_precomputation<ppT> libsnark::check_e_equals_ee_gadget< ppT >::rhs1_G2

Definition at line 72 of file pairing_checks.hpp.

◆ rhs2_G1

template<typename ppT >
G1_precomputation<ppT> libsnark::check_e_equals_ee_gadget< ppT >::rhs2_G1

Definition at line 73 of file pairing_checks.hpp.

◆ rhs2_G2

template<typename ppT >
G2_precomputation<ppT> libsnark::check_e_equals_ee_gadget< ppT >::rhs2_G2

Definition at line 74 of file pairing_checks.hpp.


The documentation for this class was generated from the following file: