|
Zecale - Reconciling Privacy and Scalability on Smart-Contract Chains
0.5
Reference implementation of the Zecale protocol by Clearmatics
|
#include <verification_key_hash_gadget.hpp>


Public Types | |
| using | FieldT = libff::Fr< wppT > |
| using | compFnT = compression_function_gadget< wppT > |
| using | scalarHasherT = libzeth::mimc_input_hasher< FieldT, compFnT > |
| using | nsnark = typename nverifierT::snark |
| using | verification_key_variable = typename nverifierT::verification_key_variable_gadget |
Public Member Functions | |
| verification_key_hash_gadget (libsnark::protoboard< FieldT > &pb, verification_key_variable &verifcation_key, libsnark::pb_variable< FieldT > &verification_key_hash, const std::string &annotation) | |
| void | generate_r1cs_constraints () |
| void | generate_r1cs_witness () |
Static Public Member Functions | |
| static FieldT | compute_hash (const typename nsnark::verification_key &vk, size_t num_inputs) |
Public Attributes | |
| scalarHasherT | _hash_gadget |
| Gadget to hash vk bits. More... | |
Gadget to produce the hash of a verification key for nested proofs. Relies on a hash gadget hashT which operates directly on arrays of scalars, producing digests which are also scalars.
Definition at line 21 of file verification_key_hash_gadget.hpp.
| using libzecale::verification_key_hash_gadget< wppT, nverifierT >::compFnT = compression_function_gadget<wppT> |
Definition at line 25 of file verification_key_hash_gadget.hpp.
| using libzecale::verification_key_hash_gadget< wppT, nverifierT >::FieldT = libff::Fr<wppT> |
Definition at line 24 of file verification_key_hash_gadget.hpp.
| using libzecale::verification_key_hash_gadget< wppT, nverifierT >::nsnark = typename nverifierT::snark |
Definition at line 28 of file verification_key_hash_gadget.hpp.
| using libzecale::verification_key_hash_gadget< wppT, nverifierT >::scalarHasherT = libzeth::mimc_input_hasher<FieldT, compFnT> |
Definition at line 26 of file verification_key_hash_gadget.hpp.
| using libzecale::verification_key_hash_gadget< wppT, nverifierT >::verification_key_variable = typename nverifierT::verification_key_variable_gadget |
Definition at line 30 of file verification_key_hash_gadget.hpp.
| libzecale::verification_key_hash_gadget< wppT, nverifierT >::verification_key_hash_gadget | ( | libsnark::protoboard< FieldT > & | pb, |
| verification_key_variable & | verifcation_key, | ||
| libsnark::pb_variable< FieldT > & | verification_key_hash, | ||
| const std::string & | annotation | ||
| ) |
|
static |

| void libzecale::verification_key_hash_gadget< wppT, nverifierT >::generate_r1cs_constraints | ( | ) |
| void libzecale::verification_key_hash_gadget< wppT, nverifierT >::generate_r1cs_witness | ( | ) |
| scalarHasherT libzecale::verification_key_hash_gadget< wppT, nverifierT >::_hash_gadget |
Gadget to hash vk bits.
Definition at line 33 of file verification_key_hash_gadget.hpp.
1.8.17