Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

get_third_root_of_unity

Returns a primitive cube root of unity ω in the base field Fp.

This element satisfies ω³ = 1 and ω ≠ 1, and is used in GLV endomorphism computations for accelerating scalar multiplication.

Arguments

  • curve_index - Index of the curve (must be 0, 1, or 2)

Returns

  • A third root of unity ω ∈ Fp as u384

Panics

  • Panics for curves without efficient endomorphism (not BN254, BLS12_381, or SECP256K1)

Fully qualified path: garaga::definitions::curves::get_third_root_of_unity

pub fn get_third_root_of_unity(curve_index: u32) -> u384