Clearmatics Libsnark  0.1
C++ library for zkSNARK proofs
profile_r1cs_sp_ppzkpcd.cpp
Go to the documentation of this file.
1 
10 
11 using namespace libsnark;
12 
13 template<typename PCD_ppT>
14 void profile_tally(const size_t arity, const size_t max_layer)
15 {
16  const size_t wordsize = 32;
17  const bool test_serialization = true;
18  const bool bit = run_r1cs_sp_ppzkpcd_tally_example<PCD_ppT>(
19  wordsize, arity, max_layer, test_serialization);
20  assert(bit);
21 }
22 
23 int main(void)
24 {
25  typedef default_r1cs_ppzkpcd_pp PCD_pp;
26 
27  libff::start_profiling();
28  PCD_pp::init_public_params();
29 
30  const size_t arity = 2;
31  const size_t max_layer = 2;
32 
33  profile_tally<PCD_pp>(arity, max_layer);
34 }
libsnark
Definition: accumulation_vector.hpp:18
run_r1cs_sp_ppzkpcd.hpp
r1cs_sp_ppzkpcd.hpp
main
int main(void)
Definition: profile_r1cs_sp_ppzkpcd.cpp:23
libsnark::default_r1cs_ppzkpcd_pp
Definition: r1cs_ppzkpcd_pp.hpp:23
profile_tally
void profile_tally(const size_t arity, const size_t max_layer)
Definition: profile_r1cs_sp_ppzkpcd.cpp:14
r1cs_ppzkpcd_pp.hpp