Enum ckb_cli_plugin_protocol::KeyStoreRequest[][src]

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
Show fields

Fields of UpdatePassword

hash160: H160password: Stringnew_password: String
Import
Show fields

Fields of Import

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

Fields of ImportAccount

account_id: JsonBytespassword: Option<String>
Export
Show fields

Fields of Export

hash160: H160password: Option<String>
Sign
Show fields

Fields of Sign

hash160: H160path: Stringmessage: H256target: Box<SignTarget>recoverable: boolpassword: Option<String>
ExtendedPubkey
Show fields

Fields of ExtendedPubkey

hash160: H160path: Stringpassword: Option<String>
DerivedKeySet
Show fields

Fields of DerivedKeySet

hash160: H160external_max_len: u32change_last: H160change_max_len: u32password: Option<String>
DerivedKeySetByIndex
Show fields

Fields of DerivedKeySetByIndex

hash160: H160external_start: u32external_length: u32change_start: u32change_length: u32password: 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

Performs the conversion.

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

TODO(doc): @quake

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

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.