def write_request(self, request):
        """
        Write a request dict over the underlying interface, formatted as cbor.

        Parameters
        ----------
        request : dict
            The request dict to write
        """
        msg = self.serialise_cbor_request(request)
        written = 0
        while written < len(msg):
            written += self.write(msg[written:])

        Write a request dict over the underlying interface, formatted as cbor.

        Parameters
        ----------
        request : dict
            The request dict to write
        
electrum/plugins/jade/jadepy/jade.py