pub struct PartialSignature(/* private fields */);Expand description
A Musig partial signature.
Implementations§
Source§impl PartialSignature
impl PartialSignature
Sourcepub fn from_byte_array(data: &[u8; 32]) -> Result<Self, ParseError>
pub fn from_byte_array(data: &[u8; 32]) -> Result<Self, ParseError>
Deserialize a PartialSignature from bytes.
§Errors:
- MalformedArg: If the signature
PartialSignatureis out of curve order
Sourcepub fn as_ptr(&self) -> *const MusigPartialSignature
pub fn as_ptr(&self) -> *const MusigPartialSignature
Get a const pointer to the inner PartialSignature
Sourcepub fn as_mut_ptr(&mut self) -> *mut MusigPartialSignature
pub fn as_mut_ptr(&mut self) -> *mut MusigPartialSignature
Get a mut pointer to the inner PartialSignature
Trait Implementations§
Source§impl CPtr for PartialSignature
impl CPtr for PartialSignature
Source§impl Clone for PartialSignature
impl Clone for PartialSignature
Source§fn clone(&self) -> PartialSignature
fn clone(&self) -> PartialSignature
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 PartialSignature
impl Debug for PartialSignature
Source§impl<'de> Deserialize<'de> for PartialSignature
impl<'de> Deserialize<'de> for PartialSignature
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PartialSignature
impl Display for PartialSignature
Source§impl FromStr for PartialSignature
impl FromStr for PartialSignature
Source§impl Hash for PartialSignature
impl Hash for PartialSignature
Source§impl LowerHex for PartialSignature
impl LowerHex for PartialSignature
Source§impl Ord for PartialSignature
impl Ord for PartialSignature
Source§fn cmp(&self, other: &PartialSignature) -> Ordering
fn cmp(&self, other: &PartialSignature) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PartialSignature
impl PartialEq for PartialSignature
Source§impl PartialOrd for PartialSignature
impl PartialOrd for PartialSignature
Source§impl Serialize for PartialSignature
impl Serialize for PartialSignature
impl Copy for PartialSignature
impl Eq for PartialSignature
impl StructuralPartialEq for PartialSignature
Auto Trait Implementations§
impl Freeze for PartialSignature
impl RefUnwindSafe for PartialSignature
impl Send for PartialSignature
impl Sync for PartialSignature
impl Unpin for PartialSignature
impl UnwindSafe for PartialSignature
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