LBRY-Vault/lib/wallet_factory.py
slush cf5661046b Import WalletFactory instead of Wallet
WalletFactory and WalletBitkey classes
--usb parameter enables experimental support for bitkey protocol
2013-01-07 16:23:47 +00:00

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)