[][src]Struct signatory::ecdsa::curve::point::UncompressedCurvePoint

pub struct UncompressedCurvePoint<C: WeierstrassCurve> { /* fields omitted */ }

Uncompressed elliptic curve points serialized according to the Elliptic-Curve-Point-to-Octet-String algorithm, including the 0x04 tag identifying the bytestring as a curve point.

Methods

impl<C> UncompressedCurvePoint<C> where
    C: WeierstrassCurve
[src]

pub fn from_bytes<B>(into_bytes: B) -> Option<Self> where
    B: Into<GenericArray<u8, C::UncompressedPointSize>>, 
[src]

Create a new uncompressed elliptic curve point

pub fn as_bytes(&self) -> &[u8][src]

Obtain public key as a byte array reference

pub fn into_bytes(self) -> GenericArray<u8, C::UncompressedPointSize>[src]

Convert public key into owned byte array

Trait Implementations

impl<C: PartialEq + WeierstrassCurve> PartialEq<UncompressedCurvePoint<C>> for UncompressedCurvePoint<C> where
    C::UncompressedPointSize: PartialEq
[src]

impl<C: Eq + WeierstrassCurve> Eq for UncompressedCurvePoint<C> where
    C::UncompressedPointSize: Eq
[src]

impl<C: Ord + WeierstrassCurve> Ord for UncompressedCurvePoint<C> where
    C::UncompressedPointSize: Ord
[src]

impl<C: PartialOrd + WeierstrassCurve> PartialOrd<UncompressedCurvePoint<C>> for UncompressedCurvePoint<C> where
    C::UncompressedPointSize: PartialOrd
[src]

impl<C: Hash + WeierstrassCurve> Hash for UncompressedCurvePoint<C> where
    C::UncompressedPointSize: Hash
[src]

impl<C> Copy for UncompressedCurvePoint<C> where
    C: WeierstrassCurve,
    <C::UncompressedPointSize as ArrayLength<u8>>::ArrayType: Copy
[src]

impl<C: WeierstrassCurve> AsRef<[u8]> for UncompressedCurvePoint<C>[src]

impl<C: WeierstrassCurve> Clone for UncompressedCurvePoint<C>[src]

Auto Trait Implementations

impl<C> Unpin for UncompressedCurvePoint<C> where
    <<C as WeierstrassCurve>::UncompressedPointSize as ArrayLength<u8>>::ArrayType: Unpin

impl<C> Send for UncompressedCurvePoint<C> where
    <C as WeierstrassCurve>::UncompressedPointSize: ArrayLength<u8>, 

impl<C> Sync for UncompressedCurvePoint<C> where
    <C as WeierstrassCurve>::UncompressedPointSize: ArrayLength<u8>, 

impl<C> UnwindSafe for UncompressedCurvePoint<C> where
    <<C as WeierstrassCurve>::UncompressedPointSize as ArrayLength<u8>>::ArrayType: UnwindSafe

impl<C> RefUnwindSafe for UncompressedCurvePoint<C> where
    <<C as WeierstrassCurve>::UncompressedPointSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> Same<T> for T

type Output = T

Should always be Self