LedgerError
type LedgerError
Error returned when communicating with a Ledger device fails.
type LedgerError struct {
// contains filtered or unexported fields
}
func NewLedgerErrorAppNotFound
func NewLedgerErrorAppNotFound() *LedgerError
The IOTA app is not installed on the device.
func NewLedgerErrorBlindSigningDisabled
func NewLedgerErrorBlindSigningDisabled() *LedgerError
The IOTA app cannot clear-sign the transaction, and blind signing is disabled in its settings.
func NewLedgerErrorDeviceLocked
func NewLedgerErrorDeviceLocked() *LedgerError
The device is locked.
func NewLedgerErrorDeviceNotFound
func NewLedgerErrorDeviceNotFound() *LedgerError
No Ledger device is connected.
func NewLedgerErrorDeviceNotReady
func NewLedgerErrorDeviceNotReady() *LedgerError
The device runs another app than the IOTA app.
func NewLedgerErrorKeyMismatch
func NewLedgerErrorKeyMismatch() *LedgerError
The device returns a different key for the signer's derivation path than when the signer was created, because another device is connected or the device was unlocked with a different seed or passphrase.
func NewLedgerErrorOther
func NewLedgerErrorOther() *LedgerError
Any other failure.
func NewLedgerErrorUserRefused
func NewLedgerErrorUserRefused() *LedgerError
The user rejected the request on the device.
func (*LedgerError) AsError
func (err *LedgerError) AsError() error
Convenience method to turn *LedgerError into error Avoiding treating nil pointer as non nil error interface
func (LedgerError) Error
func (err LedgerError) Error() string
func (LedgerError) Unwrap
func (err LedgerError) Unwrap() error