@ exodus/ hw- 常见
这个软件包共享共同的 Ledger & 有朝一日的Trezor .
建筑
flowchart LR
A[HardwareWalletDiscovery] -->|"list()"| B(HardwareWalletDescriptor)
B --> |"get()"| C(HardwareWalletDevice)
C --> |"getAddress()\ngetPublicKey()\n..."| D("bc1q...wvrg")
HardwareWalletDiscovery: 设备发现的接口list()将返回盘状设备列表
HardwareWalletDescriptor: 唯一识别设备的接口,并提供工厂HardwareWalletDeviceget()将返回一个设备实例
HardwareWalletDevice:用于获取地址,公钥和签名等共同行动的界面.getAddress(...)例如,将获得一个基于assetName