Struct signatory_secp256k1::EcdsaSigner [−][src]
pub struct EcdsaSigner(_);
ECDSA signature provider for the secp256k1 crate
Methods
impl EcdsaSigner
[src]
impl EcdsaSigner
pub fn from_bytes(bytes: &[u8]) -> Result<Self, Error>
[src]
pub fn from_bytes(bytes: &[u8]) -> Result<Self, Error>
Create a new secp256k1 signer from the given private key
Trait Implementations
impl PublicKeyed<PublicKey> for EcdsaSigner
[src]
impl PublicKeyed<PublicKey> for EcdsaSigner
fn public_key(&self) -> Result<PublicKey, Error>
[src]
fn public_key(&self) -> Result<PublicKey, Error>
Return the public key that corresponds to the private key for this signer
impl<D> Signer<D, Asn1Signature> for EcdsaSigner where
D: Digest<OutputSize = U32> + Default,
[src]
impl<D> Signer<D, Asn1Signature> for EcdsaSigner where
D: Digest<OutputSize = U32> + Default,
fn sign(&self, digest: D) -> Result<Asn1Signature, Error>
[src]
fn sign(&self, digest: D) -> Result<Asn1Signature, Error>
Compute an ASN.1 DER-encoded signature of the given 32-byte SHA-256 digest
impl<D> DigestSigner<D, Asn1Signature> for EcdsaSigner where
D: Digest<OutputSize = U32> + Default,
[src]
impl<D> DigestSigner<D, Asn1Signature> for EcdsaSigner where
D: Digest<OutputSize = U32> + Default,
type DigestSize = U32
Size of the digest output this verifier supports
impl<D> Signer<D, FixedSignature> for EcdsaSigner where
D: Digest<OutputSize = U32> + Default,
[src]
impl<D> Signer<D, FixedSignature> for EcdsaSigner where
D: Digest<OutputSize = U32> + Default,
fn sign(&self, digest: D) -> Result<FixedSignature, Error>
[src]
fn sign(&self, digest: D) -> Result<FixedSignature, Error>
Compute a compact, fixed-sized signature of the given 32-byte SHA-256 digest
impl<D> DigestSigner<D, FixedSignature> for EcdsaSigner where
D: Digest<OutputSize = U32> + Default,
[src]
impl<D> DigestSigner<D, FixedSignature> for EcdsaSigner where
D: Digest<OutputSize = U32> + Default,
type DigestSize = U32
Size of the digest output this verifier supports
Auto Trait Implementations
impl Send for EcdsaSigner
impl Send for EcdsaSigner
impl Sync for EcdsaSigner
impl Sync for EcdsaSigner