[][src]Struct safe_app::ClientKeys

pub struct ClientKeys {
    pub client_id: FullId,
    pub enc_key: Key,
    pub enc_public_key: PublicKey,
    pub enc_secret_key: SecretKey,
}

Client signing and encryption keypairs.

Fields

client_id: FullId

This is the identity of the Client in the Network.

enc_key: Key

Symmetric encryption key.

enc_public_key: PublicKey

Encryption public key.

enc_secret_key: SecretKey

Encryption private key.

Methods

impl ClientKeys[src]

pub fn new<T>(rng: &mut T) -> ClientKeys where
    T: Rng + CryptoRng
[src]

Generates random client keys, with an optional seed.

Only signing keys are generated from the seed.

pub fn client_safe_key(&self) -> SafeKey[src]

Converts ClientKeys into a Client SafeKey.

pub fn public_key(&self) -> PublicKey[src]

Returns the associated public key.

Trait Implementations

impl Clone for ClientKeys[src]

impl Debug for ClientKeys[src]

impl Default for ClientKeys[src]

impl<'de> Deserialize<'de> for ClientKeys[src]

impl PartialEq<ClientKeys> for ClientKeys[src]

impl Serialize for ClientKeys[src]

impl StructuralPartialEq for ClientKeys[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> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

impl<T> InitializableFromZeroed for T where
    T: Default

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<T> UnsafeAny for T where
    T: Any

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