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 19 forks source link

Expand examples to use and test all provided functions #23

Open prusnak opened 1 year ago

prusnak commented 1 year ago

Currently, the examples/hwi.rs uses and tests only the functions related to enumeration of the devices (try_connect, device_kind, get_master_fingerprint, get_version).

It would be great if there was another example (maybe examples/sign.rs) which also tests functions related to signing (get_extended_pubkey, register_wallet, sign_tx). This code should assume that the device is loaded with the standard SLIP-0014 mnemonic (12 * all). If this existed, it would be trivial to check whether implementation behaves correctly for new HW wallets (Trezor) being added to the project.

pythcoiner commented 1 year ago

i'm interested working on this