def split_signature(signature):
    """Split the given signature

    :param signature:
    :rtype: str, str
    :return: The r part for signature, The s part for signature
    """
    if not signature:
        raise ValueError(
            "Missing the required parameter 'signature' when calling split_signature"
            )
    if signature.startswith('0x'):
        signature = signature[2:]
    sig_half_len = int(len(signature) / 2)
    r = '0x' + signature[:sig_half_len]
    s = '0x' + signature[sig_half_len:]
    return r, s
