function · Browser and Node

# leafHash

H(4, commitment, schemaId, validUntilDay, registeredDay, attrs\[0\], attrs\[1\], attrs\[2\], attrs\[3\]).

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

Import:

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

## Declaration

Signature:

```ts
leafHash(leaf: Leaf): Field;
```

### Parameters

- **`leaf` (required)**: `Leaf`

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