Support multiple devices

This commit is contained in:
Roman Zeyde
2018-01-05 20:53:25 +02:00
parent 9cf73f677a
commit 385fc9457b
6 changed files with 42 additions and 19 deletions

View File

@@ -36,6 +36,11 @@ def _convert_public_key(ecdsa_curve_name, result):
class LedgerNanoS(interface.Device):
"""Connection to Ledger Nano S device."""
@classmethod
def package_name(cls):
"""Python package name (at PyPI)."""
return 'ledger-agent'
def connect(self):
"""Enumerate and connect to the first USB HID interface."""
try: