ApeWorX / ape-ledger

Ledger Nano S and X account plugin for the Ape Framework
https://www.apeworx.io/
Apache License 2.0
6 stars 7 forks source link

Detect device connected to see which accounts are available #42

Open fubuloubu opened 8 months ago

fubuloubu commented 8 months ago

Overview

Would be really nice if the account container class did some sort of detection (perhaps lazily) of whether a device was connected, and if so, what accounts are connected via that device. Especially useful for something like ape-safe, where it dynamically detects what wallets it can use to sign with

Specification

May need to track some sort of "device ID" (maybe a processed version of the master pubkey) that can be used to detect which devices are connected to which accounts, and then based on the connected devices at the time that a request is made to the account container of which accounts are available we filter that response dynamically.

Dependencies

Include links to any open issues that must be resolved before this feature can be implemented.

linear[bot] commented 8 months ago

APE-1697 Detect device connected to see which accounts are available

fubuloubu commented 8 months ago

could also be useful for ape-trezor or any other hardware/config-dependent plugin (even ape-safe where only certain networks are valid for that account)