Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::stdlib::PublicInputComponent< ComponentType > Class Template Reference

A wrapper class for serializing objects to and from the public inputs of a circuit. More...

#include <public_input_component.hpp>

Public Types

using Key = PublicComponentKey
 

Static Public Member Functions

static Key set (const ComponentType &component)
 
static ComponentType reconstruct (const std::vector< Fr > &public_inputs, const Key &key)
 

Private Types

using Builder = ComponentType::Builder
 
using Fr = stdlib::field_t< Builder >
 

Static Private Attributes

static constexpr uint32_t COMPONENT_SIZE = ComponentType::PUBLIC_INPUTS_SIZE
 

Detailed Description

template<typename ComponentType>
requires IsSerializableToAndFromPublicInputs<ComponentType>
class bb::stdlib::PublicInputComponent< ComponentType >

A wrapper class for serializing objects to and from the public inputs of a circuit.

Template Parameters
ComponentTypeA type that satisfies the IsSerializableToAndFromPublicInputs concept

Definition at line 42 of file public_input_component.hpp.

Member Typedef Documentation

◆ Builder

template<typename ComponentType >
using bb::stdlib::PublicInputComponent< ComponentType >::Builder = ComponentType::Builder
private

Definition at line 43 of file public_input_component.hpp.

◆ Fr

template<typename ComponentType >
using bb::stdlib::PublicInputComponent< ComponentType >::Fr = stdlib::field_t<Builder>
private

Definition at line 44 of file public_input_component.hpp.

◆ Key

template<typename ComponentType >
using bb::stdlib::PublicInputComponent< ComponentType >::Key = PublicComponentKey

Definition at line 49 of file public_input_component.hpp.

Member Function Documentation

◆ reconstruct()

template<typename ComponentType >
static ComponentType bb::stdlib::PublicInputComponent< ComponentType >::reconstruct ( const std::vector< Fr > &  public_inputs,
const Key key 
)
inlinestatic

Definition at line 60 of file public_input_component.hpp.

◆ set()

template<typename ComponentType >
static Key bb::stdlib::PublicInputComponent< ComponentType >::set ( const ComponentType &  component)
inlinestatic

Definition at line 52 of file public_input_component.hpp.

Member Data Documentation

◆ COMPONENT_SIZE

template<typename ComponentType >
constexpr uint32_t bb::stdlib::PublicInputComponent< ComponentType >::COMPONENT_SIZE = ComponentType::PUBLIC_INPUTS_SIZE
staticconstexprprivate

Definition at line 46 of file public_input_component.hpp.


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