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
9#include <cstdint>
10
11namespace bb {
12
13// The data needed to reconstruct a public input component from its limbs stored in the public inputs
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
24};
25} // namespace bb
Entry point for Barretenberg command-line interface.
static constexpr uint32_t DEFAULT_IDX
bool operator==(const PublicComponentKey &) const =default