Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

get_min_one_order

Returns (-1) mod n precomputed for the scalar field (curve order).

This is equivalent to (n - 1) and is used for scalar arithmetic operations.

Arguments

  • curve_index - Index of the curve (0-5)

Returns

  • The value (-1) mod n as u384

Panics

  • Panics for invalid curve indices

Fully qualified path: garaga::definitions::curves::get_min_one_order

pub fn get_min_one_order(curve_index: u32) -> u384