LBRY-Vault/plugins/keepkey/keepkey.py
Neil Booth f271f65842 KeepKey / Trezor: client split
We're going to want to do a few things differently, such as
device recovery.  So move the client code to clientbase.py
and create a per-plugin client.py file for the derived client
class.
2016-01-15 13:44:32 +09:00

21 lines
722 B
Python

from ..trezor.plugin import TrezorCompatiblePlugin, TrezorCompatibleWallet
class KeepKeyWallet(TrezorCompatibleWallet):
wallet_type = 'keepkey'
device = 'KeepKey'
class KeepKeyPlugin(TrezorCompatiblePlugin):
firmware_URL = 'https://www.keepkey.com'
libraries_URL = 'https://github.com/keepkey/python-keepkey'
minimum_firmware = (1, 0, 0)
wallet_class = KeepKeyWallet
try:
from .client import KeepKeyClient as client_class
import keepkeylib.ckd_public as ckd_public
from keepkeylib.client import types
from keepkeylib.transport_hid import HidTransport, DEVICE_IDS
libraries_available = True
except ImportError:
libraries_available = False