wizardsardine / async-hwi

⚠️ The interface is not finalized 🚧 and currently specific to our needs with Liana
BSD 3-Clause "New" or "Revised" License
28 stars 17 forks source link

[CLI] Force display mode if we fail to get an xpub w/ ledger #83

Closed pythcoiner closed 1 month ago

pythcoiner commented 6 months ago

I hit an issue while trying to get an xpub w/ a not 'standard' derivation path w/ the CLI:

~/rust/escrow nostr *5 ❯ hwi xpub get --path "m/1465269028'/547967380'/703278800'/311392014'"
Error: Device("Device {\n    command: 0,\n    status: NotSupported,\n}")

Ledger devices have a 'security' features, if we want to get an xpub for a not 'standard' derivation path, we should use the display mode where the user add to ACK.

Approach taken here is : if we fail to get an xpub w/ a ledger, we retry one more time w/ display mode activated.