Module coins_ledger::transports
source · Expand description
Ledger transports. Contains native HID and wasm-bindgen Abstract ledger tranport trait with WASM and native HID instantiations.
Re-exports§
pub use native::LedgerHandle as DefaultTransport;
Modules§
- APDU Transport for native HID. Wraps
TransportNativeHID
in a thread managing the IO.
Structs§
- A Ledger device connection. This wraps the default transport type. In native code, this is the
hidapi
library. When thenode
orbrowser
feature is selected, it is a Ledger JS transport library.
Traits§
- An asynchronous interface to the Ledger device. It is critical that the device have only one connection active, so the
init
funnction acquires a lock on the device.