Struct near_crypto::InMemorySigner[][src]

pub struct InMemorySigner {
    pub account_id: String,
    pub public_key: PublicKey,
    pub secret_key: SecretKey,
}

Signer that keeps secret key in memory.

Fields

account_id: Stringpublic_key: PublicKeysecret_key: SecretKey

Implementations

impl InMemorySigner[src]

pub fn from_seed(account_id: &str, key_type: KeyType, seed: &str) -> Self[src]

pub fn from_secret_key(account_id: String, secret_key: SecretKey) -> Self[src]

pub fn from_file(path: &Path) -> Self[src]

impl InMemorySigner[src]

pub fn from_random(account_id: String, key_type: KeyType) -> Self[src]

Trait Implementations

impl Clone for InMemorySigner[src]

impl From<&'_ InMemorySigner> for KeyFile[src]

impl From<KeyFile> for InMemorySigner[src]

impl Signer for InMemorySigner[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> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,