[][src]Struct mundane::public::ec::ecdsa::EcdsaSignature

#[must_use]
pub struct EcdsaSignature<C: PCurve, H: Hasher + EcdsaHash<C>> { /* fields omitted */ }

A DER-encoded ECDSA signature.

Methods

impl<C: PCurve, H: Hasher + EcdsaHash<C>> EcdsaSignature<C, H>[src]

#[must_use] pub fn from_bytes(bytes: &[u8]) -> EcdsaSignature<C, H>[src]

Constructs an EcdsaSignature from raw bytes.

#[must_use] pub fn bytes(&self) -> &[u8][src]

Gets the raw bytes of this EcdsaSignature.

Trait Implementations

impl<C: PCurve, H: Hasher + EcdsaHash<C>> Signature for EcdsaSignature<C, H>[src]

type PrivateKey = EcPrivKey<C>

The private key type used to generate this signature.

impl<C: PCurve, H: Hasher + EcdsaHash<C>> Debug for EcdsaSignature<C, H>[src]

Auto Trait Implementations

impl<C, H> Send for EcdsaSignature<C, H> where
    C: Send,
    H: Send

impl<C, H> Unpin for EcdsaSignature<C, H> where
    C: Unpin,
    H: Unpin

impl<C, H> Sync for EcdsaSignature<C, H> where
    C: Sync,
    H: Sync

impl<C, H> RefUnwindSafe for EcdsaSignature<C, H> where
    C: RefUnwindSafe,
    H: RefUnwindSafe

impl<C, H> UnwindSafe for EcdsaSignature<C, H> where
    C: UnwindSafe,
    H: UnwindSafe

Blanket Implementations

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

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> 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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