You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.2 KiB
35 lines
1.2 KiB
from .plugin import KeepKeyCompatiblePlugin, KeepKeyCompatibleKeyStore |
|
|
|
|
|
class KeepKey_KeyStore(KeepKeyCompatibleKeyStore): |
|
hw_type = 'keepkey' |
|
device = 'KeepKey' |
|
|
|
|
|
class KeepKeyPlugin(KeepKeyCompatiblePlugin): |
|
firmware_URL = 'https://www.keepkey.com' |
|
libraries_URL = 'https://github.com/keepkey/python-keepkey' |
|
minimum_firmware = (1, 0, 0) |
|
keystore_class = KeepKey_KeyStore |
|
|
|
def __init__(self, *args): |
|
try: |
|
from . import client |
|
import keepkeylib |
|
import keepkeylib.ckd_public |
|
import keepkeylib.transport_hid |
|
self.client_class = client.KeepKeyClient |
|
self.ckd_public = keepkeylib.ckd_public |
|
self.types = keepkeylib.client.types |
|
self.DEVICE_IDS = keepkeylib.transport_hid.DEVICE_IDS |
|
self.libraries_available = True |
|
except ImportError: |
|
self.libraries_available = False |
|
KeepKeyCompatiblePlugin.__init__(self, *args) |
|
|
|
def hid_transport(self, pair): |
|
from keepkeylib.transport_hid import HidTransport |
|
return HidTransport(pair) |
|
|
|
def bridge_transport(self, d): |
|
raise NotImplementedError('')
|
|
|