Corelib
a * b (mod n)
pub fn u256_mul_mod_n(a: u256, b: u256, n: NonZero) -> u256
use core::math::u256_mul_mod_n; let result = u256_mul_mod_n(17, 23, 29); assert!(result == 14);
Was this page helpful?