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: SignatureThe underlying schnorr signature
hash_ty: SchnorrSighashTypeThe 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 duplicate 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§impl Serialize for SchnorrSig
impl Serialize for SchnorrSig
impl Copy for SchnorrSig
impl Eq for SchnorrSig
impl StructuralPartialEq for SchnorrSig
Auto Trait Implementations§
impl Freeze for SchnorrSig
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