Clearmatics Libsnark  0.1
C++ library for zkSNARK proofs
Public Types | Public Member Functions | Public Attributes | Friends | List of all members
libsnark::r1cs_sp_ppzkpcd_proving_key< PCD_ppT > Class Template Reference

#include <r1cs_sp_ppzkpcd.hpp>

Collaboration diagram for libsnark::r1cs_sp_ppzkpcd_proving_key< PCD_ppT >:
Collaboration graph
[legend]

Public Types

typedef PCD_ppT::curve_A_pp A_pp
 
typedef PCD_ppT::curve_B_pp B_pp
 

Public Member Functions

 r1cs_sp_ppzkpcd_proving_key ()
 
 r1cs_sp_ppzkpcd_proving_key (const r1cs_sp_ppzkpcd_proving_key< PCD_ppT > &other)=default
 
 r1cs_sp_ppzkpcd_proving_key (r1cs_sp_ppzkpcd_proving_key< PCD_ppT > &&other)=default
 
 r1cs_sp_ppzkpcd_proving_key (const r1cs_sp_ppzkpcd_compliance_predicate< PCD_ppT > &compliance_predicate, r1cs_ppzksnark_proving_key< A_pp > &&compliance_step_r1cs_pk, r1cs_ppzksnark_proving_key< B_pp > &&translation_step_r1cs_pk, const r1cs_ppzksnark_verification_key< A_pp > &compliance_step_r1cs_vk, const r1cs_ppzksnark_verification_key< B_pp > &translation_step_r1cs_vk)
 
r1cs_sp_ppzkpcd_proving_key< PCD_ppT > & operator= (const r1cs_sp_ppzkpcd_proving_key< PCD_ppT > &other)=default
 
size_t size_in_bits () const
 
bool operator== (const r1cs_sp_ppzkpcd_proving_key< PCD_ppT > &other) const
 

Public Attributes

r1cs_sp_ppzkpcd_compliance_predicate< PCD_ppT > compliance_predicate
 
r1cs_ppzksnark_proving_key< A_ppcompliance_step_r1cs_pk
 
r1cs_ppzksnark_proving_key< B_pptranslation_step_r1cs_pk
 
r1cs_ppzksnark_verification_key< A_ppcompliance_step_r1cs_vk
 
r1cs_ppzksnark_verification_key< B_pptranslation_step_r1cs_vk
 

Friends

std::ostream & operator (std::ostream &out, const r1cs_sp_ppzkpcd_proving_key< PCD_ppT > &pk)
 
std::istream & operator>> (std::istream &in, r1cs_sp_ppzkpcd_proving_key< PCD_ppT > &pk)
 

Detailed Description

template<typename PCD_ppT>
class libsnark::r1cs_sp_ppzkpcd_proving_key< PCD_ppT >

A proving key for the R1CS (single-predicate) ppzkPCD.

Definition at line 52 of file r1cs_sp_ppzkpcd.hpp.

Member Typedef Documentation

◆ A_pp

template<typename PCD_ppT >
typedef PCD_ppT::curve_A_pp libsnark::r1cs_sp_ppzkpcd_proving_key< PCD_ppT >::A_pp

Definition at line 68 of file r1cs_sp_ppzkpcd.hpp.

◆ B_pp

template<typename PCD_ppT >
typedef PCD_ppT::curve_B_pp libsnark::r1cs_sp_ppzkpcd_proving_key< PCD_ppT >::B_pp

Definition at line 69 of file r1cs_sp_ppzkpcd.hpp.

Constructor & Destructor Documentation

◆ r1cs_sp_ppzkpcd_proving_key() [1/4]

template<typename PCD_ppT >
libsnark::r1cs_sp_ppzkpcd_proving_key< PCD_ppT >::r1cs_sp_ppzkpcd_proving_key ( )
inline

Definition at line 79 of file r1cs_sp_ppzkpcd.hpp.

79 {};

◆ r1cs_sp_ppzkpcd_proving_key() [2/4]

template<typename PCD_ppT >
libsnark::r1cs_sp_ppzkpcd_proving_key< PCD_ppT >::r1cs_sp_ppzkpcd_proving_key ( const r1cs_sp_ppzkpcd_proving_key< PCD_ppT > &  other)
default

◆ r1cs_sp_ppzkpcd_proving_key() [3/4]

template<typename PCD_ppT >
libsnark::r1cs_sp_ppzkpcd_proving_key< PCD_ppT >::r1cs_sp_ppzkpcd_proving_key ( r1cs_sp_ppzkpcd_proving_key< PCD_ppT > &&  other)
default

◆ r1cs_sp_ppzkpcd_proving_key() [4/4]

template<typename PCD_ppT >
libsnark::r1cs_sp_ppzkpcd_proving_key< PCD_ppT >::r1cs_sp_ppzkpcd_proving_key ( const r1cs_sp_ppzkpcd_compliance_predicate< PCD_ppT > &  compliance_predicate,
r1cs_ppzksnark_proving_key< A_pp > &&  compliance_step_r1cs_pk,
r1cs_ppzksnark_proving_key< B_pp > &&  translation_step_r1cs_pk,
const r1cs_ppzksnark_verification_key< A_pp > &  compliance_step_r1cs_vk,
const r1cs_ppzksnark_verification_key< B_pp > &  translation_step_r1cs_vk 
)
inline

Member Function Documentation

◆ operator=()

template<typename PCD_ppT >
r1cs_sp_ppzkpcd_proving_key<PCD_ppT>& libsnark::r1cs_sp_ppzkpcd_proving_key< PCD_ppT >::operator= ( const r1cs_sp_ppzkpcd_proving_key< PCD_ppT > &  other)
default

◆ operator==()

template<typename PCD_ppT >
bool libsnark::r1cs_sp_ppzkpcd_proving_key< PCD_ppT >::operator== ( const r1cs_sp_ppzkpcd_proving_key< PCD_ppT > &  other) const

◆ size_in_bits()

template<typename PCD_ppT >
size_t libsnark::r1cs_sp_ppzkpcd_proving_key< PCD_ppT >::size_in_bits ( ) const
inline

Definition at line 100 of file r1cs_sp_ppzkpcd.hpp.

Friends And Related Function Documentation

◆ operator

template<typename PCD_ppT >
std::ostream& operator ( std::ostream &  out,
const r1cs_sp_ppzkpcd_proving_key< PCD_ppT > &  pk 
)
friend

◆ operator>>

template<typename PCD_ppT >
std::istream& operator>> ( std::istream &  in,
r1cs_sp_ppzkpcd_proving_key< PCD_ppT > &  pk 
)
friend

Member Data Documentation

◆ compliance_predicate

template<typename PCD_ppT >
r1cs_sp_ppzkpcd_compliance_predicate<PCD_ppT> libsnark::r1cs_sp_ppzkpcd_proving_key< PCD_ppT >::compliance_predicate

Definition at line 71 of file r1cs_sp_ppzkpcd.hpp.

◆ compliance_step_r1cs_pk

template<typename PCD_ppT >
r1cs_ppzksnark_proving_key<A_pp> libsnark::r1cs_sp_ppzkpcd_proving_key< PCD_ppT >::compliance_step_r1cs_pk

Definition at line 73 of file r1cs_sp_ppzkpcd.hpp.

◆ compliance_step_r1cs_vk

template<typename PCD_ppT >
r1cs_ppzksnark_verification_key<A_pp> libsnark::r1cs_sp_ppzkpcd_proving_key< PCD_ppT >::compliance_step_r1cs_vk

Definition at line 76 of file r1cs_sp_ppzkpcd.hpp.

◆ translation_step_r1cs_pk

template<typename PCD_ppT >
r1cs_ppzksnark_proving_key<B_pp> libsnark::r1cs_sp_ppzkpcd_proving_key< PCD_ppT >::translation_step_r1cs_pk

Definition at line 74 of file r1cs_sp_ppzkpcd.hpp.

◆ translation_step_r1cs_vk

template<typename PCD_ppT >
r1cs_ppzksnark_verification_key<B_pp> libsnark::r1cs_sp_ppzkpcd_proving_key< PCD_ppT >::translation_step_r1cs_vk

Definition at line 77 of file r1cs_sp_ppzkpcd.hpp.


The documentation for this class was generated from the following file:
libsnark::r1cs_ppzksnark_proving_key::size_in_bits
size_t size_in_bits() const
Definition: r1cs_ppzksnark.hpp:122
libsnark::r1cs_sp_ppzkpcd_proving_key::compliance_step_r1cs_vk
r1cs_ppzksnark_verification_key< A_pp > compliance_step_r1cs_vk
Definition: r1cs_sp_ppzkpcd.hpp:76
libsnark::r1cs_sp_ppzkpcd_proving_key::translation_step_r1cs_pk
r1cs_ppzksnark_proving_key< B_pp > translation_step_r1cs_pk
Definition: r1cs_sp_ppzkpcd.hpp:74
libsnark::r1cs_sp_ppzkpcd_proving_key::compliance_step_r1cs_pk
r1cs_ppzksnark_proving_key< A_pp > compliance_step_r1cs_pk
Definition: r1cs_sp_ppzkpcd.hpp:73
libsnark::r1cs_sp_ppzkpcd_proving_key::compliance_predicate
r1cs_sp_ppzkpcd_compliance_predicate< PCD_ppT > compliance_predicate
Definition: r1cs_sp_ppzkpcd.hpp:71
libsnark::r1cs_ppzksnark_verification_key::size_in_bits
size_t size_in_bits() const
Definition: r1cs_ppzksnark.hpp:201
libsnark::r1cs_sp_ppzkpcd_proving_key::translation_step_r1cs_vk
r1cs_ppzksnark_verification_key< B_pp > translation_step_r1cs_vk
Definition: r1cs_sp_ppzkpcd.hpp:77