Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
#include <phase2.hpp>
Public Member Functions | |
srs_mpc_phase2_accumulator (const mpc_hash_t cs_hash, const libff::G1< ppT > &delta_g1, const libff::G2< ppT > &delta_g2, libff::G1_vector< ppT > &&H_g1, libff::G1_vector< ppT > &&L_g1) | |
bool | operator== (const srs_mpc_phase2_accumulator< ppT > &other) const |
bool | is_well_formed () const |
void | write (std::ostream &out) const |
void | write_compressed (std::ostream &out) const |
Static Public Member Functions | |
static srs_mpc_phase2_accumulator< ppT > | read (std::istream &in) |
static srs_mpc_phase2_accumulator< ppT > | read_compressed (std::istream &in) |
Public Attributes | |
mpc_hash_t | cs_hash |
libff::G1< ppT > | delta_g1 |
libff::G2< ppT > | delta_g2 |
libff::G1_vector< ppT > | H_g1 |
libff::G1_vector< ppT > | L_g1 |
Target of the MPC for Phase2 of the SRS generation. Follows exactly $M_2$ in section 7.3 of [BoweGM17], whre we use L in place of K, consistent with the keypair in libsnark.
Implements the interfaces of StructuredT and ReadableT templates.
Definition at line 41 of file phase2.hpp.
libzeth::srs_mpc_phase2_accumulator< ppT >::srs_mpc_phase2_accumulator | ( | const mpc_hash_t | cs_hash, |
const libff::G1< ppT > & | delta_g1, | ||
const libff::G2< ppT > & | delta_g2, | ||
libff::G1_vector< ppT > && | H_g1, | ||
libff::G1_vector< ppT > && | L_g1 | ||
) |
bool libzeth::srs_mpc_phase2_accumulator< ppT >::is_well_formed | ( | ) | const |
bool libzeth::srs_mpc_phase2_accumulator< ppT >::operator== | ( | const srs_mpc_phase2_accumulator< ppT > & | other | ) | const |
|
static |
|
static |
void libzeth::srs_mpc_phase2_accumulator< ppT >::write | ( | std::ostream & | out | ) | const |
void libzeth::srs_mpc_phase2_accumulator< ppT >::write_compressed | ( | std::ostream & | out | ) | const |
mpc_hash_t libzeth::srs_mpc_phase2_accumulator< ppT >::cs_hash |
Definition at line 47 of file phase2.hpp.
libff::G1<ppT> libzeth::srs_mpc_phase2_accumulator< ppT >::delta_g1 |
Definition at line 49 of file phase2.hpp.
libff::G2<ppT> libzeth::srs_mpc_phase2_accumulator< ppT >::delta_g2 |
Definition at line 51 of file phase2.hpp.
libff::G1_vector<ppT> libzeth::srs_mpc_phase2_accumulator< ppT >::H_g1 |
Definition at line 54 of file phase2.hpp.
libff::G1_vector<ppT> libzeth::srs_mpc_phase2_accumulator< ppT >::L_g1 |
Definition at line 57 of file phase2.hpp.