Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
public_component_key.hpp
Go to the documentation of this file.
1
// === AUDIT STATUS ===
2
// internal: { status: Planned, auditors: [], commit: }
3
// external_1: { status: not started, auditors: [], commit: }
4
// external_2: { status: not started, auditors: [], commit: }
5
// =====================
6
7
#pragma once
8
#include <cstddef>
9
#include <cstdint>
10
#include <limits>
11
12
namespace
bb
{
13
14
// The data needed to reconstruct a public input component from its limbs stored in the public inputs
15
struct
PublicComponentKey
{
16
constexpr
static
size_t
DEFAULT_IDX
= std::numeric_limits<size_t>::max();
17
18
size_t
start_idx
=
DEFAULT_IDX
;
// start index within public inputs array
19
20
bool
operator==
(
const
PublicComponentKey
&)
const
=
default
;
21
22
bool
is_set
()
const
{
return
start_idx
!=
DEFAULT_IDX
; }
23
};
24
}
// namespace bb
bb
Entry point for Barretenberg command-line interface.
Definition
api.hpp:5
bb::PublicComponentKey
Definition
public_component_key.hpp:15
bb::PublicComponentKey::start_idx
size_t start_idx
Definition
public_component_key.hpp:18
bb::PublicComponentKey::operator==
bool operator==(const PublicComponentKey &) const =default
bb::PublicComponentKey::is_set
bool is_set() const
Definition
public_component_key.hpp:22
bb::PublicComponentKey::DEFAULT_IDX
static constexpr size_t DEFAULT_IDX
Definition
public_component_key.hpp:16
src
barretenberg
public_input_component
public_component_key.hpp
Generated by
1.9.8