[][src]Struct ecdsa::signer::Signer

pub struct Signer<C> where
    C: Curve + Arithmetic,
    C::Scalar: Invert<Output = C::Scalar> + SignPrimitive<C> + Zeroize,
    SignatureSize<C>: ArrayLength<u8>, 
{ /* fields omitted */ }
This is supported on feature="signer" only.

ECDSA signer

Implementations

impl<C> Signer<C> where
    C: Curve + Arithmetic,
    C::Scalar: Invert<Output = C::Scalar> + SignPrimitive<C> + Zeroize,
    SignatureSize<C>: ArrayLength<u8>, 
[src]

pub fn new(secret_key: &SecretKey<C>) -> Result<Self, Error>[src]

This is supported on feature="signer" only.

Create a new signer

Trait Implementations

impl<C> Drop for Signer<C> where
    C: Curve + Arithmetic,
    C::Scalar: Invert<Output = C::Scalar> + SignPrimitive<C> + Zeroize,
    SignatureSize<C>: ArrayLength<u8>, 
[src]

impl<C, D> RandomizedDigestSigner<D, Signature<C>> for Signer<C> where
    C: Curve + Arithmetic,
    D: Digest<OutputSize = C::ElementSize>,
    C::Scalar: Invert<Output = C::Scalar> + Generate + SignPrimitive<C> + Zeroize,
    SignatureSize<C>: ArrayLength<u8>, 
[src]

impl<C> RandomizedSigner<Signature<C>> for Signer<C> where
    C: Curve + Arithmetic + DigestPrimitive,
    C::Digest: Digest<OutputSize = C::ElementSize>,
    C::Scalar: Invert<Output = C::Scalar> + Generate + SignPrimitive<C> + Zeroize,
    SignatureSize<C>: ArrayLength<u8>, 
[src]

impl<C> Zeroize for Signer<C> where
    C: Curve + Arithmetic,
    C::Scalar: Invert<Output = C::Scalar> + SignPrimitive<C> + Zeroize,
    SignatureSize<C>: ArrayLength<u8>, 
[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for Signer<C> where
    <C as Arithmetic>::Scalar: RefUnwindSafe

impl<C> Send for Signer<C> where
    <C as Arithmetic>::Scalar: Send

impl<C> Sync for Signer<C> where
    <C as Arithmetic>::Scalar: Sync

impl<C> Unpin for Signer<C> where
    <C as Arithmetic>::Scalar: Unpin

impl<C> UnwindSafe for Signer<C> where
    <C as Arithmetic>::Scalar: 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.

impl<Z> Zeroize for Z where
    Z: DefaultIsZeroes
[src]