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: not started, auditors: [], date: YYYY-MM-DD }
3
// external_1: { status: not started, auditors: [], date: YYYY-MM-DD }
4
// external_2: { status: not started, auditors: [], date: YYYY-MM-DD }
5
// =====================
6
7
#pragma once
8
#include <
barretenberg/serialize/msgpack.hpp
>
9
#include <cstdint>
10
11
namespace
bb
{
12
13
// The data needed to reconstruct a public input component from its limbs stored in the public inputs
14
struct
PublicComponentKey
{
15
constexpr
static
uint32_t
DEFAULT_IDX
= std::numeric_limits<uint32_t>::max();
16
17
uint32_t
start_idx
=
DEFAULT_IDX
;
// start index within public inputs array
18
19
bool
operator==
(
const
PublicComponentKey
&)
const
=
default
;
20
21
bool
is_set
()
const
{
return
start_idx
!=
DEFAULT_IDX
; }
22
23
MSGPACK_FIELDS
(
start_idx
);
24
};
25
}
// namespace bb
msgpack.hpp
bb
Entry point for Barretenberg command-line interface.
Definition
acir_format_getters.cpp:6
bb::PublicComponentKey
Definition
public_component_key.hpp:14
bb::PublicComponentKey::DEFAULT_IDX
static constexpr uint32_t DEFAULT_IDX
Definition
public_component_key.hpp:15
bb::PublicComponentKey::operator==
bool operator==(const PublicComponentKey &) const =default
bb::PublicComponentKey::is_set
bool is_set() const
Definition
public_component_key.hpp:21
bb::PublicComponentKey::start_idx
uint32_t start_idx
Definition
public_component_key.hpp:17
bb::PublicComponentKey::MSGPACK_FIELDS
MSGPACK_FIELDS(start_idx)
src
barretenberg
public_input_component
public_component_key.hpp
Generated by
1.9.8