src/hosts/sd.py
async def send_data(self, stream, *args, **kwargs):
        """
        Saves transaction in base64 encoding to SD card
        as psbt.signed.<suffix> file
        Returns a success message to display
        """
        # only psbt files are coming from the device right now
        if not self.sd_file.endswith(".psbt"):
            return
        self.reset_and_mount()
        try:
            new_fname = self.sd_file.replace(".psbt", ".signed.psbt")
            with open(new_fname, "wb") as fout:
                self.copy(stream, fout)
        finally:
            platform.unmount_sdcard()
        await self.manager.gui.alert("Success!", "\n\nSigned transaction is saved to\n\n%s" % new_fname.split("/")[-1])

        Saves transaction in base64 encoding to SD card
        as psbt.signed.<suffix> file
        Returns a success message to display
        
Saves transaction in base64 encoding to SD card
as psbt.signed. file
Returns a success message to display
Saves transaction in base64 encoding to SD card as psbt . signed . file Returns a success message to display
async def send_data(self, stream, *args, **kwargs):
        if not self.sd_file.endswith(".psbt"):
            return
        self.reset_and_mount()
        try:
            new_fname = self.sd_file.replace(".psbt", ".signed.psbt")
            with open(new_fname, "wb") as fout:
                self.copy(stream, fout)
        finally:
            platform.unmount_sdcard()
        await self.manager.gui.alert("Success!", "\n\nSigned transaction is saved to\n\n%s" % new_fname.split("/")[-1])
async def send_data ( self , stream , * args , ** kwargs ) : if not self . sd_file . endswith ( ".psbt" ) : return self . reset_and_mount ( ) try : new_fname = self . sd_file . replace ( ".psbt" , ".signed.psbt" ) with open ( new_fname , "wb" ) as fout : self . copy ( stream , fout ) finally : platform . unmount_sdcard ( ) await self . manager . gui . alert ( "Success!" , "\n\nSigned transaction is saved to\n\n%s" % new_fname . split ( "/" ) [ - 1 ] )
Saves transaction in base64 encoding to SD card
as psbt.signed.<suffix> file
Returns a success message to display
Saves transaction in base64 encoding to SD card as psbt . signed . <suffix > file Returns a success message to display
"""
        Saves transaction in base64 encoding to SD card
        as psbt.signed.<suffix> file
        Returns a success message to display
        """ # only psbt files are coming from the device right now
self
stream