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

#include <fp4_gadgets.hpp>

Inheritance diagram for libsnark::Fp4_direct_mul_gadget< Fp4T >:
Inheritance graph
[legend]
Collaboration diagram for libsnark::Fp4_direct_mul_gadget< Fp4T >:
Collaboration graph
[legend]

Public Types

typedef Fp4T::my_Fp FieldT
 
typedef Fp4T::my_Fpe Fp2T
 

Public Member Functions

 Fp4_direct_mul_gadget (protoboard< FieldT > &pb, const Fp4_variable< Fp4T > &A, const Fp4_variable< Fp4T > &B, const Fp4_variable< Fp4T > &result, const std::string &annotation_prefix)
 
void generate_r1cs_constraints ()
 
void generate_r1cs_witness ()
 
- Public Member Functions inherited from libsnark::gadget< Fp4T::my_Fp >
 gadget (protoboard< Fp4T::my_Fp > &pb, const std::string &annotation_prefix)
 

Public Attributes

Fp4_variable< Fp4T > A
 
Fp4_variable< Fp4T > B
 
Fp4_variable< Fp4T > result
 
pb_variable< FieldTv1
 
pb_variable< FieldTv2
 
pb_variable< FieldTv6
 

Additional Inherited Members

- Protected Attributes inherited from libsnark::gadget< Fp4T::my_Fp >
protoboard< Fp4T::my_Fp > & pb
 
const std::string annotation_prefix
 

Detailed Description

template<typename Fp4T>
class libsnark::Fp4_direct_mul_gadget< Fp4T >

Gadget that creates constraints for Fp4 multiplication (direct formulas).

Definition at line 105 of file fp4_gadgets.hpp.

Member Typedef Documentation

◆ FieldT

template<typename Fp4T >
typedef Fp4T::my_Fp libsnark::Fp4_direct_mul_gadget< Fp4T >::FieldT

Definition at line 108 of file fp4_gadgets.hpp.

◆ Fp2T

template<typename Fp4T >
typedef Fp4T::my_Fpe libsnark::Fp4_direct_mul_gadget< Fp4T >::Fp2T

Definition at line 109 of file fp4_gadgets.hpp.

Constructor & Destructor Documentation

◆ Fp4_direct_mul_gadget()

template<typename Fp4T >
libsnark::Fp4_direct_mul_gadget< Fp4T >::Fp4_direct_mul_gadget ( protoboard< FieldT > &  pb,
const Fp4_variable< Fp4T > &  A,
const Fp4_variable< Fp4T > &  B,
const Fp4_variable< Fp4T > &  result,
const std::string &  annotation_prefix 
)

Member Function Documentation

◆ generate_r1cs_constraints()

template<typename Fp4T >
void libsnark::Fp4_direct_mul_gadget< Fp4T >::generate_r1cs_constraints ( )

◆ generate_r1cs_witness()

template<typename Fp4T >
void libsnark::Fp4_direct_mul_gadget< Fp4T >::generate_r1cs_witness ( )

Member Data Documentation

◆ A

template<typename Fp4T >
Fp4_variable<Fp4T> libsnark::Fp4_direct_mul_gadget< Fp4T >::A

Definition at line 111 of file fp4_gadgets.hpp.

◆ B

template<typename Fp4T >
Fp4_variable<Fp4T> libsnark::Fp4_direct_mul_gadget< Fp4T >::B

Definition at line 112 of file fp4_gadgets.hpp.

◆ result

template<typename Fp4T >
Fp4_variable<Fp4T> libsnark::Fp4_direct_mul_gadget< Fp4T >::result

Definition at line 113 of file fp4_gadgets.hpp.

◆ v1

template<typename Fp4T >
pb_variable<FieldT> libsnark::Fp4_direct_mul_gadget< Fp4T >::v1

Definition at line 115 of file fp4_gadgets.hpp.

◆ v2

template<typename Fp4T >
pb_variable<FieldT> libsnark::Fp4_direct_mul_gadget< Fp4T >::v2

Definition at line 116 of file fp4_gadgets.hpp.

◆ v6

template<typename Fp4T >
pb_variable<FieldT> libsnark::Fp4_direct_mul_gadget< Fp4T >::v6

Definition at line 117 of file fp4_gadgets.hpp.


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