Clearmatics Libsnark
0.1
C++ library for zkSNARK proofs
|
#include <weierstrass_g1_gadget.hpp>
Public Types | |
using | Field = libff::Fr< ppT > |
Public Member Functions | |
G1_variable_selector_gadget (protoboard< Field > &pb, const pb_linear_combination< Field > &selector, const G1_variable< ppT > &zero_case, const G1_variable< ppT > &one_case, const G1_variable< ppT > &result, const std::string &annotation_prefix) | |
void | generate_r1cs_constraints () |
void | generate_r1cs_witness () |
![]() | |
gadget (protoboard< libff::Fr< ppT > > &pb, const std::string &annotation_prefix) | |
Public Attributes | |
const pb_linear_combination< Field > | selector |
const G1_variable< ppT > | zero_case |
const G1_variable< ppT > | one_case |
G1_variable< ppT > | result |
Additional Inherited Members | |
![]() | |
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 G1_variable objects (zero_case and one_case),
Definition at line 69 of file weierstrass_g1_gadget.hpp.
using libsnark::G1_variable_selector_gadget< ppT >::Field = libff::Fr<ppT> |
Definition at line 72 of file weierstrass_g1_gadget.hpp.
libsnark::G1_variable_selector_gadget< ppT >::G1_variable_selector_gadget | ( | protoboard< Field > & | pb, |
const pb_linear_combination< Field > & | selector, | ||
const G1_variable< ppT > & | zero_case, | ||
const G1_variable< ppT > & | one_case, | ||
const G1_variable< ppT > & | result, | ||
const std::string & | annotation_prefix | ||
) |
void libsnark::G1_variable_selector_gadget< ppT >::generate_r1cs_constraints | ( | ) |
void libsnark::G1_variable_selector_gadget< ppT >::generate_r1cs_witness | ( | ) |
const G1_variable<ppT> libsnark::G1_variable_selector_gadget< ppT >::one_case |
Definition at line 76 of file weierstrass_g1_gadget.hpp.
G1_variable<ppT> libsnark::G1_variable_selector_gadget< ppT >::result |
Definition at line 77 of file weierstrass_g1_gadget.hpp.
const pb_linear_combination<Field> libsnark::G1_variable_selector_gadget< ppT >::selector |
Definition at line 74 of file weierstrass_g1_gadget.hpp.
const G1_variable<ppT> libsnark::G1_variable_selector_gadget< ppT >::zero_case |
Definition at line 75 of file weierstrass_g1_gadget.hpp.