Enum trezor_client::error::Error
source · pub enum Error {
Show 24 variants
NoDeviceFound,
DeviceNotUnique,
MalformedSignature,
TransportConnect(Error),
TransportBeginSession(Error),
TransportEndSession(Error),
TransportSendMessage(Error),
TransportReceiveMessage(Error),
UnexpectedMessageType(MessageType),
Protobuf(Error),
FailureResponse(Failure),
UnexpectedInteractionRequest(InteractionType),
UnsupportedNetwork,
InvalidEntropy,
TxRequestInvalidIndex(usize),
InvalidPsbt(String),
Base58(Error),
TxRequestUnknownTxid(Hash),
PsbtMissingInputTx(Hash),
MalformedTxRequest(TxRequest),
BitcoinEncode(Error),
Secp256k1(Error),
Bip32(Error),
Address(ParseError),
}
Expand description
Trezor error.
Variants§
NoDeviceFound
Less than one device was plugged in.
DeviceNotUnique
More than one device was plugged in.
MalformedSignature
The device returned an invalid signature.
TransportConnect(Error)
Transport error connecting to device.
TransportBeginSession(Error)
Transport error while beginning a session.
TransportEndSession(Error)
Transport error while ending a session.
TransportSendMessage(Error)
Transport error while sending a message.
TransportReceiveMessage(Error)
Transport error while receiving a message.
UnexpectedMessageType(MessageType)
Received an unexpected message type from the device.
Protobuf(Error)
Error reading or writing protobuf messages.
FailureResponse(Failure)
A failure message was returned by the device.
UnexpectedInteractionRequest(InteractionType)
An unexpected interaction request was returned by the device.
UnsupportedNetwork
The given Bitcoin network is not supported.
InvalidEntropy
Provided entropy is not 32 bytes.
TxRequestInvalidIndex(usize)
The device erenced a non-existing input or output index.
InvalidPsbt(String)
User provided invalid PSBT.
Base58(Error)
bitcoin
only.Error in Base58 decoding
TxRequestUnknownTxid(Hash)
bitcoin
only.The device erenced an unknown TXID.
PsbtMissingInputTx(Hash)
bitcoin
only.The PSBT is missing the full tx for given input.
MalformedTxRequest(TxRequest)
bitcoin
only.Device produced invalid TxRequest message.
BitcoinEncode(Error)
bitcoin
only.Error encoding/decoding a Bitcoin data structure.
Secp256k1(Error)
bitcoin
only.Elliptic curve crypto error.
Bip32(Error)
bitcoin
only.Bip32 error.
Address(ParseError)
bitcoin
only.Address error.