pub struct PublicIdentity(/* private fields */);Expand description
Public identity
Making this public (include the public key and the chain code) allows for anyone to derive the public key associated to the different schemes (signing or key exchange).
This key cannot be used for anything else, we restrict its usage to public derivation of different keys
Implementations§
Trait Implementations§
Source§impl Clone for PublicIdentity
impl Clone for PublicIdentity
Source§fn clone(&self) -> PublicIdentity
fn clone(&self) -> PublicIdentity
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 PublicIdentity
impl Debug for PublicIdentity
Source§impl Display for PublicIdentity
impl Display for PublicIdentity
Source§impl From<PublicIdentity> for String
impl From<PublicIdentity> for String
Source§fn from(pid: PublicIdentity) -> Self
fn from(pid: PublicIdentity) -> Self
Converts to this type from the input type.
Source§impl FromStr for PublicIdentity
impl FromStr for PublicIdentity
Source§impl Hash for PublicIdentity
impl Hash for PublicIdentity
Source§impl Ord for PublicIdentity
impl Ord for PublicIdentity
Source§fn cmp(&self, other: &PublicIdentity) -> Ordering
fn cmp(&self, other: &PublicIdentity) -> 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 PublicIdentity
impl PartialEq for PublicIdentity
Source§impl PartialOrd for PublicIdentity
impl PartialOrd for PublicIdentity
Source§impl<'a> TryFrom<&'a [u8]> for PublicIdentity
impl<'a> TryFrom<&'a [u8]> for PublicIdentity
Source§impl<'a> TryFrom<&'a str> for PublicIdentity
impl<'a> TryFrom<&'a str> for PublicIdentity
Source§impl TryFrom<String> for PublicIdentity
impl TryFrom<String> for PublicIdentity
impl Eq for PublicIdentity
impl StructuralPartialEq for PublicIdentity
Auto Trait Implementations§
impl Freeze for PublicIdentity
impl RefUnwindSafe for PublicIdentity
impl Send for PublicIdentity
impl Sync for PublicIdentity
impl Unpin for PublicIdentity
impl UnwindSafe for PublicIdentity
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