Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
repeated_commitments_data.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
8#include <cstddef>
9
10namespace bb {
14 size_t first_range_size = 0;
18
20 // Constructor for a single range
21 constexpr RepeatedCommitmentsData(size_t first_to_be_shifted_start, size_t first_shifted_start, size_t first_size)
22 : first_range_to_be_shifted_start(first_to_be_shifted_start)
23 , first_range_shifted_start(first_shifted_start)
24 , first_range_size(first_size)
25 {}
26
27 // Constructor for both ranges
28 constexpr RepeatedCommitmentsData(size_t first_to_be_shifted_start,
29 size_t first_shifted_start,
30 size_t first_size,
31 size_t second_to_be_shifted_start,
32 size_t second_shifted_start,
33 size_t second_size)
34 : first_range_to_be_shifted_start(first_to_be_shifted_start)
35 , first_range_shifted_start(first_shifted_start)
36 , first_range_size(first_size)
37 , second_range_to_be_shifted_start(second_to_be_shifted_start)
38 , second_range_shifted_start(second_shifted_start)
39 , second_range_size(second_size)
40 {}
41};
42} // namespace bb
Entry point for Barretenberg command-line interface.
constexpr RepeatedCommitmentsData(size_t first_to_be_shifted_start, size_t first_shifted_start, size_t first_size, size_t second_to_be_shifted_start, size_t second_shifted_start, size_t second_size)
constexpr RepeatedCommitmentsData(size_t first_to_be_shifted_start, size_t first_shifted_start, size_t first_size)