api/hw/hw library

Classes

DartHwApi
HwApi pure-Dart backend.
HwApi
Hardware-wallet codec API (Ledger / Trezor / BitBox02 / airgap QR).
HwCatalog
Static catalog over the variant-keyed hwSupport rows: which devices exist, which coins/variants each device can sign, and how proven.
NativeHwApi
HwApi backed by the native (FFI/platform) implementation.

Extensions

EasyHwApiX on HwApi
Easy mode over HwApi: work with CryptoCoins (BIP44/49/84/86/…) and human paths instead of raw int ids and <u32 LE> blobs.

Functions

hwCoinIdForSlip44({required int slip44, required CryptoKeyType type, int purpose = 44}) → int?
Map a (SLIP44, key type, purpose) triple to a connector BuHwCoin id.
hwReadinessFor({required CryptoCoins<BaseCoinConfig> coin, required int device, String? variant}) → HwReadiness
Readiness of (coin, device) — optionally pinned to one address variant ('p2pkh' | 'p2wpkh' | 'p2sh' | 'p2tr', curve name otherwise).
isSupportedByHw({required CryptoCoins<BaseCoinConfig> coin, required int device, String? variant}) → bool
True only when (coin, device) is live-proven (variant pins one address type/curve; without it, true when ANY variant is ready). Everything else — including needsAppWork — is false: "coming soon" is not "can sign".