pub struct SchnorrSig {
pub sig: Signature,
pub hash_ty: SchnorrSighashType,
}
Expand description
A BIP340-341 serialized schnorr signature with the corresponding hash type.
Fields
sig: Signature
The underlying schnorr signature
hash_ty: SchnorrSighashType
The corresponding hash type
Implementations
Trait Implementations
sourceimpl Clone for SchnorrSig
impl Clone for SchnorrSig
sourcefn clone(&self) -> SchnorrSig
fn clone(&self) -> SchnorrSig
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SchnorrSig
impl Debug for SchnorrSig
sourceimpl<'de> Deserialize<'de> for SchnorrSig
impl<'de> Deserialize<'de> for SchnorrSig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Deserialize for SchnorrSig
impl Deserialize for SchnorrSig
sourcefn deserialize(bytes: &[u8]) -> Result<Self, Error>
fn deserialize(bytes: &[u8]) -> Result<Self, Error>
Deserialize a value from raw data.
sourceimpl Hash for SchnorrSig
impl Hash for SchnorrSig
sourceimpl Ord for SchnorrSig
impl Ord for SchnorrSig
sourcefn cmp(&self, other: &SchnorrSig) -> Ordering
fn cmp(&self, other: &SchnorrSig) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Selfwhere
Self: Sized,
const fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Selfwhere
Self: Sized,
const fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SchnorrSig> for SchnorrSig
impl PartialEq<SchnorrSig> for SchnorrSig
sourcefn eq(&self, other: &SchnorrSig) -> bool
fn eq(&self, other: &SchnorrSig) -> bool
sourceimpl PartialOrd<SchnorrSig> for SchnorrSig
impl PartialOrd<SchnorrSig> for SchnorrSig
sourcefn partial_cmp(&self, other: &SchnorrSig) -> Option<Ordering>
fn partial_cmp(&self, other: &SchnorrSig) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl Serialize for SchnorrSig
impl Serialize for SchnorrSig
sourceimpl Serialize for SchnorrSig
impl Serialize for SchnorrSig
impl Copy for SchnorrSig
impl Eq for SchnorrSig
impl StructuralEq for SchnorrSig
impl StructuralPartialEq for SchnorrSig
Auto Trait Implementations
impl RefUnwindSafe for SchnorrSig
impl Send for SchnorrSig
impl Sync for SchnorrSig
impl Unpin for SchnorrSig
impl UnwindSafe for SchnorrSig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more