sub_mod

Function that performs modular subtraction.

Arguments

  • a - Left hand side of subtraction.
  • b - Right hand side of subtraction.
  • modulo - modulo.

Returns

  • u256 - result of modular subtraction

Fully qualified path: alexandria_math::mod_arithmetics::sub_mod

#![allow(unused)]
fn main() {
pub fn sub_mod(mut a: u256, mut b: u256, modulo: u256) -> u256
}