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)

Tuple Fields of HasAccount

0: H160
CreateAccount(Option<String>)

Tuple Fields of CreateAccount

0: Option<String>
UpdatePassword

Fields of UpdatePassword

hash160: H160password: Stringnew_password: String
Import

Fields of Import

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

Fields of ImportAccount

account_id: JsonBytespassword: Option<String>
Export

Fields of Export

hash160: H160password: Option<String>
Sign

Fields of Sign

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

Fields of ExtendedPubkey

hash160: H160path: Stringpassword: Option<String>
DerivedKeySet

Fields of DerivedKeySet

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

Fields of DerivedKeySetByIndex

hash160: H160external_start: u32external_length: u32change_start: u32change_length: u32password: Option<String>
Any(Value)

Tuple Fields of Any

0: 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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more