• Converts a HashTypeLike value to its corresponding byte representation.

    Parameters

    Returns ccc.Bytes

    A Uint8Array containing the byte representation of the hash type.

    const hashTypeBytes = hashTypeToBytes("type"); // Outputs Uint8Array [0]