[][src]Struct mundane::public::ec::EcPrivKey

pub struct EcPrivKey<C: PCurve> { /* fields omitted */ }

An elliptic curve private key over a P curve.

EcPrivKey is a private key over the curve C.

Methods

impl<C: PCurve> EcPrivKey<C>[src]

#[must_use] pub fn generate() -> Result<EcPrivKey<C>, Error>[src]

Generates a new private key.

Trait Implementations

impl<C: PCurve> PrivateKey for EcPrivKey<C>[src]

type Public = EcPubKey<C>

The type of the public component.

impl<C: PCurve> DerPrivateKey for EcPrivKey<C>[src]

impl<C: PCurve> Debug for EcPrivKey<C>[src]

Auto Trait Implementations

impl<C> !Send for EcPrivKey<C>

impl<C> Unpin for EcPrivKey<C> where
    C: Unpin

impl<C> !Sync for EcPrivKey<C>

impl<C> RefUnwindSafe for EcPrivKey<C> where
    C: RefUnwindSafe

impl<C> UnwindSafe for EcPrivKey<C> where
    C: 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]