Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

get_G

Returns the standard generator point G of the curve’s prime-order subgroup.

This is the base point used for scalar multiplication and key generation.

Arguments

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

Returns

  • The generator point G as G1Point

Panics

  • Panics for invalid curve indices

Note

For ED25519 (index 4), returns the generator in Weierstrass form.

Fully qualified path: garaga::definitions::curves::get_G

pub fn get_G(curve_index: u32) -> G1Point