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
5
#include "
barretenberg/vm2/common/aztec_types.hpp
"
6
7
namespace
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.
11
struct
TxPhaseSpec
{
12
bool
is_public_call_request
=
false
;
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
;
18
uint32_t
read_pi_start_offset
= 0;
19
uint32_t
read_pi_length_offset
= 0;
20
bool
append_note_hash
=
false
;
21
bool
append_nullifier
=
false
;
22
bool
append_l2_l1_msg
=
false
;
23
uint8_t
next_phase_on_revert
= 0;
24
};
25
26
// Lazy-initialized function to avoid expensive startup initialization
27
const
std::unordered_map<TransactionPhase, TxPhaseSpec>
&
get_tx_phase_spec_map
();
28
29
}
// namespace bb::avm2::tracegen
aztec_types.hpp
bb::avm2::tracegen
Definition
full_row.hpp:9
bb::avm2::tracegen::get_tx_phase_spec_map
const std::unordered_map< TransactionPhase, TxPhaseSpec > & get_tx_phase_spec_map()
Definition
phase_spec.cpp:16
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
bb::avm2::tracegen::TxPhaseSpec
Definition
phase_spec.hpp:11
bb::avm2::tracegen::TxPhaseSpec::append_l2_l1_msg
bool append_l2_l1_msg
Definition
phase_spec.hpp:22
bb::avm2::tracegen::TxPhaseSpec::is_revertible
bool is_revertible
Definition
phase_spec.hpp:17
bb::avm2::tracegen::TxPhaseSpec::is_tree_padding
bool is_tree_padding
Definition
phase_spec.hpp:15
bb::avm2::tracegen::TxPhaseSpec::append_nullifier
bool append_nullifier
Definition
phase_spec.hpp:21
bb::avm2::tracegen::TxPhaseSpec::read_pi_start_offset
uint32_t read_pi_start_offset
Definition
phase_spec.hpp:18
bb::avm2::tracegen::TxPhaseSpec::next_phase_on_revert
uint8_t next_phase_on_revert
Definition
phase_spec.hpp:23
bb::avm2::tracegen::TxPhaseSpec::is_cleanup
bool is_cleanup
Definition
phase_spec.hpp:16
bb::avm2::tracegen::TxPhaseSpec::read_pi_length_offset
uint32_t read_pi_length_offset
Definition
phase_spec.hpp:19
bb::avm2::tracegen::TxPhaseSpec::is_collect_fee
bool is_collect_fee
Definition
phase_spec.hpp:14
bb::avm2::tracegen::TxPhaseSpec::is_teardown
bool is_teardown
Definition
phase_spec.hpp:13
bb::avm2::tracegen::TxPhaseSpec::is_public_call_request
bool is_public_call_request
Definition
phase_spec.hpp:12
bb::avm2::tracegen::TxPhaseSpec::append_note_hash
bool append_note_hash
Definition
phase_spec.hpp:20
src
barretenberg
vm2
tracegen
lib
phase_spec.hpp
Generated by
1.9.8