pub struct UserPublic {
pub verifying: VerifyingKey,
}Expand description
Public verifying half of a UserKey. Cheap to clone, safe to
share, and the thing peers actually exchange.
Fields§
§verifying: VerifyingKeyImplementations§
Source§impl UserPublic
impl UserPublic
Sourcepub fn fingerprint(&self) -> Fingerprint
pub fn fingerprint(&self) -> Fingerprint
BLAKE3 fingerprint of the underlying 32-byte ed25519 public key.
Trait Implementations§
Source§impl Clone for UserPublic
impl Clone for UserPublic
Source§fn clone(&self) -> UserPublic
fn clone(&self) -> UserPublic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UserPublic
impl Debug for UserPublic
Source§impl<'de> Deserialize<'de> for UserPublic
impl<'de> Deserialize<'de> for UserPublic
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 PartialEq for UserPublic
impl PartialEq for UserPublic
Source§fn eq(&self, other: &UserPublic) -> bool
fn eq(&self, other: &UserPublic) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UserPublic
impl Serialize for UserPublic
impl Eq for UserPublic
impl StructuralPartialEq for UserPublic
Auto Trait Implementations§
impl Freeze for UserPublic
impl RefUnwindSafe for UserPublic
impl Send for UserPublic
impl Sync for UserPublic
impl Unpin for UserPublic
impl UnsafeUnpin for UserPublic
impl UnwindSafe for UserPublic
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