Expand description
Aliases for Stark curve
This module provides type aliases to Point, Scalar, and other types
instantiated with Stark. It might be convenient to use this module when you don’t need your code to be generic over choice
of curve.
§Example
The code below only works with Stark curve. By using type aliases from
generic_ec::curves::stark
, we never need to deal with generic parameters.
use generic_ec::curves::stark::{Point, SecretScalar};
let mut rng = rand::rngs::OsRng;
let secret_key = SecretScalar::random(&mut rng);
let public_key = Point::generator() * &secret_key;
// ...Type Aliases§
- E
- Alias for Stark curve
- Encoded
Point - Point on
Starkcurve encoded as bytes - Encoded
Scalar - Scalar in
Starkcurve large prime subgroup encoded as bytes - Generator
- Generator of
Starkcurve - Point
- Point on
Starkcurve - Radix16
Iter - Iterator over scalar coefficients in radix 16 representation of
Starkcurve - Scalar
- Scalar in
Starkcurve large prime subgroup - Secret
Scalar - Secret scalar in
Starkcurve large prime subgroup