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
12namespace bb {
13
14// The data needed to reconstruct a public input component from its limbs stored in the public inputs
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
Entry point for Barretenberg command-line interface.
Definition api.hpp:5
bool operator==(const PublicComponentKey &) const =default
static constexpr size_t DEFAULT_IDX