Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::FixedVKAndHash_< PrecomputedCommitments, HashType, HardcodedVKAndHash > Class Template Reference

Simple verification key class for fixed-size circuits (ECCVM, Translator). More...

#include <flavor.hpp>

Inheritance diagram for bb::FixedVKAndHash_< PrecomputedCommitments, HashType, HardcodedVKAndHash >:

Public Types

using Commitment = typename PrecomputedCommitments::DataType
 

Public Member Functions

bool operator== (const FixedVKAndHash_ &) const =default
 
 FixedVKAndHash_ ()
 
HashType get_hash () const
 

Private Attributes

HashType hash {}
 

Detailed Description

template<typename PrecomputedCommitments, typename HashType, typename HardcodedVKAndHash>
class bb::FixedVKAndHash_< PrecomputedCommitments, HashType, HardcodedVKAndHash >

Simple verification key class for fixed-size circuits (ECCVM, Translator).

Stores only the commitments and a precomputed hash. Circuit size and public inputs count are known constants for these fixed circuits and don't need to be stored.

Template Parameters
PrecomputedCommitmentsThe precomputed entities containing VK commitments
HashTypeThe field type for the precomputed hash (e.g., fr for both ECCVM and Translator)
HardcodedVKAndHashClass containing static vk_hash() and get_all() methods with hardcoded values

Definition at line 136 of file flavor.hpp.

Member Typedef Documentation

◆ Commitment

template<typename PrecomputedCommitments , typename HashType , typename HardcodedVKAndHash >
using bb::FixedVKAndHash_< PrecomputedCommitments, HashType, HardcodedVKAndHash >::Commitment = typename PrecomputedCommitments::DataType

Definition at line 138 of file flavor.hpp.

Constructor & Destructor Documentation

◆ FixedVKAndHash_()

template<typename PrecomputedCommitments , typename HashType , typename HardcodedVKAndHash >
bb::FixedVKAndHash_< PrecomputedCommitments, HashType, HardcodedVKAndHash >::FixedVKAndHash_ ( )
inline

Definition at line 143 of file flavor.hpp.

Member Function Documentation

◆ get_hash()

template<typename PrecomputedCommitments , typename HashType , typename HardcodedVKAndHash >
HashType bb::FixedVKAndHash_< PrecomputedCommitments, HashType, HardcodedVKAndHash >::get_hash ( ) const
inline

Definition at line 151 of file flavor.hpp.

◆ operator==()

template<typename PrecomputedCommitments , typename HashType , typename HardcodedVKAndHash >
bool bb::FixedVKAndHash_< PrecomputedCommitments, HashType, HardcodedVKAndHash >::operator== ( const FixedVKAndHash_< PrecomputedCommitments, HashType, HardcodedVKAndHash > &  ) const
default

Member Data Documentation

◆ hash

template<typename PrecomputedCommitments , typename HashType , typename HardcodedVKAndHash >
HashType bb::FixedVKAndHash_< PrecomputedCommitments, HashType, HardcodedVKAndHash >::hash {}
private

Definition at line 154 of file flavor.hpp.


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