pub type FieldBytes<C> = GenericArray<u8, FieldSize<C>>;Expand description
Byte representation of a base/scalar field element of a given curve.
Aliased Type§
pub struct FieldBytes<C> { /* private fields */ }Trait Implementations§
Source§impl<C> From<&NonZeroScalar<C>> for FieldBytes<C>where
C: Curve + ProjectiveArithmetic,
impl<C> From<&NonZeroScalar<C>> for FieldBytes<C>where
C: Curve + ProjectiveArithmetic,
Source§fn from(scalar: &NonZeroScalar<C>) -> FieldBytes<C>
fn from(scalar: &NonZeroScalar<C>) -> FieldBytes<C>
Converts to this type from the input type.
Source§impl<C> From<&ScalarBytes<C>> for FieldBytes<C>where
C: Curve,
impl<C> From<&ScalarBytes<C>> for FieldBytes<C>where
C: Curve,
Source§fn from(scalar_bytes: &ScalarBytes<C>) -> FieldBytes<C>
fn from(scalar_bytes: &ScalarBytes<C>) -> FieldBytes<C>
Converts to this type from the input type.
Source§impl<C> From<NonZeroScalar<C>> for FieldBytes<C>where
C: Curve + ProjectiveArithmetic,
impl<C> From<NonZeroScalar<C>> for FieldBytes<C>where
C: Curve + ProjectiveArithmetic,
Source§fn from(scalar: NonZeroScalar<C>) -> FieldBytes<C>
fn from(scalar: NonZeroScalar<C>) -> FieldBytes<C>
Converts to this type from the input type.
Source§impl<C> From<ScalarBytes<C>> for FieldBytes<C>where
C: Curve,
impl<C> From<ScalarBytes<C>> for FieldBytes<C>where
C: Curve,
Source§fn from(scalar_bytes: ScalarBytes<C>) -> FieldBytes<C>
fn from(scalar_bytes: ScalarBytes<C>) -> FieldBytes<C>
Converts to this type from the input type.