Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
fake_to_radix.hpp
Go to the documentation of this file.
1#pragma once
2
4
6#include <stdexcept>
7
8namespace bb::avm2::simulation {
9
11 public:
12 FakeToRadix() = default;
13 ~FakeToRadix() override = default;
14
15 std::vector<uint8_t> to_le_radix(const FF& value, uint32_t num_limbs, uint32_t radix) override;
16 std::vector<bool> to_le_bits(const FF& value, uint32_t num_limbs) override;
17 void to_be_radix([[maybe_unused]] MemoryInterface& memory,
18 [[maybe_unused]] const FF& value,
19 [[maybe_unused]] uint32_t radix,
20 [[maybe_unused]] uint32_t num_limbs,
21 [[maybe_unused]] bool is_output_bits,
22 [[maybe_unused]] MemoryAddress dst_addr) override
23 {
24 throw std::runtime_error("FakeToRadix::to_be_radix is not implemented");
25 }
26};
27
28} // namespace bb::avm2::simulation
std::vector< bool > to_le_bits(const FF &value, uint32_t num_limbs) override
std::vector< uint8_t > to_le_radix(const FF &value, uint32_t num_limbs, uint32_t radix) override
void to_be_radix(MemoryInterface &memory, const FF &value, uint32_t radix, uint32_t num_limbs, bool is_output_bits, MemoryAddress dst_addr) override
uint32_t dst_addr
uint32_t MemoryAddress
AvmFlavorSettings::FF FF
Definition field.hpp:10