def callback_PinMatrixRequest(self, msg): if msg.type == 1: desc = 'current PIN' elif msg.type == 2: desc = 'new PIN' elif msg.type == 3: desc = 'new PIN again' else: desc = 'PIN' pin = self.handler.get_pin("Please enter KeepKey %s" % desc) if not pin: return proto.Cancel() return proto.PinMatrixAck(pin=pin)
def callback_PassphraseRequest(self, req): msg = _("Please enter your KeepKey passphrase.") passphrase = self.handler.get_passphrase(msg) if passphrase is None: return proto.Cancel() return proto.PassphraseAck(passphrase=passphrase)