import hashlib


def calculate_sha512_hexdigest(byte_array):
    """
    Calculate SHA-512 hexadecimal digest from byte array
    """
    hash_algorithm = hashlib.sha512()
    hash_algorithm.update(byte_array)
    hex_digest = hash_algorithm.hexdigest()
    return hex_digest