Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
#include <prf.hpp>
Public Member Functions | |
PRF_rho_gadget (libsnark::protoboard< FieldT > &pb, const libsnark::pb_variable< FieldT > &ZERO, const libsnark::pb_variable_array< FieldT > &phi, const libsnark::pb_variable_array< FieldT > &h_sig, size_t index, std::shared_ptr< libsnark::digest_variable< FieldT >> result, const std::string &annotation_prefix=" rho_PRF_gadget") | |
![]() | |
PRF_gadget (libsnark::protoboard< FieldT > &pb, const libsnark::pb_variable_array< FieldT > &x, const libsnark::pb_variable_array< FieldT > &y, std::shared_ptr< libsnark::digest_variable< FieldT >> result, const std::string &annotation_prefix="PRF_gadget") | |
void | generate_r1cs_constraints () |
void | generate_r1cs_witness () |
PRF to generate rho rho_i = blake2sCompress( "0" || index || "10" || [phi]_252 || h_sig) See ZCash protocol specification paper, page 57
libzeth::PRF_rho_gadget< FieldT, HashT >::PRF_rho_gadget | ( | libsnark::protoboard< FieldT > & | pb, |
const libsnark::pb_variable< FieldT > & | ZERO, | ||
const libsnark::pb_variable_array< FieldT > & | phi, | ||
const libsnark::pb_variable_array< FieldT > & | h_sig, | ||
size_t | index, | ||
std::shared_ptr< libsnark::digest_variable< FieldT >> | result, | ||
const std::string & | annotation_prefix = " rho_PRF_gadget" |
||
) |