Clearmatics Libsnark
0.1
C++ library for zkSNARK proofs
|
#include <set_commitment_gadget.hpp>
Public Member Functions | |
set_commitment_gadget (protoboard< FieldT > &pb, const size_t max_entries, const pb_variable_array< FieldT > &element_bits, const set_commitment_variable< FieldT, HashT > &root_digest, const set_membership_proof_variable< FieldT, HashT > &proof, const pb_linear_combination< FieldT > &check_successful, const std::string &annotation_prefix) | |
void | generate_r1cs_constraints () |
void | generate_r1cs_witness () |
![]() | |
gadget (protoboard< FieldT > &pb, const std::string &annotation_prefix) | |
Static Public Member Functions | |
static size_t | root_size_in_bits () |
Public Attributes | |
size_t | tree_depth |
pb_variable_array< FieldT > | element_bits |
set_commitment_variable< FieldT, HashT > | root_digest |
set_membership_proof_variable< FieldT, HashT > | proof |
pb_linear_combination< FieldT > | check_successful |
Additional Inherited Members | |
![]() | |
protoboard< FieldT > & | pb |
const std::string | annotation_prefix |
Definition at line 23 of file set_commitment_gadget.hpp.
libsnark::set_commitment_gadget< FieldT, HashT >::set_commitment_gadget | ( | protoboard< FieldT > & | pb, |
const size_t | max_entries, | ||
const pb_variable_array< FieldT > & | element_bits, | ||
const set_commitment_variable< FieldT, HashT > & | root_digest, | ||
const set_membership_proof_variable< FieldT, HashT > & | proof, | ||
const pb_linear_combination< FieldT > & | check_successful, | ||
const std::string & | annotation_prefix | ||
) |
void libsnark::set_commitment_gadget< FieldT, HashT >::generate_r1cs_constraints | ( | ) |
void libsnark::set_commitment_gadget< FieldT, HashT >::generate_r1cs_witness | ( | ) |
|
static |
pb_linear_combination<FieldT> libsnark::set_commitment_gadget< FieldT, HashT >::check_successful |
Definition at line 37 of file set_commitment_gadget.hpp.
pb_variable_array<FieldT> libsnark::set_commitment_gadget< FieldT, HashT >::element_bits |
Definition at line 34 of file set_commitment_gadget.hpp.
set_membership_proof_variable<FieldT, HashT> libsnark::set_commitment_gadget< FieldT, HashT >::proof |
Definition at line 36 of file set_commitment_gadget.hpp.
set_commitment_variable<FieldT, HashT> libsnark::set_commitment_gadget< FieldT, HashT >::root_digest |
Definition at line 35 of file set_commitment_gadget.hpp.
size_t libsnark::set_commitment_gadget< FieldT, HashT >::tree_depth |
Definition at line 33 of file set_commitment_gadget.hpp.