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

#include <sap.hpp>

Public Member Functions

 sap_witness (const size_t num_variables, const size_t degree, const size_t num_inputs, const FieldT &d1, const FieldT &d2, const std::vector< FieldT > &coefficients_for_ACs, const std::vector< FieldT > &coefficients_for_H)
 
 sap_witness (const size_t num_variables, const size_t degree, const size_t num_inputs, const FieldT &d1, const FieldT &d2, const std::vector< FieldT > &coefficients_for_ACs, std::vector< FieldT > &&coefficients_for_H)
 
 sap_witness (const sap_witness< FieldT > &other)=default
 
 sap_witness (sap_witness< FieldT > &&other)=default
 
sap_witnessoperator= (const sap_witness< FieldT > &other)=default
 
sap_witnessoperator= (sap_witness< FieldT > &&other)=default
 
size_t num_variables () const
 
size_t degree () const
 
size_t num_inputs () const
 

Public Attributes

FieldT d1
 
FieldT d2
 
std::vector< FieldT > coefficients_for_ACs
 
std::vector< FieldT > coefficients_for_H
 

Detailed Description

template<typename FieldT>
class libsnark::sap_witness< FieldT >

A SAP witness.

Definition at line 34 of file sap.hpp.

Constructor & Destructor Documentation

◆ sap_witness() [1/4]

template<typename FieldT >
libsnark::sap_witness< FieldT >::sap_witness ( const size_t  num_variables,
const size_t  degree,
const size_t  num_inputs,
const FieldT &  d1,
const FieldT &  d2,
const std::vector< FieldT > &  coefficients_for_ACs,
const std::vector< FieldT > &  coefficients_for_H 
)

◆ sap_witness() [2/4]

template<typename FieldT >
libsnark::sap_witness< FieldT >::sap_witness ( const size_t  num_variables,
const size_t  degree,
const size_t  num_inputs,
const FieldT &  d1,
const FieldT &  d2,
const std::vector< FieldT > &  coefficients_for_ACs,
std::vector< FieldT > &&  coefficients_for_H 
)

◆ sap_witness() [3/4]

template<typename FieldT >
libsnark::sap_witness< FieldT >::sap_witness ( const sap_witness< FieldT > &  other)
default

◆ sap_witness() [4/4]

template<typename FieldT >
libsnark::sap_witness< FieldT >::sap_witness ( sap_witness< FieldT > &&  other)
default

Member Function Documentation

◆ degree()

template<typename FieldT >
size_t libsnark::sap_witness< FieldT >::degree ( ) const

◆ num_inputs()

template<typename FieldT >
size_t libsnark::sap_witness< FieldT >::num_inputs ( ) const

◆ num_variables()

template<typename FieldT >
size_t libsnark::sap_witness< FieldT >::num_variables ( ) const

◆ operator=() [1/2]

template<typename FieldT >
sap_witness& libsnark::sap_witness< FieldT >::operator= ( const sap_witness< FieldT > &  other)
default

◆ operator=() [2/2]

template<typename FieldT >
sap_witness& libsnark::sap_witness< FieldT >::operator= ( sap_witness< FieldT > &&  other)
default

Member Data Documentation

◆ coefficients_for_ACs

template<typename FieldT >
std::vector<FieldT> libsnark::sap_witness< FieldT >::coefficients_for_ACs

Definition at line 165 of file sap.hpp.

◆ coefficients_for_H

template<typename FieldT >
std::vector<FieldT> libsnark::sap_witness< FieldT >::coefficients_for_H

Definition at line 166 of file sap.hpp.

◆ d1

template<typename FieldT >
FieldT libsnark::sap_witness< FieldT >::d1

Definition at line 163 of file sap.hpp.

◆ d2

template<typename FieldT >
FieldT libsnark::sap_witness< FieldT >::d2

Definition at line 163 of file sap.hpp.


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