[][src]Struct signatory_secp256k1::EcdsaSigner

pub struct EcdsaSigner { /* fields omitted */ }

ECDSA signature provider for the secp256k1 crate

Trait Implementations

impl DigestSigner<Sha256, Asn1Signature<Secp256k1>> for EcdsaSigner[src]

fn try_sign_digest(&self, digest: Sha256) -> Result<Asn1Signature, Error>[src]

Compute an ASN.1 DER-encoded signature of the given 32-byte SHA-256 digest

impl DigestSigner<Sha256, FixedSignature<Secp256k1>> for EcdsaSigner[src]

fn try_sign_digest(&self, digest: Sha256) -> Result<FixedSignature, Error>[src]

Compute a compact, fixed-sized signature of the given 32-byte SHA-256 digest

impl<'_> From<&'_ SecretKey<<Secp256k1 as Curve>::ScalarSize>> for EcdsaSigner[src]

fn from(secret_key: &SecretKey) -> EcdsaSigner[src]

Create a new secp256k1 signer from the given SecretKey

impl PublicKeyed<PublicKey<Secp256k1>> for EcdsaSigner[src]

fn public_key(&self) -> Result<PublicKey, Error>[src]

Return the public key that corresponds to the private key for this signer

impl<S> Signer<S> for EcdsaSigner where
    S: DigestSignature,
    Self: DigestSigner<S::Digest, S>, 
[src]

Auto Trait Implementations

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.