function · Browser and Node

# zeroHashes

Z\[0\] = 0, Z\[i+1\] = H(3, Z\[i\], Z\[i\]), for i up to `depth`.

`@toip-tools/anon-membership` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/anon-membership/src/tree.ts#L17)

Import:

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

## Declaration

Signature:

```ts
zeroHashes(depth: number): Field[];
```

### Parameters

- **`depth` (required)**: `number`

### Returns

`bigint[]`

[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/zeroHashes/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
