@exodus/hw-common
v3.1.1
Published
The hardware wallet commons
Downloads
7,131
Readme
@exodus/hw-common
This package shares the commons Ledger & someday Trezor.
Architecture
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 devices
HardwareWalletDescriptor
: interface to uniquely identify a device and offers factory forHardwareWalletDevice
get()
will return an instance of a device
HardwareWalletDevice
: interface for common actions such as getting addresses, public keys and signing.getAddress(...)
for example, would get an address based on theassetName