Type Definition elliptic_curve::FieldBytes
source · [−]pub type FieldBytes<C> = GenericArray<u8, FieldSize<C>>;
Expand description
Byte representation of a base/scalar field element of a given curve.
Trait Implementations
sourceimpl<C> From<&NonZeroScalar<C>> for FieldBytes<C> where
C: Curve + ScalarArithmetic,
impl<C> From<&NonZeroScalar<C>> for FieldBytes<C> where
C: Curve + ScalarArithmetic,
sourcefn from(scalar: &NonZeroScalar<C>) -> FieldBytes<C>
fn from(scalar: &NonZeroScalar<C>) -> FieldBytes<C>
Converts to this type from the input type.
sourceimpl<C> From<NonZeroScalar<C>> for FieldBytes<C> where
C: Curve + ScalarArithmetic,
impl<C> From<NonZeroScalar<C>> for FieldBytes<C> where
C: Curve + ScalarArithmetic,
sourcefn from(scalar: NonZeroScalar<C>) -> FieldBytes<C>
fn from(scalar: NonZeroScalar<C>) -> FieldBytes<C>
Converts to this type from the input type.