[][src]Type Definition zerocaf::scalar::Scalar

type Scalar = Scalar;

A Scalar represents an element of the field generated by the prime of the sub-group: 2^249 - 15145038707218910765482344729778085401.

This is a type alias for one of the Scalar types in the backend module.

Trait Implementations

impl PartialEq<Scalar> for Scalar[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Eq for Scalar[src]

impl ConstantTimeEq for Scalar[src]

fn ct_eq(&self, other: &Scalar) -> Choice[src]

Test equality between two Scalars. Since the internal representation is not canonical, the field elements are normalized to wire format before comparison.