Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

get_p

GETTER FUNCTIONS /// Returns the prime modulus p of the base field Fp for a given curve.

Arguments

  • curve_index - Index of the curve (0-5, see curve index mapping above)

Returns

  • The prime modulus p as u384, or zero for invalid indices

Fully qualified path: garaga::definitions::curves::get_p

pub fn get_p(curve_index: u32) -> u384