2015-12-01 12:06:21 +01:00
|
|
|
from electrum.util import print_msg
|
2017-08-28 05:30:56 +02:00
|
|
|
from .ledger import LedgerPlugin
|
2015-12-01 12:06:21 +01:00
|
|
|
|
|
|
|
|
class BTChipCmdLineHandler:
|
|
|
|
|
def stop(self):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
def show_message(self, msg):
|
|
|
|
|
print_msg(msg)
|
|
|
|
|
|
|
|
|
|
def prompt_auth(self, msg):
|
|
|
|
|
import getpass
|
|
|
|
|
print_msg(msg)
|
|
|
|
|
response = getpass.getpass('')
|
|
|
|
|
if len(response) == 0:
|
|
|
|
|
return None
|
|
|
|
|
return response
|
|
|
|
|
|
|
|
|
|
class Plugin(LedgerPlugin):
|
2016-01-01 19:15:01 +09:00
|
|
|
handler = BTChipCmdLineHandler()
|