Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
#include <mimc_input_hasher.hpp>
Public Member Functions | |
mimc_input_hasher (libsnark::protoboard< FieldT > &pb, const libsnark::pb_linear_combination_array< FieldT > &inputs, const libsnark::pb_variable< FieldT > hash_output, const std::string &annotation_prefix) | |
void | generate_r1cs_constraints () |
void | generate_r1cs_witness () const |
Static Public Member Functions | |
static FieldT | get_iv () |
static FieldT | compute_hash (const std::vector< FieldT > &values) |
Given a list of variables, hash the variables to a value which can be used as a public input bound to the original variables.
Definition at line 17 of file mimc_input_hasher.hpp.
libzeth::mimc_input_hasher< FieldT, compFnT >::mimc_input_hasher | ( | libsnark::protoboard< FieldT > & | pb, |
const libsnark::pb_linear_combination_array< FieldT > & | inputs, | ||
const libsnark::pb_variable< FieldT > | hash_output, | ||
const std::string & | annotation_prefix | ||
) |
|
static |
void libzeth::mimc_input_hasher< FieldT, compFnT >::generate_r1cs_constraints | ( | ) |
void libzeth::mimc_input_hasher< FieldT, compFnT >::generate_r1cs_witness | ( | ) | const |
|
static |