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

#include <bls12_377_miller_loop.hpp>

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

Public Types

using FieldT = libff::Fr< ppT >
 
using FqeT = libff::Fqe< other_curve< ppT > >
 
using FqkT = libff::Fqk< other_curve< ppT > >
 
using Fq6T = typename FqkT::my_Fp6
 

Public Member Functions

 bls12_377_miller_loop_gadget (protoboard< FieldT > &pb, const bls12_377_G1_precomputation< ppT > &prec_P, const bls12_377_G2_precomputation< ppT > &prec_Q, const Fqk_variable< ppT > &result, const std::string &annotation_prefix)
 
const Fp12_2over3over2_variable< FqkT > & result () const
 
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

Fp12_2over3over2_variable< FqkT_f0
 
std::vector< std::shared_ptr< Fp12_2over3over2_square_gadget< FqkT > > > _f_squared
 
std::vector< std::shared_ptr< bls12_377_ate_compute_f_ell_P< ppT > > > _f_ell_P
 

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::bls12_377_miller_loop_gadget< ppT >

Definition at line 56 of file bls12_377_miller_loop.hpp.

Member Typedef Documentation

◆ FieldT

template<typename ppT >
using libsnark::bls12_377_miller_loop_gadget< ppT >::FieldT = libff::Fr<ppT>

Definition at line 59 of file bls12_377_miller_loop.hpp.

◆ Fq6T

template<typename ppT >
using libsnark::bls12_377_miller_loop_gadget< ppT >::Fq6T = typename FqkT::my_Fp6

Definition at line 62 of file bls12_377_miller_loop.hpp.

◆ FqeT

template<typename ppT >
using libsnark::bls12_377_miller_loop_gadget< ppT >::FqeT = libff::Fqe<other_curve<ppT> >

Definition at line 60 of file bls12_377_miller_loop.hpp.

◆ FqkT

template<typename ppT >
using libsnark::bls12_377_miller_loop_gadget< ppT >::FqkT = libff::Fqk<other_curve<ppT> >

Definition at line 61 of file bls12_377_miller_loop.hpp.

Constructor & Destructor Documentation

◆ bls12_377_miller_loop_gadget()

template<typename ppT >
libsnark::bls12_377_miller_loop_gadget< ppT >::bls12_377_miller_loop_gadget ( protoboard< FieldT > &  pb,
const bls12_377_G1_precomputation< ppT > &  prec_P,
const bls12_377_G2_precomputation< ppT > &  prec_Q,
const Fqk_variable< ppT > &  result,
const std::string &  annotation_prefix 
)

Member Function Documentation

◆ generate_r1cs_constraints()

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

◆ generate_r1cs_witness()

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

◆ result()

template<typename ppT >
const Fp12_2over3over2_variable<FqkT>& libsnark::bls12_377_miller_loop_gadget< ppT >::result ( ) const

Member Data Documentation

◆ _f0

Definition at line 64 of file bls12_377_miller_loop.hpp.

◆ _f_ell_P

template<typename ppT >
std::vector<std::shared_ptr<bls12_377_ate_compute_f_ell_P<ppT> > > libsnark::bls12_377_miller_loop_gadget< ppT >::_f_ell_P

Definition at line 71 of file bls12_377_miller_loop.hpp.

◆ _f_squared

template<typename ppT >
std::vector<std::shared_ptr<Fp12_2over3over2_square_gadget<FqkT> > > libsnark::bls12_377_miller_loop_gadget< ppT >::_f_squared

Definition at line 68 of file bls12_377_miller_loop.hpp.


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