Struct elements::schnorr::SchnorrSig
source · 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§
source§impl SchnorrSig
impl SchnorrSig
sourcepub fn from_slice(sl: &[u8]) -> Result<Self, SchnorrSigError>
pub fn from_slice(sl: &[u8]) -> Result<Self, SchnorrSigError>
Deserialize from slice
Trait Implementations§
source§impl Clone for SchnorrSig
impl Clone for SchnorrSig
source§fn clone(&self) -> SchnorrSig
fn clone(&self) -> SchnorrSig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SchnorrSig
impl Debug for SchnorrSig
source§impl Deserialize for SchnorrSig
impl Deserialize for SchnorrSig
source§impl PartialEq for SchnorrSig
impl PartialEq for SchnorrSig
source§fn eq(&self, other: &SchnorrSig) -> bool
fn eq(&self, other: &SchnorrSig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SchnorrSig
impl Serialize for SchnorrSig
impl Copy for SchnorrSig
impl Eq 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§
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