pub struct PublicNonce(/* private fields */);Expand description
An individual MuSig public nonce. Not to be confused with AggregatedNonce.
Implementations§
Source§impl PublicNonce
impl PublicNonce
Sourcepub fn from_byte_array(data: &[u8; 66]) -> Result<PublicNonce, ParseError>
pub fn from_byte_array(data: &[u8; 66]) -> Result<PublicNonce, ParseError>
Deserialize a PublicNonce from a portable byte representation
§Errors:
- MalformedArg: If the
PublicNonceis 132 bytes, but out of curve order
Sourcepub fn as_ptr(&self) -> *const MusigPubNonce
pub fn as_ptr(&self) -> *const MusigPubNonce
Get a const pointer to the inner PublicNonce
Sourcepub fn as_mut_ptr(&mut self) -> *mut MusigPubNonce
pub fn as_mut_ptr(&mut self) -> *mut MusigPubNonce
Get a mut pointer to the inner PublicNonce
Trait Implementations§
Source§impl CPtr for PublicNonce
impl CPtr for PublicNonce
type Target = MusigPubNonce
fn as_c_ptr(&self) -> *const <PublicNonce as CPtr>::Target
fn as_mut_c_ptr(&mut self) -> *mut <PublicNonce as CPtr>::Target
Source§impl Clone for PublicNonce
impl Clone for PublicNonce
Source§fn clone(&self) -> PublicNonce
fn clone(&self) -> PublicNonce
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 PublicNonce
impl Debug for PublicNonce
Source§impl<'de> Deserialize<'de> for PublicNonce
Available on crate feature serde only.
impl<'de> Deserialize<'de> for PublicNonce
Available on crate feature
serde only.Source§fn deserialize<D>(d: D) -> Result<PublicNonce, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<PublicNonce, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PublicNonce
impl Display for PublicNonce
Source§impl FromStr for PublicNonce
impl FromStr for PublicNonce
Source§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<PublicNonce, <PublicNonce as FromStr>::Err>
fn from_str(s: &str) -> Result<PublicNonce, <PublicNonce as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for PublicNonce
impl Hash for PublicNonce
Source§impl LowerHex for PublicNonce
impl LowerHex for PublicNonce
Source§impl Ord for PublicNonce
impl Ord for PublicNonce
Source§fn cmp(&self, other: &PublicNonce) -> Ordering
fn cmp(&self, other: &PublicNonce) -> 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 PublicNonce
impl PartialEq for PublicNonce
Source§impl PartialOrd for PublicNonce
impl PartialOrd for PublicNonce
Source§impl Serialize for PublicNonce
Available on crate feature serde only.
impl Serialize for PublicNonce
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 PublicNonce
impl Eq for PublicNonce
impl StructuralPartialEq for PublicNonce
Auto Trait Implementations§
impl Freeze for PublicNonce
impl RefUnwindSafe for PublicNonce
impl Send for PublicNonce
impl Sync for PublicNonce
impl Unpin for PublicNonce
impl UnwindSafe for PublicNonce
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