Trait elliptic_curve::Order[][src]

pub trait Order: Curve {
    type Limbs: AsRef<[u64]> + Copy + Debug;

    const ORDER: Self::Limbs;
    fn is_scalar_repr_in_range(fe_bytes: &FieldBytes<Self>) -> Choice { ... }
}

Order of an elliptic curve group.

This trait is available even when the arithmetic feature of the crate is disabled and does not require any additional crate dependencies.

This trait is useful for supporting a baseline level of functionality across curve implementations, even ones which do not provide a field arithmetic backend.

Associated Types

type Limbs: AsRef<[u64]> + Copy + Debug[src]

Type representing the “limbs” of the curves group’s order on 64-bit platforms.

Loading content...

Associated Constants

const ORDER: Self::Limbs[src]

Order constant.

Subdivided into either 32-bit or 64-bit “limbs” (depending on the target CPU’s word size), specified from least to most significant.

Loading content...

Provided methods

fn is_scalar_repr_in_range(fe_bytes: &FieldBytes<Self>) -> Choice[src]

Check that the given scalar field repr is in range.

Field element must be serialized as a big endian integer.

Loading content...

Implementors

Loading content...