pub enum KeyStoreRequest {
    ListAccount,
    HasAccount(H160),
    CreateAccount(Option<String>),
    UpdatePassword {
        hash160: H160,
        password: String,
        new_password: String,
    },
    Import {
        privkey: [u8; 32],
        chain_code: [u8; 32],
        password: Option<String>,
    },
    ImportAccount {
        account_id: JsonBytes,
        password: Option<String>,
    },
    Export {
        hash160: H160,
        password: Option<String>,
    },
    Sign {
        hash160: H160,
        path: String,
        message: H256,
        target: Box<SignTarget>,
        recoverable: bool,
        password: Option<String>,
    },
    ExtendedPubkey {
        hash160: H160,
        path: String,
        password: Option<String>,
    },
    DerivedKeySet {
        hash160: H160,
        external_max_len: u32,
        change_last: H160,
        change_max_len: u32,
        password: Option<String>,
    },
    DerivedKeySetByIndex {
        hash160: H160,
        external_start: u32,
        external_length: u32,
        change_start: u32,
        change_length: u32,
        password: Option<String>,
    },
    Any(Value),
}

Variants

ListAccount

HasAccount(H160)

CreateAccount(Option<String>)

UpdatePassword

Fields

hash160: H160
password: String
new_password: String

Import

Fields

privkey: [u8; 32]
chain_code: [u8; 32]
password: Option<String>

ImportAccount

Fields

account_id: JsonBytes
password: Option<String>

Export

Fields

hash160: H160
password: Option<String>

Sign

Fields

hash160: H160
path: String
message: H256
target: Box<SignTarget>
recoverable: bool
password: Option<String>

ExtendedPubkey

Fields

hash160: H160
path: String
password: Option<String>

DerivedKeySet

Fields

hash160: H160
external_max_len: u32
change_last: H160
change_max_len: u32
password: Option<String>

DerivedKeySetByIndex

Fields

hash160: H160
external_start: u32
external_length: u32
change_start: u32
change_length: u32
password: Option<String>

Any(Value)

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Converts to this type from the input type.
Serialize this value into the given Serde serializer. Read more
The type returned in the event of a conversion error.
Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.