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
4
6
7namespace bb::avm2::simulation {
8
10 public:
11 PureToRadix() = default;
12 ~PureToRadix() override = default;
13
14 std::pair<std::vector<uint8_t>, /* truncated */ bool> to_le_radix(const FF& value,
15 uint32_t num_limbs,
16 uint32_t radix) override;
17 std::pair<std::vector<bool>, /* truncated */ bool> to_le_bits(const FF& value, uint32_t num_limbs) override;
19 const FF& value,
20 uint32_t radix,
21 uint32_t num_limbs,
22 bool is_output_bits,
23 MemoryAddress dst_addr) override;
24};
25
26} // 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
uint32_t MemoryAddress
AvmFlavorSettings::FF FF
Definition field.hpp:10
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13