Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
get_bn254_crs.hpp
Go to the documentation of this file.
1#pragma once
4#include <filesystem>
5#include <fstream>
6#include <ios>
7
8namespace bb {
9std::vector<g1::affine_element> get_bn254_g1_data(const std::filesystem::path& path,
10 size_t num_points,
11 bool allow_download = true);
12
13// Overload with custom URLs for testing fallback behavior
14std::vector<g1::affine_element> get_bn254_g1_data(const std::filesystem::path& path,
15 size_t num_points,
16 bool allow_download,
17 const std::string& primary_url,
18 const std::string& fallback_url);
19
20g2::affine_element get_bn254_g2_data(const std::filesystem::path& path, bool allow_download = true);
21} // namespace bb
Entry point for Barretenberg command-line interface.
Definition api.hpp:5
g2::affine_element get_bn254_g2_data(const std::filesystem::path &path, bool allow_download=true)
std::vector< g1::affine_element > get_bn254_g1_data(const std::filesystem::path &path, size_t num_points, bool allow_download, const std::string &primary_url, const std::string &fallback_url)
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13