pub struct NostrPubKey(/* private fields */);Expand description
Secp256k1 x-only (schnorr) public key for Nostr transport (32 bytes).
Serializes to/from hex string in JSON.
Implementations§
Source§impl NostrPubKey
impl NostrPubKey
Trait Implementations§
Source§impl Clone for NostrPubKey
impl Clone for NostrPubKey
Source§fn clone(&self) -> NostrPubKey
fn clone(&self) -> NostrPubKey
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 NostrPubKey
impl Debug for NostrPubKey
Source§impl<'de> Deserialize<'de> for NostrPubKey
impl<'de> Deserialize<'de> for NostrPubKey
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for NostrPubKey
impl Display for NostrPubKey
Source§impl Hash for NostrPubKey
impl Hash for NostrPubKey
Source§impl PartialEq for NostrPubKey
impl PartialEq for NostrPubKey
Source§impl Serialize for NostrPubKey
impl Serialize for NostrPubKey
impl Copy for NostrPubKey
impl Eq for NostrPubKey
impl StructuralPartialEq for NostrPubKey
Auto Trait Implementations§
impl Freeze for NostrPubKey
impl RefUnwindSafe for NostrPubKey
impl Send for NostrPubKey
impl Sync for NostrPubKey
impl Unpin for NostrPubKey
impl UnsafeUnpin for NostrPubKey
impl UnwindSafe for NostrPubKey
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