Struct ring_compat::signature::ecdsa::SigningKey[][src]

pub struct SigningKey<C> where
    C: Curve + CurveAlg + Order,
    SignatureSize<C>: ArrayLength<u8>, 
{ /* fields omitted */ }
This is supported on crate feature signature only.

ECDSA signing key. Generic over elliptic curves.

Implementations

impl<C> SigningKey<C> where
    C: Curve + CurveAlg + Order,
    SignatureSize<C>: ArrayLength<u8>, 
[src]

pub fn from_pkcs8(pkcs8_key: &[u8]) -> Result<Self, Error>[src]

Initialize a SigningKey from a PKCS#8-encoded private key

pub fn from_keypair_bytes(
    signing_key: &[u8],
    verify_key: &[u8]
) -> Result<Self, Error>
[src]

Initialize a SigningKey from a raw keypair

pub fn verify_key(&self) -> VerifyingKey<C> where
    UntaggedPointSize<C>: Add<U1> + ArrayLength<u8>,
    UncompressedPointSize<C>: ArrayLength<u8>, 
[src]

Get the VerifyingKey for this SigningKey

Trait Implementations

impl<C> Signer<Signature<C>> for SigningKey<C> where
    C: Curve + CurveAlg + Order,
    SignatureSize<C>: ArrayLength<u8>, 
[src]

Auto Trait Implementations

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

impl<C> Send for SigningKey<C>

impl<C> Sync for SigningKey<C>

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

impl<C> UnwindSafe for SigningKey<C> where
    C: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.