Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

get_g

Returns a generator g of the multiplicative group Fp* for a given curve.

This generator is used for various field operations and exponentiations.

Arguments

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

Returns

  • A generator element g ∈ Fp* as u384

Panics

  • Panics for invalid curve indices

Fully qualified path: garaga::definitions::curves::get_g

pub fn get_g(curve_index: u32) -> u384