def serialise_cbor_request(request):
        """
        Method to format a request dict as a cbor message

        Parameters
        ----------
        request : dict
            The request dict

        Returns
        -------
        bytes
            The request formatted as cbor message bytes
        """
        dump = cbor.dumps(request)
        len_dump = len(dump)
        if 'method' in request and 'ota_data' in request['method']:
            msg = 'Sending ota_data message {} as cbor of size {}'.format(request['id'], len_dump)
            logger.info(msg)
        else:
            logger.info('Sending: {} as cbor of size {}'.format(_hexlify(request), len_dump))
        return dump

        Method to format a request dict as a cbor message

        Parameters
        ----------
        request : dict
            The request dict

        Returns
        -------
        bytes
            The request formatted as cbor message bytes
        
electrum/plugins/jade/jadepy/jade.py