Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
global_crs.hpp
Go to the documentation of this file.
1#pragma once
5#include <filesystem>
6
7namespace bb::srs {
8// Path to ~/.bb-crs where we store the downloaded crs files
9std::filesystem::path bb_crs_path();
10
11// Initializes the crs using files
12void init_bn254_file_crs_factory(const std::filesystem::path& path);
13void init_grumpkin_file_crs_factory(const std::filesystem::path& path);
14inline void init_file_crs_factory(const std::filesystem::path& path)
15{
18}
19
20// Initializes the crs using memory buffers
23 bb::g2::affine_element const& g2_point);
24
25// Initializes the crs using files if available, otherwise using the network
26void init_grumpkin_net_crs_factory(const std::filesystem::path& path);
27void init_bn254_net_crs_factory(const std::filesystem::path& path);
28
29inline void init_net_crs_factory(const std::filesystem::path& path)
30{
33}
34
37
39
40} // namespace bb::srs
void init_grumpkin_net_crs_factory(const std::filesystem::path &path)
void init_net_crs_factory(const std::filesystem::path &path)
std::shared_ptr< factories::CrsFactory< curve::BN254 > > get_bn254_crs_factory()
void init_grumpkin_file_crs_factory(const std::filesystem::path &path)
std::filesystem::path bb_crs_path()
std::shared_ptr< factories::CrsFactory< curve::BN254 > > get_crs_factory()
void init_file_crs_factory(const std::filesystem::path &path)
std::shared_ptr< factories::CrsFactory< curve::Grumpkin > > get_grumpkin_crs_factory()
void init_grumpkin_mem_crs_factory(std::vector< curve::Grumpkin::AffineElement > const &points)
void init_bn254_net_crs_factory(const std::filesystem::path &path)
void init_bn254_file_crs_factory(const std::filesystem::path &path)
void init_bn254_mem_crs_factory(std::vector< g1::affine_element > const &points, g2::affine_element const &g2_point)
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13