mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
- separation between Wallet and key management (Keystore) - simplification of wallet classes - remove support for multiple accounts in the same wallet - add support for OP_RETURN to Trezor plugin - split multi-accounts wallets for backward compatibility
20 lines
699 B
Python
20 lines
699 B
Python
from .plugin import TrezorCompatiblePlugin, TrezorCompatibleKeyStore
|
|
|
|
|
|
class TrezorKeyStore(TrezorCompatibleKeyStore):
|
|
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)
|
|
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
|