Zeth - Zerocash on Ethereum  0.8
Reference implementation of the Zeth protocol by Clearmatics
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
libzeth::srs_mpc_phase2_accumulator< ppT > Class Template Reference

#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
 

Detailed Description

template<typename ppT>
class libzeth::srs_mpc_phase2_accumulator< ppT >

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.

Constructor & Destructor Documentation

◆ srs_mpc_phase2_accumulator()

template<typename ppT >
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 
)

Member Function Documentation

◆ is_well_formed()

template<typename ppT >
bool libzeth::srs_mpc_phase2_accumulator< ppT >::is_well_formed ( ) const

◆ operator==()

template<typename ppT >
bool libzeth::srs_mpc_phase2_accumulator< ppT >::operator== ( const srs_mpc_phase2_accumulator< ppT > &  other) const

◆ read()

template<typename ppT >
static srs_mpc_phase2_accumulator<ppT> libzeth::srs_mpc_phase2_accumulator< ppT >::read ( std::istream &  in)
static

◆ read_compressed()

template<typename ppT >
static srs_mpc_phase2_accumulator<ppT> libzeth::srs_mpc_phase2_accumulator< ppT >::read_compressed ( std::istream &  in)
static

◆ write()

template<typename ppT >
void libzeth::srs_mpc_phase2_accumulator< ppT >::write ( std::ostream &  out) const

◆ write_compressed()

template<typename ppT >
void libzeth::srs_mpc_phase2_accumulator< ppT >::write_compressed ( std::ostream &  out) const

Member Data Documentation

◆ cs_hash

template<typename ppT >
mpc_hash_t libzeth::srs_mpc_phase2_accumulator< ppT >::cs_hash

Definition at line 47 of file phase2.hpp.

◆ delta_g1

template<typename ppT >
libff::G1<ppT> libzeth::srs_mpc_phase2_accumulator< ppT >::delta_g1

Definition at line 49 of file phase2.hpp.

◆ delta_g2

template<typename ppT >
libff::G2<ppT> libzeth::srs_mpc_phase2_accumulator< ppT >::delta_g2

Definition at line 51 of file phase2.hpp.

◆ H_g1

template<typename ppT >
libff::G1_vector<ppT> libzeth::srs_mpc_phase2_accumulator< ppT >::H_g1

Definition at line 54 of file phase2.hpp.

◆ L_g1

template<typename ppT >
libff::G1_vector<ppT> libzeth::srs_mpc_phase2_accumulator< ppT >::L_g1

Definition at line 57 of file phase2.hpp.


The documentation for this class was generated from the following file: