Clearmatics Libsnark
0.1
C++ library for zkSNARK proofs
|
#include <mnt_precomputation.hpp>
Public Types | |
typedef libff::Fqe< other_curve< ppT > > | FqeT |
typedef libff::Fqk< other_curve< ppT > > | FqkT |
Public Member Functions | |
template<typename FieldT > | |
mnt_precompute_G1_gadget (protoboard< FieldT > &pb, const G1_variable< ppT > &P, mnt_G1_precomputation< ppT > &precomp, const std::string &annotation_prefix, const typename std::enable_if< libff::Fqk< other_curve< ppT >>::extension_degree()==4, FieldT >::type &=FieldT()) | |
template<typename FieldT > | |
mnt_precompute_G1_gadget (protoboard< FieldT > &pb, const G1_variable< ppT > &P, mnt_G1_precomputation< ppT > &precomp, const std::string &annotation_prefix, const typename std::enable_if< libff::Fqk< other_curve< ppT >>::extension_degree()==6, FieldT >::type &=FieldT()) | |
void | generate_r1cs_constraints () |
void | generate_r1cs_witness () |
![]() | |
gadget (protoboard< libff::Fr< ppT > > &pb, const std::string &annotation_prefix) | |
Public Attributes | |
mnt_G1_precomputation< ppT > & | precomp |
Additional Inherited Members | |
![]() | |
protoboard< libff::Fr< ppT > > & | pb |
const std::string | annotation_prefix |
Gadget that verifies correct precomputation of the G1 variable.
Definition at line 58 of file mnt_precomputation.hpp.
typedef libff::Fqe<other_curve<ppT> > libsnark::mnt_precompute_G1_gadget< ppT >::FqeT |
Definition at line 61 of file mnt_precomputation.hpp.
typedef libff::Fqk<other_curve<ppT> > libsnark::mnt_precompute_G1_gadget< ppT >::FqkT |
Definition at line 62 of file mnt_precomputation.hpp.
|
inline |
|
inline |
void libsnark::mnt_precompute_G1_gadget< ppT >::generate_r1cs_constraints | ( | ) |
void libsnark::mnt_precompute_G1_gadget< ppT >::generate_r1cs_witness | ( | ) |
mnt_G1_precomputation<ppT>& libsnark::mnt_precompute_G1_gadget< ppT >::precomp |
Definition at line 64 of file mnt_precomputation.hpp.