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

#include <mem_bn254_crs_factory.hpp>

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

Public Member Functions

 MemBn254CrsFactory (std::vector< g1::affine_element > const &points, g2::affine_element const &g2_point)
 
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::shared_ptr< Crs< curve::BN254 > > crs_
 

Detailed Description

Create reference strings given pointers to in memory buffers.

This class is currently only used with wasm and works exclusively with the BN254 CRS.

Definition at line 16 of file mem_bn254_crs_factory.hpp.

Constructor & Destructor Documentation

◆ MemBn254CrsFactory()

bb::srs::factories::MemBn254CrsFactory::MemBn254CrsFactory ( std::vector< g1::affine_element > const &  points,
g2::affine_element const &  g2_point 
)

Definition at line 57 of file mem_bn254_crs_factory.cpp.

Member Function Documentation

◆ get_crs()

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

Member Data Documentation

◆ crs_

std::shared_ptr<Crs<curve::BN254> > bb::srs::factories::MemBn254CrsFactory::crs_
private

Definition at line 23 of file mem_bn254_crs_factory.hpp.


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