Ejemplo n.º 1
0
    async def interact(self):
        # Just show the address... no real confirmation needed.
        from main import hsm_active, dis

        if not hsm_active:
            msg = self.get_msg()
            msg += '\n\nCompare this payment address to the one shown on your other, less-trusted, software.'
            if version.has_fatram:
                msg += ' Press 4 to view QR Code.'

            while 1:
                ch = await ux_show_story(msg, title=self.title, escape='4')

                if ch == '4' and version.has_fatram:
                    q = ux.QRDisplay([self.address], (self.addr_fmt & AFC_BECH32))
                    await q.interact_bare()
                    continue

                break
        else:
            # finish the Wait...
            dis.progress_bar(1)     

        self.done()
        UserAuthorizedAction.cleanup()      # because no results to store
Ejemplo n.º 2
0
    async def interact(self):
        # Just show the address... no real confirmation needed.
        from common import dis

        msg = self.get_msg()
        msg += '\n\nCompare this payment address to the one shown on your other, less-trusted, software.'
        msg += ' Press 4 to view QR Code.'

        # TODO: Add a menu button to view QR code?
        while 1:
            ch = await ux_show_story(msg, title=self.title)

            if ch == '4':
                q = ux.QRDisplay(
                    [self.address], (self.addr_fmt & AFC_BECH32))
                await q.interact_bare()
                continue

            break

        self.done()
        UserAuthorizedAction.cleanup()      # because no results to store