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/uscs_ppzksnark_pp.hpp>
#include <libsnark/relations/constraint_satisfaction_problems/uscs/examples/uscs_examples.hpp>
#include <libsnark/zk_proof_systems/ppzksnark/uscs_ppzksnark/examples/run_uscs_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 USCS instance.
The command
$
libsnark/zk_proof_systems/ppzksnark/uscs_ppzksnark/profiling/profile_uscs_ppzksnark 1000 10 Fr
exercises the ppzkSNARK (first generator, then prover, then verifier) on an USCS 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/uscs_ppzksnark/profiling/profile_uscs_ppzksnark 1000 10 bytes
does the same but now the input consists of 10 bytes.
Definition in file profile_uscs_ppzksnark.cpp.
int main | ( | int | argc, |
const char * | argv[] | ||
) |