[][src]Trait elliptic_curve::Curve

pub trait Curve: Clone + Debug + Default + Eq + Ord + Send + Sync {
    type ElementSize: ArrayLength<u8> + Add + Eq + Ord + Unsigned;
}

Elliptic curve.

This trait is intended to be impl'd by a ZST which represents a concrete elliptic curve.

Other traits in this crate which are bounded by Curve are intended to be impl'd by these ZSTs, facilitating types which are generic over elliptic curves (e.g. SecretKey).

Associated Types

type ElementSize: ArrayLength<u8> + Add + Eq + Ord + Unsigned

Number of bytes required to serialize elements of field elements associated with this curve, e.g. elements of the base/scalar fields.

This is used for computing the sizes for types related to this curve.

Loading content...

Implementors

Loading content...