1
from trezor import TrezorPlugin
2
from electrum.util import print_msg
4
class TrezorCmdLineHandler:
6
def get_passphrase(self, msg, confirm):
9
return getpass.getpass('')
11
def get_pin(self, msg):
12
t = { 'a':'7', 'b':'8', 'c':'9', 'd':'4', 'e':'5', 'f':'6', 'g':'1', 'h':'2', 'i':'3'}
14
print_msg("a b c\nd e f\ng h i\n-----")
16
return ''.join(map(lambda x: t[x], o))
21
def show_message(self, msg):
25
class Plugin(TrezorPlugin):
26
handler = TrezorCmdLineHandler()