Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
range_check_event.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
5// TODO(dbanks12): what is Cpp best practice? Import this here or somewhere common/shared?
6// It is needed for uint128_t
8
9namespace bb::avm2::simulation {
10
13 uint8_t num_bits;
14
15 bool operator==(const RangeCheckEvent& other) const = default;
16
17 // To be used with deduplicating event emitters.
19 Key get_key() const { return { value, num_bits }; }
20};
21
22} // namespace bb::avm2::simulation
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
unsigned __int128 uint128_t
Definition serialize.hpp:44
bool operator==(const RangeCheckEvent &other) const =default
std::tuple< uint128_t, uint8_t > Key