Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
to_radix.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  bb
 Entry point for Barretenberg command-line interface.
 
namespace  bb::avm2
 

Functions

const std::array< std::vector< uint8_t >, 257 > & bb::avm2::get_p_limbs_per_radix ()
 Gets the p limbs per radix array. Each element is a vector containing the little endian decompositions of Fr modulus into limbs for each radix. Radix goes up to 256 so we need 257 decompositions.
 
size_t bb::avm2::get_p_limbs_per_radix_size (size_t radix)
 Gets the number of limbs that the modulus, p, decomposes into for a given radix.