highwayhasher
Version:
HighwayHash implementation for both node and browsers
13 lines (12 loc) • 589 B
TypeScript
import type { HashCreator, HighwayLoadOptions, IHash, InitInput } from "./model.js";
export declare const setWasmInit: (arg: () => InitInput) => void;
export declare const setWasmSimdInit: (arg: () => InitInput) => void;
/**
* A Highway hasher implemented in Web assembly.
*/
export declare class WasmHighwayHash {
static loadModule(options?: Partial<HighwayLoadOptions>): Promise<HashCreator>;
static load(key?: Uint8Array | null | undefined, options?: Partial<HighwayLoadOptions>): Promise<IHash>;
static resetModule(): void;
}
export declare const hasSimd: () => boolean;