pub struct Signature { /* private fields */ }
Available on crate feature
schnorr
only.Expand description
Taproot Schnorr signature as defined in BIP340.
Implementations§
Trait Implementations§
source§impl<D> DigestSigner<D, Signature> for SigningKeywhere
D: Digest + FixedOutput<OutputSize = U32>,
impl<D> DigestSigner<D, Signature> for SigningKeywhere D: Digest + FixedOutput<OutputSize = U32>,
source§fn try_sign_digest(&self, digest: D) -> Result<Signature>
fn try_sign_digest(&self, digest: D) -> Result<Signature>
Attempt to sign the given prehashed message [
Digest
], returning a
digital signature on success, or an error if something went wrong.source§fn sign_digest(&self, digest: D) -> S
fn sign_digest(&self, digest: D) -> S
Sign the given prehashed message [
Digest
], returning a signature. Read moresource§impl<D> DigestVerifier<D, Signature> for VerifyingKeywhere
D: Digest + FixedOutput<OutputSize = U32>,
impl<D> DigestVerifier<D, Signature> for VerifyingKeywhere D: Digest + FixedOutput<OutputSize = U32>,
source§impl From<&Signature> for SignatureBytes
impl From<&Signature> for SignatureBytes
source§fn from(signature: &Signature) -> SignatureBytes
fn from(signature: &Signature) -> SignatureBytes
Converts to this type from the input type.
source§impl From<Signature> for SignatureBytes
impl From<Signature> for SignatureBytes
source§fn from(signature: Signature) -> SignatureBytes
fn from(signature: Signature) -> SignatureBytes
Converts to this type from the input type.
source§impl PartialEq<Signature> for Signature
impl PartialEq<Signature> for Signature
source§impl PrehashSignature for Signature
impl PrehashSignature for Signature
source§impl PrehashSigner<Signature> for SigningKey
impl PrehashSigner<Signature> for SigningKey
source§impl PrehashVerifier<Signature> for VerifyingKey
impl PrehashVerifier<Signature> for VerifyingKey
source§impl<D> RandomizedDigestSigner<D, Signature> for SigningKeywhere
D: Digest + FixedOutput<OutputSize = U32>,
impl<D> RandomizedDigestSigner<D, Signature> for SigningKeywhere D: Digest + FixedOutput<OutputSize = U32>,
source§fn try_sign_digest_with_rng(
&self,
rng: &mut impl CryptoRngCore,
digest: D
) -> Result<Signature>
fn try_sign_digest_with_rng( &self, rng: &mut impl CryptoRngCore, digest: D ) -> Result<Signature>
Attempt to sign the given prehashed message
Digest
, returning a
digital signature on success, or an error if something went wrong.source§fn sign_digest_with_rng(&self, rng: &mut impl CryptoRngCore, digest: D) -> S
fn sign_digest_with_rng(&self, rng: &mut impl CryptoRngCore, digest: D) -> S
Sign the given prehashed message
Digest
, returning a signature. Read moresource§impl RandomizedPrehashSigner<Signature> for SigningKey
impl RandomizedPrehashSigner<Signature> for SigningKey
source§fn sign_prehash_with_rng(
&self,
rng: &mut impl CryptoRngCore,
prehash: &[u8]
) -> Result<Signature>
fn sign_prehash_with_rng( &self, rng: &mut impl CryptoRngCore, prehash: &[u8] ) -> Result<Signature>
Attempt to sign the given message digest, returning a digital signature
on success, or an error if something went wrong. Read more
source§impl RandomizedSigner<Signature> for SigningKey
impl RandomizedSigner<Signature> for SigningKey
source§fn try_sign_with_rng(
&self,
rng: &mut impl CryptoRngCore,
msg: &[u8]
) -> Result<Signature>
fn try_sign_with_rng( &self, rng: &mut impl CryptoRngCore, msg: &[u8] ) -> Result<Signature>
Attempt to sign the given message, returning a digital signature on
success, or an error if something went wrong. Read more
source§fn sign_with_rng(&self, rng: &mut impl CryptoRngCore, msg: &[u8]) -> S
fn sign_with_rng(&self, rng: &mut impl CryptoRngCore, msg: &[u8]) -> S
Sign the given message and return a digital signature