[−][src]Struct signatory_secp256k1::EcdsaSigner
ECDSA signature provider for the secp256k1 crate
Trait Implementations
impl<'a> From<&'a SecretKey<Secp256k1>> for EcdsaSigner
[src]
fn from(secret_key: &'a 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]
S: DigestSignature,
Self: DigestSigner<S::Digest, S>,
fn try_sign(&self, msg: &[u8]) -> Result<S, Error>
[src]
fn sign(&self, msg: &[u8]) -> S
[src]
Sign the given message and return a digital signature
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
fn sign_digest(&self, digest: D) -> S
[src]
Sign the given prehashed message Digest
, returning a signature. Read more
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
fn sign_digest(&self, digest: D) -> S
[src]
Sign the given prehashed message Digest
, returning a signature. Read more
Auto Trait Implementations
impl Sync for EcdsaSigner
impl Send for EcdsaSigner
impl Unpin for EcdsaSigner
impl RefUnwindSafe for EcdsaSigner
impl UnwindSafe for EcdsaSigner
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self