Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/hub/src/utils/XetBlob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ type XetBlobCreateOptions = {

export interface ReconstructionInfo {
/**
* List of CAS blocks
* List of xorb blocks
*/
terms: Array<{
/** Hash of the CAS block */
/** Hash of the xorb */
hash: string;
/** Total uncompressed length of data of the chunks from range.start to range.end - 1 */
unpacked_length: number;
Expand All @@ -45,7 +45,7 @@ export interface ReconstructionInfo {
}>;

/**
* Dictionnary of CAS block hash => list of ranges in the block + url to fetch it
* Dictionary of xorb hash => list of ranges in the block + url to fetch it
*/
fetch_info: Record<
string,
Expand Down
6 changes: 3 additions & 3 deletions packages/hub/src/utils/shardParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ export async function parseShardData(shardBlob: Blob): Promise<ShardData> {

// version: u64, // Footer version (must be 1)
// file_info_offset: u64, // Offset to file info section
// cas_info_offset: u64, // Offset to CAS info section
// xorb_info_offset: u64, // Offset to xorb info section
// file_lookup_offset: u64, // Offset to file lookup table
// file_lookup_num_entry: u64, // Number of file lookup entries
// cas_lookup_offset: u64, // Offset to CAS lookup table
// cas_lookup_num_entry: u64, // Number of CAS lookup entries
// xorb_lookup_offset: u64, // Offset to xorb lookup table
// xorb_lookup_num_entry: u64, // Number of xorb lookup entries
// chunk_lookup_offset: u64, // Offset to chunk lookup table
// chunk_lookup_num_entry: u64, // Number of chunk lookup entries
// chunk_hash_hmac_key: [u64; 4], // HMAC key for chunk hashes (32 bytes)
Expand Down
2 changes: 1 addition & 1 deletion packages/hub/src/utils/uploadShards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export async function* uploadShards(

// version: u64, // Footer version (must be 1)
// file_info_offset: u64, // Offset to file info section
// cas_info_offset: u64, // Offset to CAS info section
// xorb_info_offset: u64, // Offset to xorb info section
// reserved 48 bytes
// chunk_hash_hmac_key: [u64; 4], // HMAC key for chunk hashes (32 bytes)
// shard_creation_timestamp: u64, // Creation time (seconds since epoch)
Expand Down
Loading
Loading