Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
Go to the documentation of this file.
5 #ifndef __ZETH_MPC_GROTH16_MPC_UTILS_HPP__
6 #define __ZETH_MPC_GROTH16_MPC_UTILS_HPP__
44 libff::G1_vector<ppT>
A_g1;
47 libff::G1_vector<ppT>
B_g1;
50 libff::G2_vector<ppT>
B_g2;
57 libff::G1_vector<ppT> &&
A_g1,
58 libff::G1_vector<ppT> &&
B_g1,
59 libff::G2_vector<ppT> &&
B_g2,
60 libff::G1_vector<ppT> &&
ABC_g1);
65 void write(std::ostream &out)
const;
71 template<
typename ppT>
75 const libsnark::qap_instance<libff::Fr<ppT>> &qap);
81 #endif // __ZETH_MPC_GROTH16_MPC_UTILS_HPP__
libff::G2_vector< ppT > B_g2
{ [ B_i(x) ]_2 } i = 0 .. m
libff::G1_vector< ppT > ABC_g1
{ [ beta . A_i(x) + alpha . B_i(x) + C_i(x) ]_1 } i = l+1 ... m
void write(std::ostream &out) const
libff::G1_vector< ppT > B_g1
{ [ B_i(x) ]_1 } i = 0 .. m
srs_mpc_layer_L1(libff::G1_vector< ppT > &&T_tau_powers_g1, libff::G1_vector< ppT > &&A_g1, libff::G1_vector< ppT > &&B_g1, libff::G2_vector< ppT > &&B_g2, libff::G1_vector< ppT > &&ABC_g1)
srs_mpc_layer_L1< ppT > mpc_compute_linearcombination(const srs_powersoftau< ppT > &pot, const srs_lagrange_evaluations< ppT > &lagrange, const libsnark::qap_instance< libff::Fr< ppT >> &qap)
static srs_mpc_layer_L1 read(std::istream &in)
bool is_well_formed() const
libff::G1_vector< ppT > A_g1
{ [ A_i(x) ]_1 } i = 0 .. m
libff::G1_vector< ppT > T_tau_powers_g1
{ [ t(x) . x^i ]_1 } i = 0 .. n-2