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-membership` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/anon-membership/src/hash.ts#L19)

Import:

```ts
import { initHashing } from "@toip-tools/anon-membership";
```

## Declaration

Signature:

```ts
initHashing(): Promise<void>;
```

No parameters.

### Returns

`Promise<void>`

[Usage guide](https://toip.tools/toolkit/anon-membership/#usage) · [Error handling](https://toip.tools/toolkit/anon-membership/#errors) · [All exports](https://toip.tools/toolkit/anon-membership/api/)

---

This is the Markdown version of https://toip.tools/toolkit/anon-membership/api/initHashing/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
