pub enum HwiCliCommand {
Show 17 variants
Enumerate,
Getmasterxpub {
addr_type: HwiAddressType,
account: u32,
},
Signtx {
psbt: String,
},
Signmessage {
message: String,
path: String,
},
Displayaddress {
path: Option<String>,
desc: Option<String>,
addr_type: HwiAddressType,
},
Getxpub {
path: String,
},
Getdescriptors {
account: u32,
},
Getkeypool {
start: u32,
end: u32,
keypool: bool,
nokeypool: bool,
internal: bool,
addr_type: Option<HwiAddressType>,
all: bool,
account: u32,
path: Option<String>,
},
Setup {
label: String,
backup_passphrase: String,
},
Wipe,
Restore {
word_count: i32,
label: String,
},
Backup {
label: String,
backup_passphrase: String,
},
Promptpin,
Sendpin {
pin: String,
},
Togglepassphrase,
Installudevrules {
location: PathBuf,
},
External(Vec<OsString>),
}Expand description
Subcommands accepted by the Python HWI-compatible argument parser.
Variants§
Enumerate
Enumerates devices and their readiness or connection errors.
Getmasterxpub
Retrieves the account extended public key for an address type.
Fields
addr_type: HwiAddressTypeThe address type used to select the BIP44-style purpose.
Signtx
Signs a base64-encoded PSBT.
Signmessage
Signs a UTF-8 message with a key at a derivation path.
Fields
Displayaddress
Displays an address selected by exactly one path or descriptor.
Fields
addr_type: HwiAddressTypeThe address type for a path request; ignored for a descriptor request.
Getxpub
Retrieves an extended public key at a BIP32 path.
Getdescriptors
Retrieves receive and change descriptors for an account.
Getkeypool
Retrieves ranged descriptors for Bitcoin Core keypool import.
Fields
internal: boolWhether to return only change descriptors; otherwise both branches are used without path.
addr_type: Option<HwiAddressType>The address type, defaulting to native SegWit and mutually exclusive with all.
Setup
Initializes a supported device in interactive mode.
Fields
Wipe
Erases a supported device’s wallet.
Restore
Restores a supported device from a mnemonic in interactive mode.
Backup
Requests a BitBox02 mnemonic display or a Coldcard backup file.
Fields
Promptpin
Prompts a supported device to request host-entered PIN positions.
Sendpin
Sends scrambled keypad positions to a device waiting for a PIN.
Togglepassphrase
Toggles passphrase protection on a supported device.
Installudevrules
Installs all device udev rules and updates permissions on Linux.
External(Vec<OsString>)
Captures an unrecognized subcommand for compatibility error handling.
Trait Implementations§
Source§impl Clone for HwiCliCommand
impl Clone for HwiCliCommand
Source§impl Debug for HwiCliCommand
impl Debug for HwiCliCommand
Source§impl FromArgMatches for HwiCliCommand
impl FromArgMatches for HwiCliCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for HwiCliCommand
impl Subcommand for HwiCliCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand