The hardware wallet commons
npm install @exodus/hw-commonThis package shares the commons Ledger & someday Trezor.
``mermaid`
flowchart LR
A[HardwareWalletDiscovery] -->|"list()"| B(HardwareWalletDescriptor)
B --> |"get()"| C(HardwareWalletDevice)
C --> |"getAddress()\ngetPublicKey()\n..."| D("bc1q...wvrg")
- HardwareWalletDiscovery: interface for device discoverylist()
- will return a list of discoved devicesHardwareWalletDescriptor
- : interface to uniquely identify a device and offers factory for HardwareWalletDeviceget()
- will return an instance of a deviceHardwareWalletDevice
- : interface for common actions such as getting addresses, public keys and signing.getAddress(...)
- for example, would get an address based on the assetName`