electrum-bitcoinprivate/plugins/trezor/trezor.py

21 lines
699 B
Python
Raw Normal View History

from .plugin import TrezorCompatiblePlugin, TrezorCompatibleKeyStore
2014-07-10 12:44:28 -07:00
class TrezorKeyStore(TrezorCompatibleKeyStore):
wallet_type = 'trezor'
2016-01-29 05:58:51 -08:00
device = 'TREZOR'
class TrezorPlugin(TrezorCompatiblePlugin):
firmware_URL = 'https://www.mytrezor.com'
libraries_URL = 'https://github.com/trezor/python-trezor'
minimum_firmware = (1, 3, 3)
keystore_class = TrezorKeyStore
try:
from .client import TrezorClient as client_class
import trezorlib.ckd_public as ckd_public
from trezorlib.client import types
from trezorlib.transport_hid import DEVICE_IDS
libraries_available = True
except ImportError:
libraries_available = False