Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
#include <merkle_path_compute.hpp>
Public Member Functions | |
merkle_path_compute (libsnark::protoboard< FieldT > &pb, const size_t depth, const libsnark::pb_variable_array< FieldT > &address_bits, const libsnark::pb_variable< FieldT > leaf, const libsnark::pb_variable_array< FieldT > &path, const std::string &annotation_prefix) | |
void | generate_r1cs_constraints () |
void | generate_r1cs_witness () |
const libsnark::pb_variable< FieldT > | result () |
Public Attributes | |
const size_t | depth |
const libsnark::pb_variable_array< FieldT > | address_bits |
const libsnark::pb_variable< FieldT > | leaf |
const libsnark::pb_variable_array< FieldT > | path |
libsnark::pb_variable_array< FieldT > | digests |
std::vector< merkle_path_selector< FieldT > > | selectors |
std::vector< HashTreeT > | hashers |
Definition at line 15 of file merkle_path_compute.hpp.
libzeth::merkle_path_compute< FieldT, HashTreeT >::merkle_path_compute | ( | libsnark::protoboard< FieldT > & | pb, |
const size_t | depth, | ||
const libsnark::pb_variable_array< FieldT > & | address_bits, | ||
const libsnark::pb_variable< FieldT > | leaf, | ||
const libsnark::pb_variable_array< FieldT > & | path, | ||
const std::string & | annotation_prefix | ||
) |
void libzeth::merkle_path_compute< FieldT, HashTreeT >::generate_r1cs_constraints | ( | ) |
void libzeth::merkle_path_compute< FieldT, HashTreeT >::generate_r1cs_witness | ( | ) |
const libsnark::pb_variable<FieldT> libzeth::merkle_path_compute< FieldT, HashTreeT >::result | ( | ) |
const libsnark::pb_variable_array<FieldT> libzeth::merkle_path_compute< FieldT, HashTreeT >::address_bits |
Definition at line 20 of file merkle_path_compute.hpp.
const size_t libzeth::merkle_path_compute< FieldT, HashTreeT >::depth |
Definition at line 18 of file merkle_path_compute.hpp.
libsnark::pb_variable_array<FieldT> libzeth::merkle_path_compute< FieldT, HashTreeT >::digests |
Definition at line 27 of file merkle_path_compute.hpp.
std::vector<HashTreeT> libzeth::merkle_path_compute< FieldT, HashTreeT >::hashers |
Definition at line 32 of file merkle_path_compute.hpp.
const libsnark::pb_variable<FieldT> libzeth::merkle_path_compute< FieldT, HashTreeT >::leaf |
Definition at line 22 of file merkle_path_compute.hpp.
const libsnark::pb_variable_array<FieldT> libzeth::merkle_path_compute< FieldT, HashTreeT >::path |
Definition at line 24 of file merkle_path_compute.hpp.
std::vector<merkle_path_selector<FieldT> > libzeth::merkle_path_compute< FieldT, HashTreeT >::selectors |
Definition at line 30 of file merkle_path_compute.hpp.