Clearmatics Libsnark
0.1
C++ library for zkSNARK proofs
|
#include <sha256_aux.hpp>
Public Member Functions | |
choice_gadget (protoboard< FieldT > &pb, const pb_linear_combination_array< FieldT > &X, const pb_linear_combination_array< FieldT > &Y, const pb_linear_combination_array< FieldT > &Z, const pb_variable< FieldT > &result, const std::string &annotation_prefix) | |
void | generate_r1cs_constraints () |
void | generate_r1cs_witness () |
![]() | |
gadget (protoboard< FieldT > &pb, const std::string &annotation_prefix) | |
Public Attributes | |
pb_linear_combination_array< FieldT > | X |
pb_linear_combination_array< FieldT > | Y |
pb_linear_combination_array< FieldT > | Z |
pb_variable< FieldT > | result |
std::shared_ptr< packing_gadget< FieldT > > | pack_result |
Additional Inherited Members | |
![]() | |
protoboard< FieldT > & | pb |
const std::string | annotation_prefix |
Definition at line 120 of file sha256_aux.hpp.
libsnark::choice_gadget< FieldT >::choice_gadget | ( | protoboard< FieldT > & | pb, |
const pb_linear_combination_array< FieldT > & | X, | ||
const pb_linear_combination_array< FieldT > & | Y, | ||
const pb_linear_combination_array< FieldT > & | Z, | ||
const pb_variable< FieldT > & | result, | ||
const std::string & | annotation_prefix | ||
) |
void libsnark::choice_gadget< FieldT >::generate_r1cs_constraints | ( | ) |
void libsnark::choice_gadget< FieldT >::generate_r1cs_witness | ( | ) |
std::shared_ptr<packing_gadget<FieldT> > libsnark::choice_gadget< FieldT >::pack_result |
Definition at line 130 of file sha256_aux.hpp.
pb_variable<FieldT> libsnark::choice_gadget< FieldT >::result |
Definition at line 129 of file sha256_aux.hpp.
pb_linear_combination_array<FieldT> libsnark::choice_gadget< FieldT >::X |
Definition at line 126 of file sha256_aux.hpp.
pb_linear_combination_array<FieldT> libsnark::choice_gadget< FieldT >::Y |
Definition at line 127 of file sha256_aux.hpp.
pb_linear_combination_array<FieldT> libsnark::choice_gadget< FieldT >::Z |
Definition at line 128 of file sha256_aux.hpp.