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

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

#include <flavor.hpp>

Inheritance diagram for bb::FixedStdlibVKAndHash_< Builder_, PrecomputedCommitments, NativeVerificationKey >:

Public Types

using Builder = Builder_
 
using Commitment = typename PrecomputedCommitments::DataType
 
using FF = stdlib::field_t< Builder >
 

Public Member Functions

bool operator== (const FixedStdlibVKAndHash_ &) const =default
 
 FixedStdlibVKAndHash_ ()=default
 
 FixedStdlibVKAndHash_ (Builder *builder, const std::shared_ptr< NativeVerificationKey > &native_key)
 Construct from native verification key and fix all witnesses (VK is constant for fixed circuits)
 
FF get_hash () const
 

Private Attributes

FF hash
 

Detailed Description

template<typename Builder_, typename PrecomputedCommitments, typename NativeVerificationKey>
class bb::FixedStdlibVKAndHash_< Builder_, PrecomputedCommitments, NativeVerificationKey >

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

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

Template Parameters
Builder_The circuit builder type
PrecomputedCommitmentsThe precomputed entities type
NativeVerificationKeyThe native VK type for construction from native key

Definition at line 382 of file flavor.hpp.

Member Typedef Documentation

◆ Builder

template<typename Builder_ , typename PrecomputedCommitments , typename NativeVerificationKey >
using bb::FixedStdlibVKAndHash_< Builder_, PrecomputedCommitments, NativeVerificationKey >::Builder = Builder_

Definition at line 384 of file flavor.hpp.

◆ Commitment

template<typename Builder_ , typename PrecomputedCommitments , typename NativeVerificationKey >
using bb::FixedStdlibVKAndHash_< Builder_, PrecomputedCommitments, NativeVerificationKey >::Commitment = typename PrecomputedCommitments::DataType

Definition at line 385 of file flavor.hpp.

◆ FF

template<typename Builder_ , typename PrecomputedCommitments , typename NativeVerificationKey >
using bb::FixedStdlibVKAndHash_< Builder_, PrecomputedCommitments, NativeVerificationKey >::FF = stdlib::field_t<Builder>

Definition at line 386 of file flavor.hpp.

Constructor & Destructor Documentation

◆ FixedStdlibVKAndHash_() [1/2]

template<typename Builder_ , typename PrecomputedCommitments , typename NativeVerificationKey >
bb::FixedStdlibVKAndHash_< Builder_, PrecomputedCommitments, NativeVerificationKey >::FixedStdlibVKAndHash_ ( )
default

◆ FixedStdlibVKAndHash_() [2/2]

template<typename Builder_ , typename PrecomputedCommitments , typename NativeVerificationKey >
bb::FixedStdlibVKAndHash_< Builder_, PrecomputedCommitments, NativeVerificationKey >::FixedStdlibVKAndHash_ ( Builder builder,
const std::shared_ptr< NativeVerificationKey > &  native_key 
)
inline

Construct from native verification key and fix all witnesses (VK is constant for fixed circuits)

Definition at line 394 of file flavor.hpp.

Member Function Documentation

◆ get_hash()

template<typename Builder_ , typename PrecomputedCommitments , typename NativeVerificationKey >
FF bb::FixedStdlibVKAndHash_< Builder_, PrecomputedCommitments, NativeVerificationKey >::get_hash ( ) const
inline

Definition at line 407 of file flavor.hpp.

◆ operator==()

template<typename Builder_ , typename PrecomputedCommitments , typename NativeVerificationKey >
bool bb::FixedStdlibVKAndHash_< Builder_, PrecomputedCommitments, NativeVerificationKey >::operator== ( const FixedStdlibVKAndHash_< Builder_, PrecomputedCommitments, NativeVerificationKey > &  ) const
default

Member Data Documentation

◆ hash

template<typename Builder_ , typename PrecomputedCommitments , typename NativeVerificationKey >
FF bb::FixedStdlibVKAndHash_< Builder_, PrecomputedCommitments, NativeVerificationKey >::hash
private

Definition at line 410 of file flavor.hpp.


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