You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
485 B
Python
15 lines
485 B
Python
"""KeepKey-related definitions."""
|
|
|
|
# pylint: disable=unused-import,import-error
|
|
|
|
from keepkeylib.client import CallException, PinException
|
|
from keepkeylib.client import KeepKeyClient as Client
|
|
from keepkeylib.messages_pb2 import PassphraseAck, PinMatrixAck
|
|
from keepkeylib.transport_hid import HidTransport
|
|
from keepkeylib.types_pb2 import IdentityType
|
|
|
|
|
|
def find_device():
|
|
"""Returns first USB HID transport."""
|
|
return next(HidTransport(p) for p in HidTransport.enumerate())
|