|
Clearmatics Libsnark
0.1
C++ library for zkSNARK proofs
|
#include <weierstrass_g2_gadget.hpp>


Public Types | |
| using | Field = libff::Fr< ppT > |
Public Member Functions | |
| G2_variable_selector_gadget (protoboard< Field > &pb, const pb_linear_combination< Field > &selector, const G2_variable< ppT > &zero_case, const G2_variable< ppT > &one_case, const G2_variable< ppT > &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 | |
| const pb_linear_combination< Field > | selector |
| const G2_variable< ppT > | zero_case |
| const G2_variable< ppT > | one_case |
| G2_variable< ppT > | result |
| Fqe_mul_by_lc_gadget< ppT > | mul_select_X |
| Fqe_mul_by_lc_gadget< ppT > | mul_select_Y |
Additional Inherited Members | |
Protected Attributes inherited from libsnark::gadget< libff::Fr< ppT > > | |
| protoboard< libff::Fr< ppT > > & | pb |
| const std::string | annotation_prefix |
Depending on the value of a selector variable (which must be 0 or 1), choose between two G2_variable objects (zero_case and one_case),
Definition at line 71 of file weierstrass_g2_gadget.hpp.
| using libsnark::G2_variable_selector_gadget< ppT >::Field = libff::Fr<ppT> |
Definition at line 74 of file weierstrass_g2_gadget.hpp.
| libsnark::G2_variable_selector_gadget< ppT >::G2_variable_selector_gadget | ( | protoboard< Field > & | pb, |
| const pb_linear_combination< Field > & | selector, | ||
| const G2_variable< ppT > & | zero_case, | ||
| const G2_variable< ppT > & | one_case, | ||
| const G2_variable< ppT > & | result, | ||
| const std::string & | annotation_prefix | ||
| ) |
| void libsnark::G2_variable_selector_gadget< ppT >::generate_r1cs_constraints | ( | ) |
| void libsnark::G2_variable_selector_gadget< ppT >::generate_r1cs_witness | ( | ) |
| Fqe_mul_by_lc_gadget<ppT> libsnark::G2_variable_selector_gadget< ppT >::mul_select_X |
Definition at line 80 of file weierstrass_g2_gadget.hpp.
| Fqe_mul_by_lc_gadget<ppT> libsnark::G2_variable_selector_gadget< ppT >::mul_select_Y |
Definition at line 81 of file weierstrass_g2_gadget.hpp.
| const G2_variable<ppT> libsnark::G2_variable_selector_gadget< ppT >::one_case |
Definition at line 78 of file weierstrass_g2_gadget.hpp.
| G2_variable<ppT> libsnark::G2_variable_selector_gadget< ppT >::result |
Definition at line 79 of file weierstrass_g2_gadget.hpp.
| const pb_linear_combination<Field> libsnark::G2_variable_selector_gadget< ppT >::selector |
Definition at line 76 of file weierstrass_g2_gadget.hpp.
| const G2_variable<ppT> libsnark::G2_variable_selector_gadget< ppT >::zero_case |
Definition at line 77 of file weierstrass_g2_gadget.hpp.
1.8.17