Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
phase_spec.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
6
7namespace bb::avm2::tracegen {
8
9// TxPhaseSpec contains the fields that are read from the precomputed table
10// via the #[READ_PHASE_SPEC] lookup in tx.pil.
13 bool is_teardown = false;
14 bool is_collect_fee = false;
15 bool is_tree_padding = false;
16 bool is_cleanup = false;
17 bool is_revertible = false;
20 bool append_note_hash = false;
21 bool append_nullifier = false;
22 bool append_l2_l1_msg = false;
24};
25
26// Lazy-initialized function to avoid expensive startup initialization
28
29} // namespace bb::avm2::tracegen
const std::unordered_map< TransactionPhase, TxPhaseSpec > & get_tx_phase_spec_map()
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13