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.
22 lines
767 B
22 lines
767 B
from .plugin import TrezorCompatiblePlugin, TrezorCompatibleWallet
|
|
|
|
|
|
class TrezorWallet(TrezorCompatibleWallet):
|
|
wallet_type = 'trezor'
|
|
device = 'TREZOR'
|
|
|
|
|
|
class TrezorPlugin(TrezorCompatiblePlugin):
|
|
firmware_URL = 'https://www.mytrezor.com'
|
|
libraries_URL = 'https://github.com/trezor/python-trezor'
|
|
minimum_firmware = (1, 3, 3)
|
|
wallet_class = TrezorWallet
|
|
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 HidTransport, DEVICE_IDS
|
|
from trezorlib.transport_bridge import BridgeTransport
|
|
libraries_available = True
|
|
except ImportError:
|
|
libraries_available = False
|
|
|