[][src]Struct keynesis::PrivateIdentity

pub struct PrivateIdentity(_);

private identity, to keep close to you, privately and securely

From this root key multiple key may be generated depending on the needs and protocols.

Implementations

impl PrivateIdentity[src]

pub fn from_seed(seed: Seed) -> Self[src]

build a private identity from the given Seed

pub fn unshield<K>(shielded: &Shielded, key: K) -> Option<Self> where
    K: AsRef<[u8]>, 
[src]

retrieve the PrivateIdentity from the shielded data and the given key

pub fn shield<RNG, K>(&self, rng: &mut RNG, key: K) -> Shielded where
    RNG: CryptoRng + RngCore,
    K: AsRef<[u8]>, 
[src]

password protect the PrivateIdentity

Use a strong password to protect your identity

pub fn public_id(&self) -> PublicIdentity[src]

pub fn signing_key(&self) -> PrivateSigningKey[src]

pub fn derive<P>(&self, purpose: P) -> SecretKey where
    P: AsRef<[u8]>, 
[src]

Trait Implementations

impl Clone for PrivateIdentity[src]

impl Debug for PrivateIdentity[src]

impl Eq for PrivateIdentity[src]

impl Hash for PrivateIdentity[src]

impl PartialEq<PrivateIdentity> for PrivateIdentity[src]

impl StructuralEq for PrivateIdentity[src]

impl StructuralPartialEq for PrivateIdentity[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,