Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

has_endomorphism_available

Checks if a curve has an efficient endomorphism available for GLV decomposition.

GLV (Gallant-Lambert-Vanstone) decomposition accelerates scalar multiplication by utilizing the curve’s endomorphism structure.

Arguments

  • curve_index - Index of the curve

Returns

  • true for BN254, BLS12_381, and SECP256K1 (curves 0, 1, 2)
  • false for all other curves

Fully qualified path: garaga::definitions::curves::has_endomorphism_available

pub fn has_endomorphism_available(curve_index: u32) -> bool