Clearmatics Libsnark  0.1
C++ library for zkSNARK proofs
Public Member Functions | Public Attributes | List of all members
libsnark::kzg10< ppT >::srs Class Reference

#include <kzg10.hpp>

Public Member Functions

 srs (std::vector< libff::G1< ppT >> &&alpha_powers_g1, const libff::G2< ppT > &alpha_g2)
 

Public Attributes

std::vector< libff::G1< ppT > > alpha_powers_g1
 
libff::G2< ppT > alpha_g2
 Secret \alpha encoded in G2: [\alpha]_2. More...
 

Detailed Description

template<typename ppT>
class libsnark::kzg10< ppT >::srs

The srs generated by the setup step. This is denoted PK in [KZG10] section 3.2.

Definition at line 37 of file kzg10.hpp.

Constructor & Destructor Documentation

◆ srs()

template<typename ppT >
libsnark::kzg10< ppT >::srs::srs ( std::vector< libff::G1< ppT >> &&  alpha_powers_g1,
const libff::G2< ppT > &  alpha_g2 
)

Member Data Documentation

◆ alpha_g2

template<typename ppT >
libff::G2<ppT> libsnark::kzg10< ppT >::srs::alpha_g2

Secret \alpha encoded in G2: [\alpha]_2.

Definition at line 48 of file kzg10.hpp.

◆ alpha_powers_g1

template<typename ppT >
std::vector<libff::G1<ppT> > libsnark::kzg10< ppT >::srs::alpha_powers_g1

Array of powers of secret \alpha, encoded in G1: [1]_1, [\alpha]_1, [\alpha^2]_1, ..., [\alpha^{t}]_1

Definition at line 45 of file kzg10.hpp.


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