Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::Chonk::VerificationKey Struct Reference

#include <chonk.hpp>

Public Member Functions

std::vector< bb::frto_field_elements () const
 Serialize verification key to field elements.
 
size_t from_field_elements (std::span< const bb::fr > elements)
 Deserialize verification key from field elements.
 

Static Public Member Functions

static size_t calc_num_data_types ()
 Calculate the number of field elements needed for serialization.
 

Public Attributes

std::shared_ptr< MegaVerificationKeymega
 
std::shared_ptr< ECCVMVerificationKeyeccvm
 
std::shared_ptr< TranslatorVerificationKeytranslator
 

Detailed Description

Definition at line 164 of file chonk.hpp.

Member Function Documentation

◆ calc_num_data_types()

static size_t bb::Chonk::VerificationKey::calc_num_data_types ( )
inlinestatic

Calculate the number of field elements needed for serialization.

Returns
size_t Number of field elements

Definition at line 173 of file chonk.hpp.

◆ from_field_elements()

size_t bb::Chonk::VerificationKey::from_field_elements ( std::span< const bb::fr elements)
inline

Deserialize verification key from field elements.

Parameters
elementsThe field elements to deserialize from
Returns
size_t Number of field elements read

Definition at line 204 of file chonk.hpp.

◆ to_field_elements()

std::vector< bb::fr > bb::Chonk::VerificationKey::to_field_elements ( ) const
inline

Serialize verification key to field elements.

Returns
std::vector<bb::fr> The serialized field elements

Definition at line 183 of file chonk.hpp.

Member Data Documentation

◆ eccvm

std::shared_ptr<ECCVMVerificationKey> bb::Chonk::VerificationKey::eccvm

Definition at line 166 of file chonk.hpp.

◆ mega

std::shared_ptr<MegaVerificationKey> bb::Chonk::VerificationKey::mega

Definition at line 165 of file chonk.hpp.

◆ translator

std::shared_ptr<TranslatorVerificationKey> bb::Chonk::VerificationKey::translator

Definition at line 167 of file chonk.hpp.


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