Skip to main content

ScalarArithmetic

Trait ScalarArithmetic 

Source
pub trait ScalarArithmetic: Curve {
    type Scalar: ConstantTimeEq + Field + PrimeField<Repr = FieldBytes<Self>>;
}
Expand description

Scalar arithmetic.

Required Associated Types§

Source

type Scalar: ConstantTimeEq + Field + PrimeField<Repr = FieldBytes<Self>>

Scalar field type.

Note: the following bounds are enforced by ff::Field:

  • Copy
  • Clone
  • ConditionallySelectable
  • Debug
  • Default
  • Send
  • Sync

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§