get_a
Returns the Weierstrass ‘a’ parameter for a given curve.
For Weierstrass curves: y² = x³ + ax + b
Arguments
curve_index- Index of the curve (0-5)
Returns
- The ‘a’ parameter as u384, or zero for invalid indices
Note
For ED25519 (index 4), this returns the ‘a’ parameter of the birationally equivalent Weierstrass curve, not the Edwards curve parameter.
Fully qualified path: garaga::definitions::curves::get_a
pub fn get_a(curve_index: u32) -> u384