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

#include <transcript_manifest.hpp>

Classes

struct  RoundData
 

Public Member Functions

void print ()
 
void add_challenge (size_t round, const std::string &label)
 Add a single challenge label to the manifest for the given round.
 
void add_challenge (size_t round, std::span< const std::string > labels)
 Add multiple challenge labels to the manifest for the given round.
 
template<size_t N>
void add_challenge (size_t round, const std::array< std::string, N > &labels)
 Add multiple challenge labels to the manifest for the given round.
 
template<size_t N>
void add_challenge (size_t round, const std::array< const char *, N > &labels)
 Add multiple challenge labels to the manifest for the given round.
 
void add_entry (size_t round, const std::string &element_label, size_t element_size)
 
size_t size () const
 
RoundData operator[] (const size_t &round)
 
bool operator== (const TranscriptManifest &other) const =default
 

Private Attributes

std::map< size_t, RoundDatamanifest
 

Detailed Description

Definition at line 18 of file transcript_manifest.hpp.

Member Function Documentation

◆ add_challenge() [1/4]

template<size_t N>
void bb::TranscriptManifest::add_challenge ( size_t  round,
const std::array< const char *, N > &  labels 
)
inline

Add multiple challenge labels to the manifest for the given round.

Convenience overload for const char* arrays (e.g., from std::array{"a", "b"})

Definition at line 77 of file transcript_manifest.hpp.

◆ add_challenge() [2/4]

template<size_t N>
void bb::TranscriptManifest::add_challenge ( size_t  round,
const std::array< std::string, N > &  labels 
)
inline

Add multiple challenge labels to the manifest for the given round.

Convenience overload for arrays that delegates to span overload

Definition at line 68 of file transcript_manifest.hpp.

◆ add_challenge() [3/4]

void bb::TranscriptManifest::add_challenge ( size_t  round,
const std::string &  label 
)
inline

Add a single challenge label to the manifest for the given round.

This appends to any existing challenges in the round

Definition at line 51 of file transcript_manifest.hpp.

◆ add_challenge() [4/4]

void bb::TranscriptManifest::add_challenge ( size_t  round,
std::span< const std::string >  labels 
)
inline

Add multiple challenge labels to the manifest for the given round.

Convenience overload that loops through the span and appends each label

Definition at line 57 of file transcript_manifest.hpp.

◆ add_entry()

void bb::TranscriptManifest::add_entry ( size_t  round,
const std::string &  element_label,
size_t  element_size 
)
inline

Definition at line 84 of file transcript_manifest.hpp.

◆ operator==()

bool bb::TranscriptManifest::operator== ( const TranscriptManifest other) const
default

◆ operator[]()

RoundData bb::TranscriptManifest::operator[] ( const size_t &  round)
inline

Definition at line 91 of file transcript_manifest.hpp.

◆ print()

void bb::TranscriptManifest::print ( )
inline

Definition at line 39 of file transcript_manifest.hpp.

◆ size()

size_t bb::TranscriptManifest::size ( ) const
inline

Definition at line 89 of file transcript_manifest.hpp.

Member Data Documentation

◆ manifest

std::map<size_t, RoundData> bb::TranscriptManifest::manifest
private

Definition at line 36 of file transcript_manifest.hpp.


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