2016-07-01 23:58:56 -07:00
|
|
|
from ..trezor.plugin import TrezorCompatiblePlugin, TrezorCompatibleKeyStore
|
2015-08-10 23:27:42 -07:00
|
|
|
|
|
|
|
|
2016-07-01 23:58:56 -07:00
|
|
|
class KeepKey_KeyStore(TrezorCompatibleKeyStore):
|
2015-11-23 05:15:25 -08:00
|
|
|
wallet_type = 'keepkey'
|
2015-12-25 23:25:10 -08:00
|
|
|
device = 'KeepKey'
|
2015-11-23 05:15:25 -08:00
|
|
|
|
|
|
|
|
2015-12-26 02:42:57 -08:00
|
|
|
class KeepKeyPlugin(TrezorCompatiblePlugin):
|
2015-12-26 20:56:50 -08:00
|
|
|
firmware_URL = 'https://www.keepkey.com'
|
|
|
|
libraries_URL = 'https://github.com/keepkey/python-keepkey'
|
|
|
|
minimum_firmware = (1, 0, 0)
|
2016-07-01 23:58:56 -07:00
|
|
|
keystore_class = KeepKey_KeyStore
|
2015-12-30 18:36:33 -08:00
|
|
|
try:
|
2016-01-14 20:44:32 -08:00
|
|
|
from .client import KeepKeyClient as client_class
|
2015-12-30 18:36:33 -08:00
|
|
|
import keepkeylib.ckd_public as ckd_public
|
|
|
|
from keepkeylib.client import types
|
2016-01-04 13:47:14 -08:00
|
|
|
from keepkeylib.transport_hid import HidTransport, DEVICE_IDS
|
2015-12-30 18:36:33 -08:00
|
|
|
libraries_available = True
|
2016-01-04 13:47:14 -08:00
|
|
|
except ImportError:
|
2015-12-30 18:36:33 -08:00
|
|
|
libraries_available = False
|