Spaces:
Sleeping
Sleeping
| import type { Chunk } from "./xet-chunker.js"; | |
| /** | |
| * file_hash = hmac(xorb_hash(chunks), zero_key) | |
| * | |
| * Matches Rust's `merklehash::file_hash` which calls | |
| * `file_hash_with_salt(chunks, &[0; 32])`. | |
| */ | |
| export declare function fileHash(chunks: Chunk[]): Uint8Array; | |
| /** | |
| * HMAC: blake3_keyed_hash(key_bytes, hash_bytes) | |
| * | |
| * Both inputs are 32-byte Uint8Arrays. | |
| * Matches Rust's `DataHash::hmac`. | |
| * | |
| * Uses a fresh hasher per call since the key varies. | |
| */ | |
| export declare function hmac(hash: Uint8Array, key: Uint8Array): Uint8Array; | |
| /** | |
| * Verification hash for a range of chunk hashes. | |
| * Concatenates all 32-byte hashes and applies blake3_keyed_hash | |
| * with VERIFICATION_KEY. | |
| * | |
| * Matches Rust's `chunk_verification::range_hash_from_chunks`. | |
| */ | |
| export declare function verificationHash(chunkHashes: Uint8Array[]): Uint8Array; | |
| //# sourceMappingURL=hash-utils.d.ts.map |