Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Free functions

add_modFunction that performs modular addition. Will panick if result is > u256 max…
mult_inverseFunction that return the modular multiplicative inverse. Disclaimer: this function should only be used with a prime modulo….
add_inverse_modFunction that return the modular additive inverse….
sub_modFunction that performs modular subtraction….
mult_modFunction that performs modular multiplication….
u256_wide_sqrComputes the square of a u256 value and returns the result as u512 to handle overflow This function performs wide multiplication to compute a^2 without losing precision,…
sqr_modFunction that performs modular multiplication….
div_modFunction that performs modular division….
pow_modFunction that performs modular exponentiation….
equality_modChecks if two u256 values are congruent modulo a given modulus This function computes whether a ≡ b (mod modulo) by comparing their remainders…