pub type CompressedPoint<C> = Array<u8, CompressedPointSize<C>>;Expand description
Encoded elliptic curve point with point compression.
Aliased Type§
#[repr(transparent)]pub struct CompressedPoint<C>(pub <<<C as Curve>::FieldBytesSize as ModulusSize>::CompressedPointSize as ArraySize>::ArrayType<u8>);Tuple Fields§
§0: <<<C as Curve>::FieldBytesSize as ModulusSize>::CompressedPointSize as ArraySize>::ArrayType<u8>Trait Implementations§
Source§impl<C> From<&PublicKey<C>> for CompressedPoint<C>where
C: CurveArithmetic + PointCompression,
AffinePoint<C>: FromSec1Point<C> + ToSec1Point<C>,
FieldBytesSize<C>: ModulusSize,
Available on crate feature sec1 only.
impl<C> From<&PublicKey<C>> for CompressedPoint<C>where
C: CurveArithmetic + PointCompression,
AffinePoint<C>: FromSec1Point<C> + ToSec1Point<C>,
FieldBytesSize<C>: ModulusSize,
Available on crate feature
sec1 only.Source§fn from(public_key: &PublicKey<C>) -> CompressedPoint<C>
fn from(public_key: &PublicKey<C>) -> CompressedPoint<C>
Converts to this type from the input type.
Source§impl<C> From<PublicKey<C>> for CompressedPoint<C>where
C: CurveArithmetic + PointCompression,
AffinePoint<C>: FromSec1Point<C> + ToSec1Point<C>,
FieldBytesSize<C>: ModulusSize,
Available on crate feature sec1 only.
impl<C> From<PublicKey<C>> for CompressedPoint<C>where
C: CurveArithmetic + PointCompression,
AffinePoint<C>: FromSec1Point<C> + ToSec1Point<C>,
FieldBytesSize<C>: ModulusSize,
Available on crate feature
sec1 only.Source§fn from(public_key: PublicKey<C>) -> CompressedPoint<C>
fn from(public_key: PublicKey<C>) -> CompressedPoint<C>
Converts to this type from the input type.