def serialize_ed25519_public_key(key):
    """Serialize an Ed25519 public key object to bytes.

    :param Ed25519 key: The public key to serialze.
    :return: The 32 byte binary representation of a public Ed25519 key.
    :rtype: bytes
    """
    return key._public_bytes