def validate_signature_ser(sig):
    """Checks that the serialized signature is a valid byte string.
    Args:
        seckey  (bytes):        signature
    Returns:
        (True):                 if sig is valid, otherwise error
    """
    if not isinstance(sig, bytes):
        raise ValueError('Invalid signature. Must be bytes.')
    return True
