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<PartialSignature, ParseError>
pub fn from_byte_array(data: &[u8; 32]) -> Result<PartialSignature, 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
type Target = MusigPartialSignature
fn as_c_ptr(&self) -> *const <PartialSignature as CPtr>::Target
fn as_mut_c_ptr(&mut self) -> *mut <PartialSignature as CPtr>::Target
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
Available on crate feature serde only.
impl<'de> Deserialize<'de> for PartialSignature
Available on crate feature
serde only.Source§fn deserialize<D>(
d: D,
) -> Result<PartialSignature, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
d: D,
) -> Result<PartialSignature, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
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§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Source§fn from_str(
s: &str,
) -> Result<PartialSignature, <PartialSignature as FromStr>::Err>
fn from_str( s: &str, ) -> Result<PartialSignature, <PartialSignature as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§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
Available on crate feature serde only.
impl Serialize for PartialSignature
Available on crate feature
serde only.Source§fn serialize<S>(
&self,
s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
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