[][src]Struct ethereum_rust_utils::keystore::KeyFile

pub struct KeyFile {
    pub visible: Option<bool>,
    pub name: Option<String>,
    pub description: Option<String>,
    pub address: Address,
    pub uuid: Uuid,
    pub crypto: CryptoType,
}

A keystore file (account private core encrypted with a passphrase)

Fields

Specifies if Keyfile is visible

User specified name

User specified description

Address

UUID v4

Methods

impl KeyFile
[src]

Decode Keyfile from JSON Handles different variants of crypto section

impl KeyFile
[src]

Creates a new KeyFile with specified passphrase at random (rand::OsRng)

Arguments

  • passphrase - password for key derivation function

Creates a new KeyFile with specified PrivateKey, passphrase, key derivation function and with given custom random generator

Arguments

  • pk - a private key
  • passphrase - password for key derivation function
  • kdf - customized key derivation function
  • rnd - predefined random number generator

Decrypt public address from keystore file by a password

Decrypt private key from keystore file by a password

Encrypt a new private key for keystore file with a passphrase

Encrypt a new private key for keystore file with a passphrase and with given custom random generator

Trait Implementations

impl Clone for KeyFile
[src]

Performs copy-assignment from source. Read more

impl From<Uuid> for KeyFile
[src]

impl From<KeyFile> for AccountInfo
[src]

impl Into<KeyFile> for HdwalletCrypto
[src]

impl Into<KeyFile> for CoreCrypto
[src]

impl Into<KeyFile> for SerializableKeyFileCore
[src]

impl Into<KeyFile> for SerializableKeyFileHD
[src]

impl Eq for KeyFile
[src]

impl PartialOrd<KeyFile> for KeyFile
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Default for KeyFile
[src]

impl PartialEq<KeyFile> for KeyFile
[src]

This method tests for !=.

impl Ord for KeyFile
[src]

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Debug for KeyFile
[src]

impl Display for KeyFile
[src]

impl Serialize for KeyFile
[src]

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

Auto Trait Implementations

impl Send for KeyFile

impl Sync for KeyFile

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T> Same for T

Should always be Self

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

impl<T> Erased for T

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