summa-tx / coins

Rust implementations of BIP32/39 and Ledger device comms
Other
92 stars 31 forks source link

Handle Ledger error 0x6804 #87

Closed cloudhead closed 3 years ago

cloudhead commented 3 years ago

If the Ledger is locked, don't panic, return an error instead.

Currently, trying to connect to the ledger nano x while it is locked causes a panic.

prestwich commented 3 years ago

the reason you can't find that error code documented is that documents cover specific applications, while this is a system-level error. and the documentation of the system APDU responses is poor