Clearmatics Libsnark
0.1
C++ library for zkSNARK proofs
|
Go to the documentation of this file.
9 #ifndef __LIBSNARK_POLYNOMIAL_COMMITMENTS_KZG10_BATCHED_HPP__
10 #define __LIBSNARK_POLYNOMIAL_COMMITMENTS_KZG10_BATCHED_HPP__
50 evaluations(std::vector<Field> &&fs, std::vector<Field> &&gs);
63 const libff::G1<ppT>
W_1;
65 const libff::G1<ppT>
W_2;
68 const libff::G1<ppT> &
W_1,
const libff::G1<ppT> &
W_2);
89 const Field &gamma_2);
101 const Field &gamma_1,
102 const Field &gamma_2,
104 const std::vector<commitment> &cm_1s,
105 const std::vector<commitment> &cm_2s,
113 #endif // __LIBSNARK_POLYNOMIAL_COMMITMENTS_KZG10_BATCHED_HPP__
typename kzg10< ppT >::commitment commitment
typename kzg10< ppT >::srs srs
evaluation_witness(const libff::G1< ppT > &W_1, const libff::G1< ppT > &W_2)
const libff::G1< ppT > W_1
const libff::G1< ppT > W_2
static evaluations evaluate_polynomials(const std::vector< polynomial< Field >> &fs, const std::vector< polynomial< Field >> &gs, const Field &z_1, const Field &z_2)
std::vector< FieldT > polynomial
std::vector< Field > s_1s
libff::G1< ppT > commitment
static evaluation_witness create_evaluation_witness(const std::vector< polynomial< Field >> &fs, const std::vector< polynomial< Field >> &gs, const Field &z_1, const Field &z_2, const evaluations &evaluations, const srs &srs, const Field &gamma_1, const Field &gamma_2)
static bool verify_evaluations(const Field &z_1, const Field &z_2, const evaluations &evaluations, const srs &srs, const Field &gamma_1, const Field &gamma_2, const evaluation_witness &witness, const std::vector< commitment > &cm_1s, const std::vector< commitment > &cm_2s, const Field &r)
evaluations(std::vector< Field > &&fs, std::vector< Field > &&gs)
std::vector< Field > s_2s