pub trait Signature {
// Required methods
fn is_ecdsa_signature(&self, strict_der: bool) -> bool;
fn is_schnorr_signature(&self) -> bool;
// Provided method
fn is_signature(&self) -> bool { ... }
}
Required Methods§
Sourcefn is_ecdsa_signature(&self, strict_der: bool) -> bool
fn is_ecdsa_signature(&self, strict_der: bool) -> bool
Checks if the underlying bytes represent a Bitcoin ECDSA signature. This function expects that the SigHash is included.
Sourcefn is_schnorr_signature(&self) -> bool
fn is_schnorr_signature(&self) -> bool
Checks if the underlying bytes represent a Bitcoin Schnoor signature. This function expects that the SigHash is included.