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

pub struct UncompressedCurvePoint<C> where
    C: Curve,
    <<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output: Add<UInt<UTerm, B1>>,
    <<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UTerm, B1>>>::Output: ArrayLength<u8>, 
{ /* fields omitted */ }

Uncompressed elliptic curve points serialized according to the Elliptic-Curve-Point-to-Octet-String algorithm.

See section 2.3.3 of SEC 1: Elliptic Curve Cryptography (Version 2.0):

https://www.secg.org/sec1-v2.pdf

Methods

impl<C> UncompressedCurvePoint<C> where
    C: Curve,
    <<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output: Add<UInt<UTerm, B1>>,
    <<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UTerm, B1>>>::Output: ArrayLength<u8>, 
[src]

pub fn from_bytes<B>(into_bytes: B) -> Option<UncompressedCurvePoint<C>> where
    B: Into<GenericArray<u8, <<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UTerm, B1>>>::Output>>, 
[src]

Create a new uncompressed elliptic curve point

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

Borrow byte slice containing uncompressed curve point

pub fn into_bytes(
    self
) -> GenericArray<u8, <<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UTerm, B1>>>::Output>
[src]

Convert public key into owned byte array

Trait Implementations

impl<C> Clone for UncompressedCurvePoint<C> where
    C: Curve,
    <<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output: Add<UInt<UTerm, B1>>,
    <<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UTerm, B1>>>::Output: ArrayLength<u8>, 
[src]

impl<C> AsRef<[u8]> for UncompressedCurvePoint<C> where
    C: Curve,
    <<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output: Add<UInt<UTerm, B1>>,
    <<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UTerm, B1>>>::Output: ArrayLength<u8>, 
[src]

impl<C> StructuralPartialEq for UncompressedCurvePoint<C> where
    C: Curve,
    <<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output: Add<UInt<UTerm, B1>>,
    <<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UTerm, B1>>>::Output: ArrayLength<u8>, 
[src]

impl<C> Ord for UncompressedCurvePoint<C> where
    C: Curve + Ord,
    <<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output: Add<UInt<UTerm, B1>>,
    <<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UTerm, B1>>>::Output: ArrayLength<u8>,
    <C as Curve>::ScalarSize: Ord
[src]

impl<C> PartialEq<UncompressedCurvePoint<C>> for UncompressedCurvePoint<C> where
    C: Curve + PartialEq<C>,
    <<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output: Add<UInt<UTerm, B1>>,
    <<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UTerm, B1>>>::Output: ArrayLength<u8>,
    <C as Curve>::ScalarSize: PartialEq<<C as Curve>::ScalarSize>, 
[src]

impl<C> Copy for UncompressedCurvePoint<C> where
    C: Curve,
    <<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output: Add<UInt<UTerm, B1>>,
    <<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UTerm, B1>>>::Output: ArrayLength<u8>,
    <<<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UTerm, B1>>>::Output as ArrayLength<u8>>::ArrayType: Copy
[src]

impl<C> Hash for UncompressedCurvePoint<C> where
    C: Curve + Hash,
    <<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output: Add<UInt<UTerm, B1>>,
    <<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UTerm, B1>>>::Output: ArrayLength<u8>,
    <C as Curve>::ScalarSize: Hash
[src]

impl<C> PartialOrd<UncompressedCurvePoint<C>> for UncompressedCurvePoint<C> where
    C: Curve + PartialOrd<C>,
    <<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output: Add<UInt<UTerm, B1>>,
    <<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UTerm, B1>>>::Output: ArrayLength<u8>,
    <C as Curve>::ScalarSize: PartialOrd<<C as Curve>::ScalarSize>, 
[src]

impl<C> Eq for UncompressedCurvePoint<C> where
    C: Curve + Eq,
    <<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output: Add<UInt<UTerm, B1>>,
    <<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UTerm, B1>>>::Output: ArrayLength<u8>,
    <C as Curve>::ScalarSize: Eq
[src]

impl<C> From<UncompressedCurvePoint<C>> for PublicKey<C> where
    C: Curve,
    <<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output: Add<UInt<UTerm, B1>>,
    <<C as Curve>::ScalarSize as Add<UInt<UTerm, B1>>>::Output: ArrayLength<u8>,
    <<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UTerm, B1>>>::Output: ArrayLength<u8>, 
[src]

impl<C> StructuralEq for UncompressedCurvePoint<C> where
    C: Curve,
    <<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output: Add<UInt<UTerm, B1>>,
    <<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UTerm, B1>>>::Output: ArrayLength<u8>, 
[src]

Auto Trait Implementations

impl<C> Unpin for UncompressedCurvePoint<C> where
    <<<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UTerm, B1>>>::Output as ArrayLength<u8>>::ArrayType: Unpin,
    <C as Curve>::ScalarSize: Add<<C as Curve>::ScalarSize>, 

impl<C> Send for UncompressedCurvePoint<C> where
    <C as Curve>::ScalarSize: Add<<C as Curve>::ScalarSize>, 

impl<C> Sync for UncompressedCurvePoint<C> where
    <C as Curve>::ScalarSize: Add<<C as Curve>::ScalarSize>, 

impl<C> UnwindSafe for UncompressedCurvePoint<C> where
    <<<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UTerm, B1>>>::Output as ArrayLength<u8>>::ArrayType: UnwindSafe,
    <C as Curve>::ScalarSize: Add<<C as Curve>::ScalarSize>, 

impl<C> RefUnwindSafe for UncompressedCurvePoint<C> where
    <<<<C as Curve>::ScalarSize as Add<<C as Curve>::ScalarSize>>::Output as Add<UInt<UTerm, B1>>>::Output as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
    <C as Curve>::ScalarSize: Add<<C as Curve>::ScalarSize>, 

Blanket Implementations

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

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

type Error = !

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> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.