blake3
Version:
BLAKE3 hashing for JavaScript: native Node bindings (where available) and WebAssembly
15 lines (14 loc) • 437 B
TypeScript
import { BaseHashInput, IBaseHashOptions } from '../base/hash-fn';
import { Hash } from './hash';
/**
* Input used for browser-based hashes.
*/
export declare type HashInput = BaseHashInput | string;
/**
* @hidden
*/
export declare const normalizeInput: (input: import("..").HashInput) => Uint8Array;
/**
* Returns a blake3 hash of the input.
*/
export declare function hash(input: HashInput, { length }?: IBaseHashOptions): Hash;