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