Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

get_n

Returns the order n of the curve’s prime-order subgroup.

This is the number of points in the main cryptographic subgroup. For most curves, this equals #E(Fp)/cofactor.

Arguments

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

Returns

  • The subgroup order n as u256

Panics

  • Panics for invalid curve indices

Fully qualified path: garaga::definitions::curves::get_n

pub fn get_n(curve_index: u32) -> u256