UNPKG

@eagleoutice/flowr-dev

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

10 lines (9 loc) 724 B
import type { PkgBlob, SigDb } from './schema'; /** run a Hash53 over a stream of chunks (each null-terminated so boundaries can't collide) */ export declare function hashOf(chunks: Iterable<string>): string; /** the self-contained content hash of a whole bundle (dictionary + blobs + routing/metadata) */ export declare function contentHash(db: Pick<SigDb, 'strings' | 'blobs' | 'pkgs' | 'meta'>): string; /** stable hash of a shared dictionary */ export declare function dictionaryHash(strings: readonly string[]): string; /** stable hash of one shard's data (its blobs + pkgs map; the dictionary is hashed separately) */ export declare function shardHash(blobs: readonly PkgBlob[], pkgs: Record<string, number>): string;