Type Alias elliptic_curve::FieldBytes

source ·
pub type FieldBytes<C> = Array<u8, FieldBytesSize<C>>;
Expand description

Byte representation of a base/scalar field element of a given curve.

Aliased Type§

struct FieldBytes<C>(pub <<C as Curve>::FieldBytesSize as ArraySize>::ArrayType<u8>);

Fields§

§0: <<C as Curve>::FieldBytesSize as ArraySize>::ArrayType<u8>

Trait Implementations§

source§

impl<C> From<&NonZeroScalar<C>> for FieldBytes<C>
where C: CurveArithmetic,

Available on crate feature arithmetic only.
source§

fn from(scalar: &NonZeroScalar<C>) -> FieldBytes<C>

Converts to this type from the input type.
source§

impl<C> From<NonZeroScalar<C>> for FieldBytes<C>
where C: CurveArithmetic,

Available on crate feature arithmetic only.
source§

fn from(scalar: NonZeroScalar<C>) -> FieldBytes<C>

Converts to this type from the input type.