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> DigestVerifier<D, Signature> for VerifyingKey
impl<D> DigestVerifier<D, Signature> for VerifyingKey
Source§impl PrehashSignature for Signature
impl PrehashSignature for Signature
Source§impl PrehashVerifier<Signature> for VerifyingKey
impl PrehashVerifier<Signature> for VerifyingKey
Source§impl SignatureEncoding for Signature
impl SignatureEncoding for Signature
Source§fn to_bytes(&self) -> <Signature as SignatureEncoding>::Repr
fn to_bytes(&self) -> <Signature as SignatureEncoding>::Repr
Encode signature as its byte representation.
Source§fn to_vec(&self) -> Vec<u8>
fn to_vec(&self) -> Vec<u8>
Available on crate feature
alloc
only.Encode signature as a byte vector.
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Get the length of this signature when encoded.
Source§impl Verifier<Signature> for VerifyingKey
impl Verifier<Signature> for VerifyingKey
impl Copy for Signature
impl Eq for Signature
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more