# Functions
BTCSignNeedsPrevTxs returns true if the PrevTx field in BTCTxInput needs to be populated before calling BTCSign().
DecodeSilentPaymentAddress decodes a slient payment address, returning the bech32 HRP and the scan/spend pubkeys.
ETHIdentifyCase identifies the case of the recipient address given as hexadecimal string.
IsErrorAbort returns whether the user aborted the operation.
NewBTCPrevTxFromBtcd converts a btcd transaction to a BTCPrevTx.
NewBTCScriptConfigMultisig is a helper to construct the a multisig script config.
NewBTCScriptConfigSimple is a helper to construct the correct script config for simple script types.
NewDevice creates a new instance of Device.
NewError creates a error with the given message and code.
NewXPub parses an xpub string into an XPub protobuf message.
# Constants
ErrInvalidInput is returned when the request sends and invalid or unexpected input.
ErrUserAbort is returned when the user aborts an action on the device.
EventAttestationCheckDone is fired when the attestation signature check is completed.
EventChannelHashChanged is fired when the return values of ChannelHash() change.
EventStatusChanged is fired when the status changes.
StatusConnected ist the first status, right after the device is connected.
StatusInitialized means the device is seeded and the backup was created, and the device is unlocked.
StatusPairingFailed is when the pairing code was rejected on the app or on the device.
StatusRequireAppUpgrade means that the an app upgrade is required (firmware version too new).
StatusRequireFirmwareUpgrade means that the a firmware upgrade is required before being able to proceed to StatusLoggedIn or StatusSeeded (firmware version too old).
StatusSeeded is after SetPassword(), before CreateBack() during initialization of the device.
StatusUninitialized is the uninitialized device.
StatusUnpaired means the pairing has not been confirmed yet.
# Structs
Backup contains the metadata of one backup.
BTCPrevTx is the transaction referenced by an input.
BTCTx is the data needed to sign a btc transaction.
BTCTxInput contains the data needed to sign an input.
Device provides the API to communicate with the BitBox02.
DeviceInfo is the data returned from the device info api call.
Error wraps an error from bitbox02.
# Interfaces
Communication contains functions needed to communicate with the device.
ConfigInterface lets the library client provide their own persisted config backend.
Logger lets the library client provide their own logging infrastructure.
# Type aliases
Event instances are sent to the onEvent callback.
Status represents the device status.
UnsupportedError should wrap a version string, e.g.