[][src]Struct emerald_rs::keystore::CoreCrypto

pub struct CoreCrypto {
    pub cipher: Cipher,
    pub cipher_text: Vec<u8>,
    pub cipher_params: CipherParams,
    pub kdf_params: KdfParams,
    pub mac: Mac,
}

Keyfile related crypto attributes

Fields

cipher: Cipher

Cipher

cipher_text: Vec<u8>

Cipher text

cipher_params: CipherParams

Params for Cipher

kdf_params: KdfParams

Key derivation funciton

mac: Mac

HMAC authentication code

Implementations

impl CoreCrypto[src]

pub fn try_from(kf: &KeyFile) -> Result<Self, Error>[src]

Try to create crypto attributes from corresponding Keyfile (simple or HDWallet keyfile)

Trait Implementations

impl Clone for CoreCrypto[src]

impl Debug for CoreCrypto[src]

impl Default for CoreCrypto[src]

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

impl Eq for CoreCrypto[src]

impl Into<KeyFile> for CoreCrypto[src]

impl PartialEq<CoreCrypto> for CoreCrypto[src]

impl Serialize for CoreCrypto[src]

impl StructuralEq for CoreCrypto[src]

impl StructuralPartialEq for CoreCrypto[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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, U> TryInto<U> for T where
    U: TryFrom<T>, 

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