[−][src]Struct keynesis::PublicIdentity
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
impl PublicIdentity
[src]
pub const SIZE: usize
[src]
pub fn verify_key(&self) -> PublicVerifyKey
[src]
pub fn derive<P>(&self, purpose: P) -> PublicKey where
P: AsRef<[u8]>,
[src]
P: AsRef<[u8]>,
Trait Implementations
impl Clone for PublicIdentity
[src]
fn clone(&self) -> PublicIdentity
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PublicIdentity
[src]
impl<'de> Deserialize<'de> for PublicIdentity
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for PublicIdentity
[src]
impl Eq for PublicIdentity
[src]
impl From<[u8; 64]> for PublicIdentity
[src]
impl From<PublicIdentity> for String
[src]
fn from(pid: PublicIdentity) -> Self
[src]
impl FromStr for PublicIdentity
[src]
type Err = PublicIdentityError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for PublicIdentity
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for PublicIdentity
[src]
fn cmp(&self, other: &PublicIdentity) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<PublicIdentity> for PublicIdentity
[src]
fn eq(&self, other: &PublicIdentity) -> bool
[src]
fn ne(&self, other: &PublicIdentity) -> bool
[src]
impl PartialOrd<PublicIdentity> for PublicIdentity
[src]
fn partial_cmp(&self, other: &PublicIdentity) -> Option<Ordering>
[src]
fn lt(&self, other: &PublicIdentity) -> bool
[src]
fn le(&self, other: &PublicIdentity) -> bool
[src]
fn gt(&self, other: &PublicIdentity) -> bool
[src]
fn ge(&self, other: &PublicIdentity) -> bool
[src]
impl Serialize for PublicIdentity
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for PublicIdentity
[src]
impl StructuralPartialEq for PublicIdentity
[src]
impl<'a> TryFrom<&'a [u8]> for PublicIdentity
[src]
type Error = PublicKeyError
The type returned in the event of a conversion error.
fn try_from(value: &'a [u8]) -> Result<Self, Self::Error>
[src]
impl<'a> TryFrom<&'a str> for PublicIdentity
[src]
type Error = Self::Err
The type returned in the event of a conversion error.
fn try_from(value: &'a str) -> Result<Self, Self::Error>
[src]
impl TryFrom<String> for PublicIdentity
[src]
Auto Trait Implementations
impl RefUnwindSafe for PublicIdentity
impl Send for PublicIdentity
impl Sync for PublicIdentity
impl Unpin for PublicIdentity
impl UnwindSafe for PublicIdentity
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,