Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

get_eigenvalue

Returns the eigenvalue λ for the curve’s efficiently computable endomorphism.

The endomorphism φ satisfies φ(P) = λ·P for points P on the curve. This eigenvalue is used in GLV decomposition to accelerate scalar multiplication.

Arguments

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

Returns

  • The eigenvalue λ as u384

Panics

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

Fully qualified path: garaga::definitions::curves::get_eigenvalue

pub fn get_eigenvalue(curve_index: u32) -> u384