Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
pure_to_radix.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <utility>
5#include <vector>
6
10
11namespace bb::avm2::simulation {
12
14 public:
15 PureToRadix() = default;
16 ~PureToRadix() override = default;
17
18 std::pair<std::vector<uint8_t>, /* truncated */ bool> to_le_radix(const FF& value,
19 uint32_t num_limbs,
20 uint32_t radix) override;
21 std::pair<std::vector<bool>, /* truncated */ bool> to_le_bits(const FF& value, uint32_t num_limbs) override;
23 const FF& value,
24 uint32_t radix,
25 uint32_t num_limbs,
26 bool is_output_bits,
27 MemoryAddress dst_addr) override;
28};
29
30} // namespace bb::avm2::simulation
void to_be_radix(MemoryInterface &memory, const FF &value, uint32_t radix, uint32_t num_limbs, bool is_output_bits, MemoryAddress dst_addr) override
std::pair< std::vector< bool >, bool > to_le_bits(const FF &value, uint32_t num_limbs) override
std::pair< std::vector< uint8_t >, bool > to_le_radix(const FF &value, uint32_t num_limbs, uint32_t radix) override
uint32_t dst_addr
AVM range check gadget for witness generation.
AvmFlavorSettings::FF FF
Definition field.hpp:10
uint32_t MemoryAddress
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13