Clearmatics Libsnark
0.1
C++ library for zkSNARK proofs
|
Output is 0 iff the sum of inputs is 0. Output is 1 otherwise. More...
#include <basic_gadgets.hpp>
Public Member Functions | |
disjunction_gadget (protoboard< FieldT > &pb, const pb_linear_combination_array< FieldT > &inputs, const pb_variable< FieldT > &output, const std::string &annotation_prefix="") | |
void | generate_r1cs_constraints () |
void | generate_r1cs_witness () |
![]() | |
gadget (protoboard< FieldT > &pb, const std::string &annotation_prefix) | |
Public Attributes | |
const pb_linear_combination_array< FieldT > | inputs |
const pb_variable< FieldT > | output |
Additional Inherited Members | |
![]() | |
protoboard< FieldT > & | pb |
const std::string | annotation_prefix |
Output is 0 iff the sum of inputs is 0. Output is 1 otherwise.
Definition at line 198 of file basic_gadgets.hpp.
|
inline |
void libsnark::disjunction_gadget< FieldT >::generate_r1cs_constraints | ( | ) |
void libsnark::disjunction_gadget< FieldT >::generate_r1cs_witness | ( | ) |
const pb_linear_combination_array<FieldT> libsnark::disjunction_gadget< FieldT >::inputs |
Definition at line 204 of file basic_gadgets.hpp.
const pb_variable<FieldT> libsnark::disjunction_gadget< FieldT >::output |
Definition at line 205 of file basic_gadgets.hpp.