Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
#include <prf.hpp>
Public Member Functions | |
PRF_nf_gadget (libsnark::protoboard< FieldT > &pb, const libsnark::pb_variable< FieldT > &ZERO, const libsnark::pb_variable_array< FieldT > &a_sk, const libsnark::pb_variable_array< FieldT > &rho, std::shared_ptr< libsnark::digest_variable< FieldT >> result, const std::string &annotation_prefix="PRF_nf_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 the nullifier nf = blake2sCompress("1110" || [a_sk]_252 || rho): See ZCash protocol specification paper, page 57
libzeth::PRF_nf_gadget< FieldT, HashT >::PRF_nf_gadget | ( | libsnark::protoboard< FieldT > & | pb, |
const libsnark::pb_variable< FieldT > & | ZERO, | ||
const libsnark::pb_variable_array< FieldT > & | a_sk, | ||
const libsnark::pb_variable_array< FieldT > & | rho, | ||
std::shared_ptr< libsnark::digest_variable< FieldT >> | result, | ||
const std::string & | annotation_prefix = "PRF_nf_gadget< FieldT, HashT >" |
||
) |