mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
WalletFactory and WalletBitkey classes --usb parameter enables experimental support for bitkey protocol
11 lines
388 B
Python
11 lines
388 B
Python
class WalletFactory(object):
|
|
def __new__(cls, config):
|
|
if config.get('bitkey', False):
|
|
# if user requested support for Bitkey device,
|
|
# import Bitkey driver
|
|
from wallet_bitkey import WalletBitkey
|
|
return WalletBitkey(config)
|
|
|
|
# Load standard wallet
|
|
from wallet import Wallet
|
|
return Wallet(config)
|