Available on crate feature
curve-stark
only.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
Stark
curve encoded as bytes - Encoded
Scalar - Scalar in
Stark
curve large prime subgroup encoded as bytes - Generator
- Generator of
Stark
curve - Point
- Point on
Stark
curve - Radix16
Iter - Iterator over scalar coefficients in radix 16 representation of
Stark
curve - Scalar
- Scalar in
Stark
curve large prime subgroup - Secret
Scalar - Secret scalar in
Stark
curve large prime subgroup