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

#include <indexed_leaf.hpp>

Public Member Functions

 PublicDataLeafValue ()=default
 
 PublicDataLeafValue (const fr &s, const fr &v)
 
 PublicDataLeafValue (const PublicDataLeafValue &other)=default
 
 PublicDataLeafValue (PublicDataLeafValue &&other)=default
 
PublicDataLeafValueoperator= (const PublicDataLeafValue &other)
 
PublicDataLeafValueoperator= (PublicDataLeafValue &&other) noexcept
 
 ~PublicDataLeafValue ()=default
 
bool operator== (PublicDataLeafValue const &other) const
 
fr get_key () const
 
bool is_empty () const
 
std::vector< frget_hash_inputs (fr nextValue, fr nextIndex) const
 
 operator uint256_t () const
 
size_t hash () const noexcept
 

Static Public Member Functions

static bool is_updateable ()
 
static PublicDataLeafValue empty ()
 
static PublicDataLeafValue padding (index_t i)
 
static std::string name ()
 

Public Attributes

fr slot
 
fr value
 

Friends

std::ostream & operator<< (std::ostream &os, const PublicDataLeafValue &v)
 

Detailed Description

Definition at line 75 of file indexed_leaf.hpp.

Constructor & Destructor Documentation

◆ PublicDataLeafValue() [1/4]

bb::crypto::merkle_tree::PublicDataLeafValue::PublicDataLeafValue ( )
default

◆ PublicDataLeafValue() [2/4]

bb::crypto::merkle_tree::PublicDataLeafValue::PublicDataLeafValue ( const fr s,
const fr v 
)
inline

Definition at line 82 of file indexed_leaf.hpp.

◆ PublicDataLeafValue() [3/4]

bb::crypto::merkle_tree::PublicDataLeafValue::PublicDataLeafValue ( const PublicDataLeafValue other)
default

◆ PublicDataLeafValue() [4/4]

bb::crypto::merkle_tree::PublicDataLeafValue::PublicDataLeafValue ( PublicDataLeafValue &&  other)
default

◆ ~PublicDataLeafValue()

bb::crypto::merkle_tree::PublicDataLeafValue::~PublicDataLeafValue ( )
default

Member Function Documentation

◆ empty()

static PublicDataLeafValue bb::crypto::merkle_tree::PublicDataLeafValue::empty ( )
inlinestatic

Definition at line 128 of file indexed_leaf.hpp.

◆ get_hash_inputs()

std::vector< fr > bb::crypto::merkle_tree::PublicDataLeafValue::get_hash_inputs ( fr  nextValue,
fr  nextIndex 
) const
inline

Definition at line 121 of file indexed_leaf.hpp.

◆ get_key()

fr bb::crypto::merkle_tree::PublicDataLeafValue::get_key ( ) const
inline

Definition at line 117 of file indexed_leaf.hpp.

◆ hash()

size_t bb::crypto::merkle_tree::PublicDataLeafValue::hash ( ) const
inlinenoexcept

Definition at line 134 of file indexed_leaf.hpp.

◆ is_empty()

bool bb::crypto::merkle_tree::PublicDataLeafValue::is_empty ( ) const
inline

Definition at line 119 of file indexed_leaf.hpp.

◆ is_updateable()

static bool bb::crypto::merkle_tree::PublicDataLeafValue::is_updateable ( )
inlinestatic

Definition at line 107 of file indexed_leaf.hpp.

◆ name()

static std::string bb::crypto::merkle_tree::PublicDataLeafValue::name ( )
inlinestatic

Definition at line 132 of file indexed_leaf.hpp.

◆ operator uint256_t()

bb::crypto::merkle_tree::PublicDataLeafValue::operator uint256_t ( ) const
inline

Definition at line 126 of file indexed_leaf.hpp.

◆ operator=() [1/2]

PublicDataLeafValue & bb::crypto::merkle_tree::PublicDataLeafValue::operator= ( const PublicDataLeafValue other)
inline

Definition at line 88 of file indexed_leaf.hpp.

◆ operator=() [2/2]

PublicDataLeafValue & bb::crypto::merkle_tree::PublicDataLeafValue::operator= ( PublicDataLeafValue &&  other)
inlinenoexcept

Definition at line 97 of file indexed_leaf.hpp.

◆ operator==()

bool bb::crypto::merkle_tree::PublicDataLeafValue::operator== ( PublicDataLeafValue const &  other) const
inline

Definition at line 109 of file indexed_leaf.hpp.

◆ padding()

static PublicDataLeafValue bb::crypto::merkle_tree::PublicDataLeafValue::padding ( index_t  i)
inlinestatic

Definition at line 130 of file indexed_leaf.hpp.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const PublicDataLeafValue v 
)
friend

Definition at line 111 of file indexed_leaf.hpp.

Member Data Documentation

◆ slot

fr bb::crypto::merkle_tree::PublicDataLeafValue::slot

Definition at line 76 of file indexed_leaf.hpp.

◆ value

fr bb::crypto::merkle_tree::PublicDataLeafValue::value

Definition at line 77 of file indexed_leaf.hpp.


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