public enum HardwareWalletEventType extends Enum<HardwareWalletEventType>
Enum to provide the following to application:
A high level event provides sufficient information for a downstream consumer to present appropriate information to the user and handle the subsequent response. They allow the hardware wallet to make assumptions about what is being shown on the user interface.
These high level messages are considered to be common across all hardware wallets supported through MultiBit Hardware.
Enum Constant and Description |
---|
ADDRESS
An address has been generated by the device in response to an earlier request
|
DETERMINISTIC_HIERARCHY
A deterministic hierarchy has been generated by the device in response to an earlier request
|
MESSAGE_SIGNATURE
A signed message been generated by the device in response to an earlier request
|
PROVIDE_ENTROPY
An additional source of entropy should be provided that will be combined with that shown on the device to
yield a seed phrase that can be proved to contain both values.
|
PUBLIC_KEY
A public key been generated by the device in response to an earlier request
|
SHOW_BUTTON_PRESS
The UI should show a message informing the user that the device requires a button press.
|
SHOW_DEVICE_DETACHED
Indicates that a device is detached.
|
SHOW_DEVICE_FAILED
Indicates there is a problem with the hardware wallet (incompatible firmware, USB environment etc)
|
SHOW_DEVICE_READY
Indicates that a device is ready to be used.
|
SHOW_DEVICE_STOPPED
Indicates that a device has been stopped and the service will need to be renewed
|
SHOW_OPERATION_FAILED
The UI should show a message telling the user that the operation failed to complete (could be their cancellation, unexpected message etc).
|
SHOW_OPERATION_SUCCEEDED
The UI should show a message telling the user that the operation completed successfully.
|
SHOW_PASSPHRASE_ENTRY
The UI should show a dialog asking the user to enter their passphrase.
|
SHOW_PIN_ENTRY
The UI should show a dialog asking the user to enter their PIN (possibly using an obfuscated matrix technique).
|
SHOW_WORD_ENTRY
The UI should show a dialog asking the user to enter a word from their seed phrase.
|
Modifier and Type | Method and Description |
---|---|
static HardwareWalletEventType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HardwareWalletEventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HardwareWalletEventType SHOW_DEVICE_FAILED
public static final HardwareWalletEventType SHOW_DEVICE_READY
public static final HardwareWalletEventType SHOW_DEVICE_DETACHED
public static final HardwareWalletEventType SHOW_DEVICE_STOPPED
public static final HardwareWalletEventType SHOW_BUTTON_PRESS
public static final HardwareWalletEventType SHOW_WORD_ENTRY
public static final HardwareWalletEventType SHOW_PIN_ENTRY
public static final HardwareWalletEventType SHOW_PASSPHRASE_ENTRY
public static final HardwareWalletEventType SHOW_OPERATION_SUCCEEDED
public static final HardwareWalletEventType SHOW_OPERATION_FAILED
public static final HardwareWalletEventType PROVIDE_ENTROPY
public static final HardwareWalletEventType ADDRESS
public static final HardwareWalletEventType PUBLIC_KEY
public static final HardwareWalletEventType MESSAGE_SIGNATURE
public static final HardwareWalletEventType DETERMINISTIC_HIERARCHY
public static HardwareWalletEventType[] values()
for (HardwareWalletEventType c : HardwareWalletEventType.values()) System.out.println(c);
public static HardwareWalletEventType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2013–2016 Bitcoin Solutions Ltd. All rights reserved.