toip.tools

function · Browser and Node

initHashing

Loads Barretenberg's WebAssembly once, for hashing. Call before any hash function. It needs no setup data and fetches nothing beyond bb.js's own bundled module.

@toip-tools/anon-membershipView source
TypeScriptImport
import { initHashing } from "@toip-tools/anon-membership";

Declaration

TypeScriptSignature
initHashing(): Promise<void>;

No parameters.

Returns

Promise<void>