hash_blake3.ts

BLAKE3 cryptographic hashing via @fuzdev/blake3_wasm.

Synchronous and fast. Returns hex-encoded 256-bit (32-byte) digests. WASM initialization starts eagerly on import. Await blake3_ready before first use in browser contexts where the WASM must be fetched asynchronously.

Declarations
#

2 declarations

view source

blake3_ready
#

hash_blake3.ts view source

Promise<void>

Resolves when the BLAKE3 WASM module is initialized and ready. Initialization starts eagerly on import. Idempotent — safe to await multiple times. In Node.js/Deno (sync init), this resolves immediately.

hash_blake3
#

hash_blake3.ts view source

(data: string | BufferSource): string

Computes a BLAKE3 hash synchronously.

data

String or binary data to hash. Strings are UTF-8 encoded.

type string | BufferSource

returns

string

64-character hexadecimal hash string (32 bytes).

Depends on
#