Clearmatics Libsnark
0.1
C++ library for zkSNARK proofs
|
#include <cassert>
#include <cstdio>
#include <libff/common/profiling.hpp>
#include <libff/common/utils.hpp>
#include <libsnark/common/default_types/r1cs_gg_ppzksnark_pp.hpp>
#include <libsnark/relations/constraint_satisfaction_problems/r1cs/examples/r1cs_examples.hpp>
#include <libsnark/zk_proof_systems/ppzksnark/r1cs_gg_ppzksnark/examples/run_r1cs_gg_ppzksnark.hpp>
Go to the source code of this file.
Functions | |
int | main (int argc, const char *argv[]) |
Profiling program that exercises the ppzkSNARK (first generator, then prover, then verifier) on a synthetic R1CS instance.
The command
$
libsnark/zk_proof_systems/ppzksnark/r1cs_gg_ppzksnark/profiling/profile_r1cs_gg_ppzksnark 1000 10 Fr
exercises the ppzkSNARK (first generator, then prover, then verifier) on an R1CS instance with 1000 equations and an input consisting of 10 field elements.
(If you get the error zmInit ERR:can't protect
, see the discussion above.)
The command
$
libsnark/zk_proof_systems/ppzksnark/r1cs_gg_ppzksnark/profiling/profile_r1cs_gg_ppzksnark 1000 10 bytes
does the same but now the input consists of 10 bytes.
Definition in file profile_r1cs_gg_ppzksnark.cpp.
int main | ( | int | argc, |
const char * | argv[] | ||
) |
Definition at line 41 of file profile_r1cs_gg_ppzksnark.cpp.