Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::srs::factories::NativeBn254CrsFactory Class Reference

#include <native_crs_factory.hpp>

Inheritance diagram for bb::srs::factories::NativeBn254CrsFactory:
bb::srs::factories::CrsFactory< curve::BN254 >

Public Member Functions

 NativeBn254CrsFactory (const std::filesystem::path &path, bool allow_download=true)
 
std::shared_ptr< Crs< curve::BN254 > > get_crs (size_t degree) override
 
- Public Member Functions inherited from bb::srs::factories::CrsFactory< curve::BN254 >
 CrsFactory ()=default
 
 CrsFactory (const CrsFactory &)=delete
 
 CrsFactory (CrsFactory &&) noexcept=default
 
CrsFactoryoperator= (const CrsFactory &)=delete
 
CrsFactoryoperator= (CrsFactory &&) noexcept=default
 
virtual ~CrsFactory ()=default
 
std::shared_ptr< bb::srs::factories::Crs< curve::BN254 > > get_verifier_crs ()
 

Private Attributes

std::filesystem::path path_
 
bool allow_download_ = true
 
size_t last_degree_ = 0
 
std::shared_ptr< MemBn254CrsFactorymem_crs_
 

Detailed Description

Derives reference strings from a file, that is secondarily backed by the network.

Definition at line 35 of file native_crs_factory.hpp.

Constructor & Destructor Documentation

◆ NativeBn254CrsFactory()

bb::srs::factories::NativeBn254CrsFactory::NativeBn254CrsFactory ( const std::filesystem::path &  path,
bool  allow_download = true 
)
inline

Definition at line 37 of file native_crs_factory.hpp.

Member Function Documentation

◆ get_crs()

std::shared_ptr< Crs< curve::BN254 > > bb::srs::factories::NativeBn254CrsFactory::get_crs ( size_t  degree)
inlineoverridevirtual

Member Data Documentation

◆ allow_download_

bool bb::srs::factories::NativeBn254CrsFactory::allow_download_ = true
private

Definition at line 52 of file native_crs_factory.hpp.

◆ last_degree_

size_t bb::srs::factories::NativeBn254CrsFactory::last_degree_ = 0
private

Definition at line 53 of file native_crs_factory.hpp.

◆ mem_crs_

std::shared_ptr<MemBn254CrsFactory> bb::srs::factories::NativeBn254CrsFactory::mem_crs_
private

Definition at line 54 of file native_crs_factory.hpp.

◆ path_

std::filesystem::path bb::srs::factories::NativeBn254CrsFactory::path_
private

Definition at line 51 of file native_crs_factory.hpp.


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