[][src]Struct safe_core::client::account::ClientKeys

pub struct ClientKeys {
    pub sign_pk: PublicKey,
    pub sign_sk: SecretKey,
    pub enc_pk: PublicKey,
    pub enc_sk: SecretKey,
    pub enc_key: Key,
    pub bls_pk: PublicKey,
    pub bls_sk: SecretKey,
}

Client signing and encryption keypairs

Fields

sign_pk: PublicKey

Signing public key

sign_sk: SecretKey

Signing secret key

enc_pk: PublicKey

Encryption public key

enc_sk: SecretKey

Encryption private key

enc_key: Key

Symmetric encryption key

bls_pk: PublicKey

BLS public key

bls_sk: SecretKey

BLS private key

Methods

impl ClientKeys[src]

pub fn new(seed: Option<&Seed>) -> Self[src]

Construct new ClientKeys

pub fn app_full_id(&self, owner_key: PublicKey) -> AppFullId[src]

Convert ClientKeys into a full app identity.

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

Convert ClientKeys into a Client SafeKey.

pub fn app_safe_key(&self, owner_key: PublicKey) -> SafeKey[src]

Convert ClientKeys into an App SafeKey.

Trait Implementations

impl Default for ClientKeys[src]

impl Clone for ClientKeys[src]

impl PartialEq<ClientKeys> for ClientKeys[src]

impl Debug for ClientKeys[src]

impl Serialize for ClientKeys[src]

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

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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

impl<T> UnsafeAny for T where
    T: Any

impl<T> Erased for T

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized