Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
ultra_execution_trace.hpp
Go to the documentation of this file.
1// === AUDIT STATUS ===
2// internal: { status: Complete, auditors: [Luke, Raju], commit: }
3// external_1: { status: not started, auditors: [], commit: }
4// external_2: { status: not started, auditors: [], commit: }
5// =====================
6
7#pragma once
8
16
17namespace bb {
18
24 public:
25 static constexpr size_t NUM_WIRES = UltraTraceBlock::NUM_WIRES;
26 // The number of rows reserved at the top of the trace for row-disabling / ZK masking.
27 static constexpr size_t TRACE_OFFSET = NUM_DISABLED_ROWS_IN_SUMCHECK;
28 using FF = fr;
29
31
32 void compute_offsets(size_t trace_offset = TRACE_OFFSET)
33 {
34 uint32_t offset = static_cast<uint32_t>(trace_offset + NUM_ZERO_ROWS);
35 for (auto& block : this->get()) {
36 block.trace_offset_ = offset;
37 offset += static_cast<uint32_t>(block.size());
38 }
39 }
40
42 {
43 size_t total_size(0);
44 for (const auto& block : this->get()) {
45 total_size += block.size();
46 }
47 return total_size;
48 }
49
50 bool operator==(const UltraExecutionTraceBlocks& other) const = default;
51};
52
53} // namespace bb
Ultra execution trace wrapper. UltraTraceBlockData (codegen-emitted) lists the blocks and their owned...
bool operator==(const UltraExecutionTraceBlocks &other) const =default
void compute_offsets(size_t trace_offset=TRACE_OFFSET)
ssize_t offset
Definition engine.cpp:62
Entry point for Barretenberg command-line interface.
Definition api.hpp:5
field< Bn254FrParams > fr
Definition fr.hpp:155