def write(self, bytes_):
        """
        Write bytes over the underlying interface

        Parameters
        ----------
        bytes_ : bytes
            The bytes to write

        Returns
        -------
        int
            The number of bytes written
        """
        logger.debug("Sending: {} bytes".format(len(bytes_)))
        wrote = self.impl.write(bytes_)
        logger.debug("Sent: {} bytes".format(len(bytes_)))
        return wrote

        Write bytes over the underlying interface

        Parameters
        ----------
        bytes_ : bytes
            The bytes to write

        Returns
        -------
        int
            The number of bytes written
        
electrum/plugins/jade/jadepy/jade.py