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

Check equality of 2 G2 points. More...

#include <weierstrass_g2_gadget.hpp>

Inheritance diagram for libsnark::G2_equality_gadget< wppT >:
Inheritance graph
[legend]
Collaboration diagram for libsnark::G2_equality_gadget< wppT >:
Collaboration graph
[legend]

Public Types

using nppT = other_curve< wppT >
 
using FqeT = libff::Fqe< nppT >
 

Public Member Functions

 G2_equality_gadget (protoboard< libff::Fr< wppT >> &pb, const G2_variable< wppT > &A, const G2_variable< wppT > &B, const std::string &annotation_prefix)
 
void generate_r1cs_constraints ()
 
void generate_r1cs_witness ()
 
- Public Member Functions inherited from libsnark::gadget< libff::Fr< wppT > >
 gadget (protoboard< libff::Fr< wppT > > &pb, const std::string &annotation_prefix)
 

Public Attributes

G2_variable< wppT > _A
 
G2_variable< wppT > _B
 

Additional Inherited Members

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

Detailed Description

template<typename wppT>
class libsnark::G2_equality_gadget< wppT >

Check equality of 2 G2 points.

Definition at line 205 of file weierstrass_g2_gadget.hpp.

Member Typedef Documentation

◆ FqeT

template<typename wppT >
using libsnark::G2_equality_gadget< wppT >::FqeT = libff::Fqe<nppT>

Definition at line 209 of file weierstrass_g2_gadget.hpp.

◆ nppT

template<typename wppT >
using libsnark::G2_equality_gadget< wppT >::nppT = other_curve<wppT>

Definition at line 208 of file weierstrass_g2_gadget.hpp.

Constructor & Destructor Documentation

◆ G2_equality_gadget()

template<typename wppT >
libsnark::G2_equality_gadget< wppT >::G2_equality_gadget ( protoboard< libff::Fr< wppT >> &  pb,
const G2_variable< wppT > &  A,
const G2_variable< wppT > &  B,
const std::string &  annotation_prefix 
)

Member Function Documentation

◆ generate_r1cs_constraints()

template<typename wppT >
void libsnark::G2_equality_gadget< wppT >::generate_r1cs_constraints ( )

◆ generate_r1cs_witness()

template<typename wppT >
void libsnark::G2_equality_gadget< wppT >::generate_r1cs_witness ( )

Member Data Documentation

◆ _A

template<typename wppT >
G2_variable<wppT> libsnark::G2_equality_gadget< wppT >::_A

Definition at line 211 of file weierstrass_g2_gadget.hpp.

◆ _B

template<typename wppT >
G2_variable<wppT> libsnark::G2_equality_gadget< wppT >::_B

Definition at line 212 of file weierstrass_g2_gadget.hpp.


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